Skip to content

Commit eecdd38

Browse files
committed
Enlarge timer thread stack size for Cortex-M23/M33
1 parent d08c819 commit eecdd38

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

rtos/TARGET_CORTEX/mbed_rtx_conf.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@
3434

3535
#define OS_STACK_SIZE MBED_CONF_APP_THREAD_STACK_SIZE
3636

37-
#define OS_TIMER_THREAD_STACK_SIZE 768
37+
#ifndef OS_TIMER_THREAD_STACK_SIZE
38+
#if (defined(__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)) ||\
39+
(defined(__DOMAIN_NS) && (__DOMAIN_NS == 1U))
40+
#define OS_TIMER_THREAD_STACK_SIZE 1280
41+
#else
42+
#define OS_TIMER_THREAD_STACK_SIZE 768
43+
#endif
44+
#endif
45+
3846
#ifndef OS_IDLE_THREAD_STACK_SIZE
3947
#define OS_IDLE_THREAD_STACK_SIZE 512
4048
#endif

0 commit comments

Comments
 (0)