I've got some trouble with my arduino... My sketch size was about 13KB when my arduino (deumillanove/atmega168) started acting 'weird'.. I think it's something like a stack-overflow, causing it to return to wrong addresses... So i changed it to another deumillanove, which is atmega368 based, and everything worked fine again... But after my sketch has grown a little bit -it is now about 16KB- the 'crazyness' started again! The first part of the sketch worked just fine, but some lines of code later it's going crazy again.. so I added some 'Serial.println(...)''s to see how the code is flowing.. but since then it didn't even boot!.. The led at pin 13 is only flashing once, then.. nothing.. When i remove some code with a lot of hardcoded strings, it's all working again, (that part of the code is not executed right after the boot or something.. it's a function that will be called on a press of a button)...
This doesn't sound like a stack overflow, right? (Because changing 'non-boot code' affects the boot)
Can anyone tell me what's happening? :-/
Thanks in advance, -Maurice-