Electronic – arduino – AVR deprogramming itself

arduinoavrflash

Has anyone else had instances where an AVR just mysteriously stopped working after several months, but reprogramming it would bring it back?

I'm running a bunch of atmega328's in wireless sensor network. I've now had 3 times (in about a year) when one of them has just stopped working. I'll re-burn the program to it and it'll start working again. It's not always the same unit, so it doesn't seem like it's a defective chip.

That seems like it would be a rather disastrous thing that would keep people from using AVRs, so it's obviously something about my particular circumstances. I was just wondering if anyone else has run into it and might have some pointers.

I'm running at 3.3V off of batteries, so the voltage will sag too low to operate once every couple months and I have to replace the rechargeables. The modules use sleep mode and the watchdog timer to sleep for 60 seconds, take a reading, radio it back to the base station and then sleep again. The modules are arduino compatible, so I haven't flipped the "don't let me re-burn this" bit.

Best Answer

Are you using BOD? Nasty things can occasionally happen if a chip browns out.