ATmega328pb firmware naturally erase.

Hi. I have a question.

When I flash the bootloader and firmware, my arduino work very well.

I don't know why but as time goes by my arduino firmware naturally erase.

Bootloader doesn't erase. Only Firmware erase.

I made two product with Arduino.

One is using ATmega328p and the other is ATmege328pb with same code.

But ATmega328p doesn't erase firmware until now.

Only ATmega328pb firmware erase.

I keep watching arduino with terminal program. That is only thing i did after flash bootloader and firmware.

is there anyone know about this error?

Why do you think the firmware is being erased?

First, My product didn't send data to terminal program. so I checked it.

When I extracted the hex files, data part was "FF".

So, My conclusion is the firmware naturally erase in ATmega328pb.

and then, it work very well after flash firmware again.

It sounds like you are correct. Do you have another one, if so try it and see if the problem goes away. Hopefully it is from a different batch/lot. Is it a real Atmega328P (ATmega328PB) or a "counterfeit" one? It may have been a rejected unit that got in through the black market channel. At over 10 Billion to build a FAB I do not expect many fabs built to counterfeit chips. However they could come up with a design and have it go through a for-hire fab, a much cheaper option.

@gilshultz it's my understanding that the 328PB looses its code, not the 328P.

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