I'm writing a program by using arduino 1.0.6 for a board with the ATmega32U4. The program is using around 24K of the 28K available (at least this is what the IDE is saying). I'm using also the EEPROM to store some configurations.
I'm facing this strange behavior:
it looks like that when I add a single instruction like
Serial.println("write something"); delay(1000);
the sketch stops working. When I comment this out, it starts to work again. In the debug activity it looks like that when I add this instruction, a part of the EEPROM becomes corrupted (so I see data I don't expect). Is this possible? Or I'm doing something wrong with the debugging? May be I have a memory leak somewhere?
Thanks a lot!