Burning bootloader to Arduino nano clone

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?

Thank you

1 Like

Is that a problem?

No, it isn't.
But I prefer it how it was before

If you have any suggestions please let me know

They must have made a custom bootloader to get a PB to look like a P. So you will need to make a new bootloader.

Have you tried burning the Arduino Nano bootloader?
I don't have a PB so I can't try

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.

Something like:

avrdude -c stk500v1 -p atmega328pb -P /dev/tty.usbserial-FTD61T6Q -b19200 -e -u -U lock:w:0x2f:m -U efuse:w:0xFD:m -U hfuse:w:0xDE:m -U lfuse:w:0xFF:m -U flash:w:optiboot_atmega328.hex

1 Like

Can I do that using the avrdudess application?
Should I just force the install of ATmega328P Opti driver onto it?
Can you guide me?

btw Classic Nano was not designed by Arduino so a Nano made by Arduino is a 'clone' too.

Have you looked at the pololu web site. They have a few ATmega 328pb boards, and some small examples of how to use them.

I just took a look at them, but those are shipped with Arduino-compatible bootloaders, how will I burn one of those onto my board?

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.

I used this video for reference: https://youtu.be/nh3h9gwOF4Q?si=i10v8wu-vhq7xuMe
Do not use the locking and fuse bits shown in the video, look up default bits for ATmega328P

Thank you to everyone for your suggestions and solutions :slight_smile:

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.

What was the difference in your process?

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

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.