File tree Expand file tree Collapse file tree 7 files changed +25
-1
lines changed
TESTS/mbedmicro-rtos-mbed
features/nvstore/TESTS/nvstore/functionality Expand file tree Collapse file tree 7 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 29
29
30
30
using utest::v1::Case;
31
31
32
+ #if defined(__CORTEX_M23) || defined(__CORTEX_M33)
33
+ #define TEST_STACK_SIZE 512
34
+ #else
32
35
#define TEST_STACK_SIZE 256
36
+ #endif
33
37
#define ONE_MILLI_SEC 1000
34
38
35
39
volatile uint32_t elapsed_time_ms = 0 ;
Original file line number Diff line number Diff line change @@ -30,7 +30,11 @@ using utest::v1::Case;
30
30
#error [NOT_SUPPORTED] test not supported
31
31
#endif
32
32
33
+ #if defined(__CORTEX_M23) || defined(__CORTEX_M33)
34
+ #define THREAD_STACK_SIZE 512
35
+ #else
33
36
#define THREAD_STACK_SIZE 320 /* 512B stack on GCC_ARM compiler cause out of memory on some 16kB RAM boards e.g. NUCLEO_F070RB */
37
+ #endif
34
38
35
39
#define MAX_FLAG_POS 30
36
40
#define PROHIBITED_FLAG_POS 31
Original file line number Diff line number Diff line change 29
29
30
30
using namespace utest ::v1;
31
31
32
+ #if defined(__CORTEX_M23) || defined(__CORTEX_M33)
33
+ #define THREAD_STACK_SIZE 512
34
+ #else
32
35
#define THREAD_STACK_SIZE 320 /* larger stack cause out of heap memory on some 16kB RAM boards in multi thread test*/
36
+ #endif
33
37
#define QUEUE_SIZE 16
34
38
#define THREAD_1_ID 1
35
39
#define THREAD_2_ID 2
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ volatile bool thread_should_continue = true;
37
37
38
38
#if defined(__CORTEX_A9)
39
39
#define THREAD_STACK_SIZE 512
40
+ #elif defined(__CORTEX_M23) || defined(__CORTEX_M33)
41
+ #define THREAD_STACK_SIZE 512
40
42
#else
41
43
#define THREAD_STACK_SIZE 256
42
44
#endif
Original file line number Diff line number Diff line change 29
29
30
30
using namespace utest ::v1;
31
31
32
+ #if defined(__CORTEX_M23) || defined(__CORTEX_M33)
33
+ #define TEST_STACK_SIZE 768
34
+ #else
32
35
#define TEST_STACK_SIZE 512
36
+ #endif
33
37
34
38
#define TEST_LONG_DELAY 20
35
39
#define TEST_DELAY 10
Original file line number Diff line number Diff line change 32
32
#define THREAD_STACK_SIZE 512
33
33
#if defined(__CORTEX_A9)
34
34
#define PARALLEL_THREAD_STACK_SIZE 512
35
+ #elif defined(__CORTEX_M23) || defined(__CORTEX_M33)
36
+ #define PARALLEL_THREAD_STACK_SIZE 512
35
37
#else
36
38
#define PARALLEL_THREAD_STACK_SIZE 384
37
39
#endif
Original file line number Diff line number Diff line change @@ -43,9 +43,13 @@ static const int thr_test_num_secs = 5;
43
43
static const int thr_test_max_data_size = 32 ;
44
44
static const int thr_test_num_threads = 3 ;
45
45
46
+ #if defined(__CORTEX_M23) || defined(__CORTEX_M33)
47
+ static const int thr_test_min_stack_size = 1280 ;
48
+ static const int thr_test_max_stack_size = 1280 ;
49
+ #else
46
50
static const int thr_test_min_stack_size = 768 ;
47
51
static const int thr_test_max_stack_size = 1024 ;
48
-
52
+ # endif
49
53
50
54
typedef struct {
51
55
uint8_t *buffs[max_test_keys][thr_test_num_buffs];
You can’t perform that action at this time.
0 commit comments