My Arduino v.22 sketch worked fine compiling and uploading to my Uno at this size:
- Code: Select all
Binary sketch size: 28032 bytes (of a 32256 byte maximum)
But when I added a few more functions and debugging strings it got up to 29142 bytes, at which point the sketch took way too long to upload, and finally Arduino printed some red error messages (which I didn't save). I had to trim my code back under 29K before it started working again.
Have others experienced a similar limitation, below 32K?
Any thoughts on what's stealing my last few K -- is it the bootloader, or my program data, or what? I do use PSTR() a lot.
Isn't it a bug that the Arduino environment reports the incorrect maximum sketch size?