I have very strabge problem with my arduino uno and ATMEGA328. First a few words to say what I do. I use Arduino to control few devices over i2c protocol. Everything is fine, control is fine, hardware is fine but.... my source code is about 16k and stop working. After many days of debug I found that the problem is not in: - hardware - my devices - source code or anything else.
The only thing I noticed is that when my source code us under 11k everything work fine but when is over 11k arduino going crazy. Symptoms are: - unrecognized command - not read ot write via serial port - cannot print anything
Please if you have this problem help =(