Help create maxSize sketch

retrolefty:
Interesting side effect I can compile sizes that are under the max avalible flash size for the board selected, but the upload will upchuck with an AVRDUDE error. If I lower if a few KB then it both compiles and uploads and runs fine.

I had the same problem. Turned out to be an old bug in Optiboot. Installing the latest version solved the problem.