I know I'm going to get flamed for this, I cannot post my code. So please dont immediately ask for it.
I hope to obtain some understanding of under what circumstances a pro mini can be rendered totally dead until re-flashed.
I have some code, which is essentially storing a user programmable variable.
I have two pro minis conencted via IIC, one is running a user interface, and sends some data to the other upon a long button press, the second then saves it to its Eeprom for later use after a power cycle.
the reason for this is long and complicated.
in a nutshell, the system detects an event, and requests the appropriate variable from the slave, then uses it from that point on. When saving the new user modified variable, a long button press sends the data via IIC and the slave checks it and updates the EEPROM. This is something that shouldnt happen more than a handful of times over the lifespan of the pro mini, so im not worried about wear leveling on the EEPROM at the moment.
the problem arrives when, during the save of the new data, the "event" unexpectedly changes, IE an analogRead is not what is expected, or if the external process that changes the measured "event" happens when it shoudlnt, in this case, once in the menu to update the user variable, everything actually works, the slave saves the new variable to the EEPROM, and the Master continues to function as expected, until a power cycle.
after a power cycle it is completely unresponsive, no LED flashes on pin 13 from the bootloader, no code being executed (the first thing done is report a version number via serial)
it just sits there and shows no sign of doing anything.
code can be reflashed, then on bootup, the slave sends over the value that was saved in eeprom and everythign works again.
im at a loss. What can happen in a code to leave a pro mini totally unresponsive after a power cycle, but still working until power cycled???
the IDE reports the code uses 56% program storage space, and 71% of dynamic memory.
if anyone has any insight in how to go about finding out what is happening id be very grateful. possibly paypal grateful for someone who can give me the right info.
thanks in advance
m00se