My sketch is around 28,900 bytes on an Arduino Uno compatible (USBdroid) which has only 32,256 bytes of program memory space. If my sketch is below about 28,600 it compiles and works fine but if I add more code and it gets above this I get an error message "Problem uploading to board" plus
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64 avrdude: stk500_cmd(): programmer is out of sync
Seems the top of program memory is used by something else, the bootloader maybe?
Is there a technique/workaround to dodge this issue?