RTCS/MFS stack size

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RTCS/MFS stack size

Jump to solution
1,111 Views
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 Kudos
Reply
1 Solution
984 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
985 Views
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 Kudos
Reply
984 Views
njk909
Contributor II

Thank you!

0 Kudos
Reply