Tuesday 13 June 2017

flash - AVR deprogramming itself


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.




No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...