Skip to content

Commit ba4834d

Browse files
committed
Fix OS_TCB_SIZE
The define OS_TCB_SIZE does not match the real stack size. This leaves the system with less than OS_TASKCNT TCBs and prevents a single thread configuration. This updates OS_TCB_SIZE to the correct value to fix the problem.
1 parent 2518eae commit ba4834d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rtos/rtx/TARGET_CORTEX_A/RTX_CM_lib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#define _declare_box(pool,size,cnt) uint32_t pool[(((size)+3)/4)*(cnt) + 3]
5151
#define _declare_box8(pool,size,cnt) uint64_t pool[(((size)+7)/8)*(cnt) + 2]
5252

53-
#define OS_TCB_SIZE 52
53+
#define OS_TCB_SIZE 60
5454
#define OS_TMR_SIZE 8
5555

5656
#if defined (__CC_ARM) && !defined (__MICROLIB)

rtos/rtx/TARGET_CORTEX_M/RTX_CM_lib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
#define _declare_box(pool,size,cnt) uint32_t pool[(((size)+3)/4)*(cnt) + 3]
5252
#define _declare_box8(pool,size,cnt) uint64_t pool[(((size)+7)/8)*(cnt) + 2]
5353

54-
#define OS_TCB_SIZE 52
54+
#define OS_TCB_SIZE 60
5555
#define OS_TMR_SIZE 8
5656

5757
typedef void *OS_ID;

0 commit comments

Comments
 (0)