So I recently bought an Arduino Nano from REES52, it's a clone
Before doing anything to the board, the program uploaded with the ATmega328P (old bootloader)
I had a bright idea to burn the new ATmega328P bootloader to it, but it didn't work.
So I read the model number on the chip and it was actually the ATmega328PB microcontroller.
Then, I installed MiniCore, and burnt the actual ATmega328PB bootloader to it.
But now I have to program it using the MiniCore board instead of using the Nano ATmega328P (old bootloader)
Can I go back to ATmega328P (old bootloader) somehow?
Yes, it shows that the signature is incorrect and it should be 1E 95 0F, and I even tried to change the avr.config file, to change the signature to 1E 95 16 and 1E 95 14 and it still shows the same error
You can do this by burning the 328p bootloader to the 328pb, but this will probably require that you exit the Arduino IDE and figure out the command-line avrdude commands.
Guys it's fixed!
I used AVRDUDESS to rewrite the fuse and locking bits,
I set the bits to the default ATmega328P bits and rewrote the ATmega328P optiboot bootloader to it, using my Arduino Uno as ISP programmer.
I didn't even have to force write the bootloader.
Guys it's fixed!
I used AVRDUDESS to rewrite the fuse and locking bits,
Good News.
Originally you said:
I had a bright idea to burn the new ATmega328P bootloader to it, but it didn't work
At that time you tried to replace the "old bootloader" with Optiboot but you were not successful. Upgrading to Optiboot on a Nano is a very common process.
Now, when you replaced the minicore bootloader with optiboot you were successful.
Before I was using the Arduino IDE to burn the bootloader onto the nano, there it said that the signature is incorrect.
This time I used the avrdudess application to burn the bootloader onto the the nano while also changing the locking and fuse bits.
Also the avrdudess application provides extra features like force (-F), which maybe useful in other scenarios