Skip to content

Commit d918f4a

Browse files
committed
Change stack sizes.
Change stack sizes in test stats_cpu and mbedmicro-rtos-mbed-threads. The value 384 was declared to make this test pass on STM32F070RB, but its main stack value has been changed to 3KB so now it passes this test with 512 stack size. The change was needed to make GR_LYCHEE pass this test on ARM compiler.
1 parent 525d3cc commit d918f4a

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

TESTS/mbed_platform/stats_cpu/main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ using namespace utest::v1;
2929

3030
DigitalOut led1(LED1);
3131

32-
#define MAX_THREAD_STACK 384
32+
#define MAX_THREAD_STACK 512
33+
3334
#define SAMPLE_TIME 1000 // msec
3435
#define LOOP_TIME 2000 // msec
3536

@@ -100,7 +101,7 @@ Case cases[] = {
100101

101102
utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
102103
{
103-
GREENTEA_SETUP(20, "default_auto");
104+
GREENTEA_SETUP(30, "default_auto");
104105
return greentea_test_setup_handler(number_of_cases);
105106
}
106107

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

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,9 @@
2525
#error [NOT_SUPPORTED] test not supported
2626
#else
2727

28-
#define THREAD_STACK_SIZE 512
29-
#if defined(__CORTEX_A9)
30-
#define PARALLEL_THREAD_STACK_SIZE 512
31-
#elif defined(__CORTEX_M23) || defined(__CORTEX_M33)
32-
#define PARALLEL_THREAD_STACK_SIZE 512
33-
#elif defined(TARGET_ARM_FM)
3428
#define PARALLEL_THREAD_STACK_SIZE 512
35-
#elif defined(TARGET_CY8CKIT_062_WIFI_BT_PSA)
36-
#define PARALLEL_THREAD_STACK_SIZE 512
37-
#else
38-
#define PARALLEL_THREAD_STACK_SIZE 384
39-
#endif
40-
#define CHILD_THREAD_STACK_SIZE 384
29+
#define CHILD_THREAD_STACK_SIZE 512
30+
#define THREAD_STACK_SIZE 512
4131

4232
using namespace utest::v1;
4333

0 commit comments

Comments
 (0)