tests: arm: Increase main stack size with no optimizations
If the test is run with the config NO_OPTIMIZATIONS enabled then the stack size usage increases by around 80% for ARM platforms. Increase the stack size used in test cases that enables building with no optimizations for ARM. Update description on TEST_ARM_CORTEX_M since it was outdated and said it was only used for a single purpose. Fixes: #47930 Fixes: #47929 Fixes: #47855 Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
3eaf55a364
commit
fcb9813128
3 changed files with 7 additions and 2 deletions
|
@ -139,7 +139,10 @@ config TEST_ARM_CORTEX_M
|
||||||
help
|
help
|
||||||
ARM Cortex-M configuration required when testing.
|
ARM Cortex-M configuration required when testing.
|
||||||
|
|
||||||
Currently, this option is only utilized, to force routing
|
This option is used to select stack sizes and enable features for
|
||||||
|
testing.
|
||||||
|
|
||||||
|
This option is also used to force routing
|
||||||
BusFault, HardFault, and NMI exceptions to Secure State,
|
BusFault, HardFault, and NMI exceptions to Secure State,
|
||||||
when building a Secure ARMv8-M firmware. This will allow
|
when building a Secure ARMv8-M firmware. This will allow
|
||||||
the testing suite to utilize these exceptions, in tests.
|
the testing suite to utilize these exceptions, in tests.
|
||||||
|
|
|
@ -10,7 +10,7 @@ tests:
|
||||||
extra_configs:
|
extra_configs:
|
||||||
- CONFIG_NO_OPTIMIZATIONS=y
|
- CONFIG_NO_OPTIMIZATIONS=y
|
||||||
- CONFIG_IDLE_STACK_SIZE=512
|
- CONFIG_IDLE_STACK_SIZE=512
|
||||||
- CONFIG_MAIN_STACK_SIZE=1024
|
- CONFIG_MAIN_STACK_SIZE=2048
|
||||||
arch.interrupt.extra_exception_info:
|
arch.interrupt.extra_exception_info:
|
||||||
filter: not CONFIG_TRUSTED_EXECUTION_NONSECURE
|
filter: not CONFIG_TRUSTED_EXECUTION_NONSECURE
|
||||||
extra_configs:
|
extra_configs:
|
||||||
|
|
|
@ -10,6 +10,7 @@ tests:
|
||||||
extra_configs:
|
extra_configs:
|
||||||
- CONFIG_NO_OPTIMIZATIONS=y
|
- CONFIG_NO_OPTIMIZATIONS=y
|
||||||
- CONFIG_IDLE_STACK_SIZE=512
|
- CONFIG_IDLE_STACK_SIZE=512
|
||||||
|
- CONFIG_MAIN_STACK_SIZE=2048
|
||||||
min_flash: 192
|
min_flash: 192
|
||||||
arch.arm.swap.common.fpu_sharing:
|
arch.arm.swap.common.fpu_sharing:
|
||||||
filter: not CONFIG_TRUSTED_EXECUTION_NONSECURE and CONFIG_ARMV7_M_ARMV8_M_FP
|
filter: not CONFIG_TRUSTED_EXECUTION_NONSECURE and CONFIG_ARMV7_M_ARMV8_M_FP
|
||||||
|
@ -23,4 +24,5 @@ tests:
|
||||||
- CONFIG_FPU_SHARING=y
|
- CONFIG_FPU_SHARING=y
|
||||||
- CONFIG_NO_OPTIMIZATIONS=y
|
- CONFIG_NO_OPTIMIZATIONS=y
|
||||||
- CONFIG_IDLE_STACK_SIZE=512
|
- CONFIG_IDLE_STACK_SIZE=512
|
||||||
|
- CONFIG_MAIN_STACK_SIZE=2048
|
||||||
min_flash: 192
|
min_flash: 192
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue