-
Notifications
You must be signed in to change notification settings - Fork 3k
ST-DISCO_L475VG_IOT01A: Improve SRAM use for IAR toolchain #5844
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
Conversation
Use the entire SRAM2 with NVIC buffer + stack Increase HEAP size to 0x10000 in SRAM1 Increase the available SRAM1 by 0x2000
Local test report:
|
place in SRAM1_region { readwrite, block STACKHEAP }; | ||
place in SRAM2_region { }; | ||
place in SRAM1_region { readwrite, block HEAP }; | ||
place in SRAM2_region { block CSTACK }; |
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.
I'm not sure but shouldn't we add the readwrite
keyword ?
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.
Hello @bcostm Bruno
Your suggestion seemed good to me, but it does not link
It gives a long list of ambigous section match like this one
Error[Lc037]: ambiguous section match: "zi section .bss in main.o" matches more than one pattern "rw" (at line 36 of "C:/MCDGit7/mbed-os/BUILD/tests/DISCO_L475VG_IO T01A/IAR/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L4 75xG/device/TOOLCHAIN_IAR/stm32l475xx.icf") "rw" (at line 37 of "C:/MCDGit7/mbed-os/BUILD/tests/DISCO_L475VG_IO T01A/IAR/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L4 75xG/device/TOOLCHAIN_IAR/stm32l475xx.icf")
Is there any reason for asking this extra readwrite keyword ?
Cheers
Armelle
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.
That is correct, readwrite specifies: Place .data, .bss, and .noinit
. Therefore the linking error
It is good as it is
/morph build |
1 similar comment
/morph build |
Build : SUCCESSBuild number : 909 Triggering tests/morph test |
Odd build failure, appears to be unrelated to PR. Relaunching uvisor test. |
Exporter Build : ABORTEDBuild number : 584 |
/morph export-build |
Exporter Build : SUCCESSBuild number : 586 |
Description
DISCO_L475VG_IOT01A has 128 k of SRAM (32k in SRAM2 + 96k in SRAM1)
At the moment, for IAR toolchain, SRAM2 only contains the nvic vector.
With this PR:
Use the entire SRAM2 with NVIC buffer + stack
Increase HEAP size to 0x10000 in SRAM1
Increase the available SRAM1 by 0x2000
Status
READY
Todos
Steps to test or reproduce
I'm working on the wifi driver and I've had memory mapping issues with mbed-tls-client example