Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not include occupied bootloader space in maximum_size #217

Merged
merged 1 commit into from Nov 27, 2020
Merged

Do not include occupied bootloader space in maximum_size #217

merged 1 commit into from Nov 27, 2020

Conversation

MCUdude
Copy link
Contributor

@MCUdude MCUdude commented Nov 24, 2020

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

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.
@MCUdude
Copy link
Contributor Author

MCUdude commented Nov 26, 2020

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

@valeros valeros merged commit 5c1a4c5 into platformio:develop Nov 27, 2020
@valeros
Copy link
Member

valeros commented Nov 27, 2020

All good, many thanks!

DerAndere1 added a commit to DerAndere1/Marlin that referenced this pull request Aug 25, 2021
And allow melzi_optiboot for Anet V1.0 board with optiboot.

Note: Since platformio/platform-atmelavr#217 ,
all envs that are intended to be used with a bootloader should define
board_upload.maximum_size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants