RTCS/MFS stack size

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

RTCS/MFS stack size

跳至解决方案
1,112 次查看
njk909
Contributor II


When I create MFS or RTCS from within a task, does the stack for RTCS or MFS come out of the stack allocated for that task?  Or does it get its own chunk of stack?

Also, how do I know how much stack I have to allocate for all my tasks?  It would seem by the linker file that for the 52259 I would have 64K of stack to work with

ORIGIN = 0x20000000, LENGTH = 0x00010000  # SRAM - RW data

, but it seems like if I start allocating more than about 20K to various tasks, my application will fail to boot.

0 项奖励
回复
1 解答
985 次查看
DavidS
NXP Employee
NXP Employee

Hi Nathan,

Each task has its own stack that gets allocate from the heap.  Even if a user task creates the RTCS or MFS.

Regards,

David

在原帖中查看解决方案

0 项奖励
回复
2 回复数
986 次查看
DavidS
NXP Employee
NXP Employee

Hi Nathan,

Each task has its own stack that gets allocate from the heap.  Even if a user task creates the RTCS or MFS.

Regards,

David

0 项奖励
回复
985 次查看
njk909
Contributor II

Thank you!

0 项奖励
回复