Skip to content

Arduino-cli doesn't generate hex files with bootloader if compiled size is > 64kiB #1107

Closed
@MCUdude

Description

@MCUdude

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:

image

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.

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions