-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Refactoring memory regions definitions for Fast Models MPS2 targets #7706
Conversation
* added memory_zones.h * all linker scripts reference the definitions from memory_zones.h * tool chains use predefined 1K as ISR Stack size * ARM Complier 5 and GCC will auto calculated heap size * IAR use predefined 2MiB as heap size
* added memory_zones.h * all linker scripts reference the definitions from memory_zones.h * tool chains use predefined 1K as ISR Stack size * ARM Complier 5 and GCC will auto calculated heap size * IAR use predefined 2MiB as heap size
* added memory_zones.h * all linker scripts reference the definitions from memory_zones.h * tool chains use predefined 1K as ISR Stack size * ARM Complier 5 and GCC will auto calculated heap size * IAR use predefined 2MiB as heap size
* added memory_zones.h * all linker scripts reference the definitions from memory_zones.h * tool chains use predefined 1K as ISR Stack size * ARM Complier 5 and GCC will auto calculated heap size * IAR use predefined 2MiB as heap size
* align MPS2_M0 FVP target with other MPS2 targets * moved memory_zones.h * chnage the flash_api.c where referencing the old memory_zones * modify mbed_rtx.h to use the memory_zones definations as INITIAL_SP * all linker scripts reference the definitions from memory_zones.h * tool chains use predefined 1K as ISR Stack size * ARM Complier 5 and GCC will auto calculated heap size * IAR use predefined 2MiB as heap size
@@ -62,11 +66,10 @@ MEMORY | |||
*/ | |||
ENTRY(Reset_Handler) | |||
|
|||
HEAP_SIZE = 0x4000; | |||
STACK_SIZE = 0x1000; | |||
STACK_SIZE = 0x400; |
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.
Stack size is hard-coded to 1KB
not only for IAR
, but also for GCC
and ARM
compilers. 1KB
is the stack size required by MBED 5
. And I see that there is no distinction for MBED 2
builds (which requires 4KB stack).
I see that FVP_MPS2
target has release_version
5
only. Probably MBED 2
builds are are not provided for Fast Model and that is why there is no distinction for stack required by MBED 2
. Is it correct?
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.
Yes, hardcoded for 1KB is because Fastmodels only support mbed OS 5 at moment.
When mbed os 2 support is added, the linker scripts need to be adjusted based on the presence of MBED_CONF_RTOS_PRESENT
macro
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.
👍
/morph build |
Build : SUCCESSBuild number : 2800 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2430 |
/morph test |
Test : FAILUREBuild number : 2539 |
The sync failed the target was NRF51_DK, which total unrelated to the PR. |
Interesting... |
/morph test |
Test : SUCCESSBuild number : 2562 |
Refactoring memory regions definitions for Fast Models MPS2 targets
Description
This PR is about refactoring the memory regions definitions for fast models MPS2 targets
The reason for this changes are:
HEAP_SIZE
. running code coverage requires much larger heap.The changes had been made:
Pull request type
cc @mprse