NicoHood / HoodLoader2

16u2 Bootloader to reprogram 16u2 + 328/2560 with Arduino IDE
http://www.nicohood.de
734 stars 186 forks source link

Sketch won't compile, out of storage space #73

Closed rdqrdq closed 5 years ago

rdqrdq commented 5 years ago

Using a Funduino Mega 2560, got Hoodloader2 showing up in devices but I get this error when trying to upload the example Gamepad.io

Sketch uses 5768 bytes (140%) of program storage space. Maximum is 4096 bytes. Global variables use 180 bytes (35%) of dynamic memory, leaving 332 bytes for local variables. Maximum is 512 bytes. Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it. Error compiling for board HoodLoader2 8u2.

Any help would be awesome! Thanks

NicoHood commented 5 years ago

Which board did you select? Edit: Yeah, it seems you are using an 8u2 which only has 8kb, of which 4kb are used for the bootloader. Use a board with a 16u2 (or select the correct entry in the IDE if its the correct chip.)

rdqrdq commented 5 years ago

Yup I have the 8u2. Thanks!