Closed
Description
Original issue here.
At least for AVR platforms, if the size of the compiled exceeds 65536 bytes, the [sketchname.ino].with_bootloader.hex file is not generated. The reason why I'm stressing this is because MightyCore and MegaCore uses this file actively to prevent wiping the bootloader when uploading using a programmer
Here I'm compiling for Arduino MEGA 2560:
Sketch uses 65536 bytes (25%) of program storage space. Maximum is 253952 bytes.
Files in the /var/folders/6l/ypg6qbw172v1s4vtt6g990tw0000gn/T/arduino_build_435714/
folder:
Here is another example where the sketch is just two bytes larger:
Sketch uses 65538 bytes (25%) of program storage space. Maximum is 253952 bytes.