Skip to content

Commit 3c302d9

Browse files
Qinghao ShiQinghao Shi
authored andcommitted
Increase the thread stack size on FastModel targets
The thread stack size was restricted due to some boards have really limited RAM sizes, and out of heap memory on multiple threads tests. The side effect was on the debug profile build, the tests will get stack overflow. We need the build the test with debug profile in order to do the code coverage analysis. So increased the thread stack size on FastModel targets.
1 parent 891c4ed commit 3c302d9

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ using utest::v1::Case;
3131

3232
#if defined(__CORTEX_M23) || defined(__CORTEX_M33)
3333
#define TEST_STACK_SIZE 512
34+
#elif defined(__ARM_FM)
35+
#define TEST_STACK_SIZE 512
3436
#else
3537
#define TEST_STACK_SIZE 256
3638
#endif

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ using namespace utest::v1;
3131

3232
#if defined(__CORTEX_M23) || defined(__CORTEX_M33)
3333
#define THREAD_STACK_SIZE 512
34+
#elif defined(__ARM_FM)
35+
#define THREAD_STACK_SIZE 512
3436
#else
3537
#define THREAD_STACK_SIZE 320 /* larger stack cause out of heap memory on some 16kB RAM boards in multi thread test*/
3638
#endif

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ volatile bool thread_should_continue = true;
3939
#define THREAD_STACK_SIZE 512
4040
#elif defined(__CORTEX_M23) || defined(__CORTEX_M33)
4141
#define THREAD_STACK_SIZE 512
42+
#elif defined(__ARM_FM)
43+
#define THREAD_STACK_SIZE 512
4244
#else
4345
#define THREAD_STACK_SIZE 256
4446
#endif

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#define PARALLEL_THREAD_STACK_SIZE 512
3535
#elif defined(__CORTEX_M23) || defined(__CORTEX_M33)
3636
#define PARALLEL_THREAD_STACK_SIZE 512
37+
#elif defined(__ARM_FM)
38+
#define PARALLEL_THREAD_STACK_SIZE 512
3739
#else
3840
#define PARALLEL_THREAD_STACK_SIZE 384
3941
#endif

0 commit comments

Comments
 (0)