-
Notifications
You must be signed in to change notification settings - Fork 3k
Move BSS to SRAM2 to increase heap size on ST475 IOT board #9434
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
Closed
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file modified
BIN
+5.28 KB
(120%)
...STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A/mbed-bootloader-internal_dfb7cc.bin
Binary file not shown.
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
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
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
94 changes: 47 additions & 47 deletions
94
targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/device/TOOLCHAIN_IAR/stm32l475xx.icf
100644 → 100755
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
if (!isdefinedsymbol(MBED_APP_START)) { define symbol MBED_APP_START = 0x08000000; } | ||
if (!isdefinedsymbol(MBED_APP_SIZE)) { define symbol MBED_APP_SIZE = 0x100000; } | ||
|
||
/* [ROM = 1024kb = 0x100000] */ | ||
define symbol __intvec_start__ = MBED_APP_START; | ||
define symbol __region_ROM_start__ = MBED_APP_START; | ||
define symbol __region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1; | ||
|
||
/* [RAM = 96kb + 32kb = 0x20000] */ | ||
/* Vector table dynamic copy: Total: 98 vectors * 4 = 392 bytes (0x188) to be reserved in RAM */ | ||
define symbol __NVIC_start__ = 0x10000000; | ||
define symbol __NVIC_end__ = 0x10000187; | ||
define symbol __region_SRAM2_start__ = 0x10000188; | ||
define symbol __region_SRAM2_end__ = 0x10007FFF; | ||
define symbol __region_CRASH_DATA_RAM_start__ = 0x20000000; | ||
define symbol __region_CRASH_DATA_RAM_end__ = 0x200000FF; | ||
define symbol __region_SRAM1_start__ = 0x20000100; | ||
define symbol __region_SRAM1_end__ = 0x20017FFF; | ||
|
||
/* Memory regions */ | ||
define memory mem with size = 4G; | ||
define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__]; | ||
define region SRAM2_region = mem:[from __region_SRAM2_start__ to __region_SRAM2_end__]; | ||
define region CRASH_DATA_RAM_region = mem:[from __region_CRASH_DATA_RAM_start__ to __region_CRASH_DATA_RAM_end__]; | ||
define region SRAM1_region = mem:[from __region_SRAM1_start__ to __region_SRAM1_end__]; | ||
|
||
/* Define Crash Data Symbols */ | ||
define exported symbol __CRASH_DATA_RAM_START__ = __region_CRASH_DATA_RAM_start__; | ||
define exported symbol __CRASH_DATA_RAM_END__ = __region_CRASH_DATA_RAM_end__; | ||
|
||
if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) { | ||
define symbol MBED_BOOT_STACK_SIZE = 0x400; | ||
} | ||
|
||
define symbol __size_cstack__ = MBED_BOOT_STACK_SIZE; | ||
define symbol __size_heap__ = 0x10000; | ||
define block CSTACK with alignment = 8, size = __size_cstack__ { }; | ||
define block HEAP with alignment = 8, size = __size_heap__ { }; | ||
|
||
initialize by copy with packing = zeros { readwrite }; | ||
do not initialize { section .noinit }; | ||
|
||
place at address mem:__intvec_start__ { readonly section .intvec }; | ||
|
||
place in ROM_region { readonly }; | ||
place in SRAM1_region { readwrite, block HEAP }; | ||
place in SRAM2_region { block CSTACK }; | ||
if (!isdefinedsymbol(MBED_APP_START)) { define symbol MBED_APP_START = 0x08000000; } | ||
if (!isdefinedsymbol(MBED_APP_SIZE)) { define symbol MBED_APP_SIZE = 0x100000; } | ||
/* [ROM = 1024kb = 0x100000] */ | ||
define symbol __intvec_start__ = MBED_APP_START; | ||
define symbol __region_ROM_start__ = MBED_APP_START; | ||
define symbol __region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1; | ||
/* [RAM = 96kb + 32kb = 0x20000] */ | ||
/* Vector table dynamic copy: Total: 98 vectors * 4 = 392 bytes (0x188) to be reserved in RAM */ | ||
define symbol __NVIC_start__ = 0x10000000; | ||
define symbol __NVIC_end__ = 0x10000187; | ||
define symbol __region_SRAM2_start__ = 0x10000188; | ||
define symbol __region_SRAM2_end__ = 0x10007FFF; | ||
define symbol __region_CRASH_DATA_RAM_start__ = 0x20000000; | ||
define symbol __region_CRASH_DATA_RAM_end__ = 0x200000FF; | ||
define symbol __region_SRAM1_start__ = 0x20000100; | ||
define symbol __region_SRAM1_end__ = 0x20017FFF; | ||
/* Memory regions */ | ||
define memory mem with size = 4G; | ||
define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__]; | ||
define region SRAM2_region = mem:[from __region_SRAM2_start__ to __region_SRAM2_end__]; | ||
define region CRASH_DATA_RAM_region = mem:[from __region_CRASH_DATA_RAM_start__ to __region_CRASH_DATA_RAM_end__]; | ||
define region SRAM1_region = mem:[from __region_SRAM1_start__ to __region_SRAM1_end__]; | ||
/* Define Crash Data Symbols */ | ||
define exported symbol __CRASH_DATA_RAM_START__ = __region_CRASH_DATA_RAM_start__; | ||
define exported symbol __CRASH_DATA_RAM_END__ = __region_CRASH_DATA_RAM_end__; | ||
if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) { | ||
define symbol MBED_BOOT_STACK_SIZE = 0x400; | ||
} | ||
define symbol __size_cstack__ = MBED_BOOT_STACK_SIZE; | ||
define symbol __size_heap__ = 0x17000; | ||
define block CSTACK with alignment = 8, size = __size_cstack__ { }; | ||
define block HEAP with alignment = 8, size = __size_heap__ { }; | ||
initialize by copy with packing = zeros { readwrite }; | ||
do not initialize { section .noinit }; | ||
place at address mem:__intvec_start__ { readonly section .intvec }; | ||
place in ROM_region { readonly }; | ||
place in SRAM1_region { readwrite, block HEAP }; | ||
place in SRAM2_region { first block CSTACK, zeroinit }; |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs revert of permissions change (100644 → 100755)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated permissions with #9588 as Lin is away on vacation and I couldn't update this PR.