|ARM Technical Support Knowledge Articles|
Applies to: RealView Real-Time Library
Information in this article applies to:
After upgrading from ARTX to RL-ARM, I noticed that the area defined for the system task stacks grew much larger. I didn't change my stack size or number of tasks. What happened? How can I fix this?
The RTL.h file contains the following macro definition for _declare_box8 which RL-ARM uses to declare system stack memory:
#define _declare_box8(pool,size,cnt) U64 pool[((size+7)/8)*cnt + 2]
ARTX did not use this macro.
In RL-ARM, because the cnt parameter is not enclosed in parentheses, the parameter OS_TASKCNT - OS_PRIVCNT + 2 for determining the number of system tasks is not calculated properly. To correct this, change the macro definition for _declare_box8 in RTL.h to the following:
#define _declare_box8(pool,size,cnt) U64 pool[((size+7)/8)*(cnt) + 2]
The RTL.h file is updated in RL-ARM V3.04.
Article last edited on: 2007-01-10 15:52:26
Did you find this article helpful? Yes No
How can we improve this article?