hello to all,
when I disconnect and then reconnect the usb cable on my Duemilanove
while a sketch is running, the sketch is reset. Is this normal behavior?
I would like to take the board out in the field and then 'offload' some array data, all works well as long as I stay connected (usb). also I'm running on a 9v battery.
thanks in advance.
also - same reset regardless of any software running or not running on my comp.
I suspect the autoreset feature from opening or closing communications is at the root of what you are seeing. One solution might be to save your data variables in the EEPROM ,if it's big enough or use some kind of shield mounted non-volitable memory that your program can utilize.