Skip to content

Commit a105f6f

Browse files
committed
Change the "malloc" test main for Cortex-A
"malloc" test is used a simple thread that executes only malloc and free, but it seems that there is a difference in the stack used between Cortex-A and Cortex-M. As a result of check, in Cortex-A, program aborts because of the lack of stack when THREAD_STACK_SIZE is 256, workes properly when THREAD_STACK_SIZE is 512 at least. Since it seems that the definition processing of "DEFAULT_STACK_SIZE" was gone from Mbed OS by updating CMSIS5/RTX5, I setted 512 directly for Cortex-A.
1 parent 698de3b commit a105f6f

File tree

1 file changed

+1
-1
lines changed
  • TESTS/mbedmicro-rtos-mbed/malloc

1 file changed

+1
-1
lines changed

TESTS/mbedmicro-rtos-mbed/malloc/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ volatile bool thread_should_continue = true;
3232
#define THREAD_MALLOC_SIZE 100
3333

3434
#if defined(__CORTEX_A9)
35-
#define THREAD_STACK_SIZE DEFAULT_STACK_SIZE
35+
#define THREAD_STACK_SIZE 512
3636
#else
3737
#define THREAD_STACK_SIZE 256
3838
#endif

0 commit comments

Comments
 (0)