Fix build for high memory targets#51
Merged
devanlai merged 1 commit intodevanlai:masterfrom Jul 15, 2023
Merged
Conversation
The bootloader doesn't fit into the advertised 6.5 kB anymore, resulting in linker errors for all high-memory targets: ``` /usr/lib/gcc/arm-none-eabi/8.3.1/../../../arm-none-eabi/bin/ld: dapboot.elf section `.text' will not fit in region `rom' /usr/lib/gcc/arm-none-eabi/8.3.1/../../../arm-none-eabi/bin/ld: region `rom' overflowed by 276 bytes ``` Increase the reserved high-memory area from 0x1A00 to 0x1C00 (7 KiB), with 236 bytes to spare.
Owner
|
Thanks for spotting this and fixing it! |
Contributor
|
Hi! I don´t like this, as it makes the bootloader bigger for everyone. The compilation problem is because the user is not using the proper compiler. Using the old GCC 9, the bootloader compiles to 6564 bytes, and using the current "arm-gnu-toolchain-12.2.rel1" release, the size is only 6252 bytes. I suspect it should be documented to use a newer (>8) compiler. Have Fun! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bootloader doesn't fit into the advertised 6.5 kB anymore, resulting in linker errors for all high-memory targets:
Increase the reserved high-memory area from 0x1A00 to 0x1C00 (7 KiB), with 236 bytes to spare.