platformio / platform-atmelavr

Atmel AVR: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelavr
Apache License 2.0
139 stars 105 forks source link

Do not include occupied bootloader space in maximum_size #217

Closed MCUdude closed 3 years ago

MCUdude commented 3 years ago

The default maximum_size field should instead reflect the total amount of flash memory the microcontroller has regardless if the user has loaded a bootloader or not. #207 related.

The actual bootloader size (512 or 1024 bytes depending on target) should instead be subtracted from maximum_size if board_hardware.uart != no_bootloader

MCUdude commented 3 years ago

@valeros does it look OK? Anything you want me to change?

valeros commented 3 years ago

All good, many thanks!