Using threadx with bss in SRAM OC failing

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

Using threadx with bss in SRAM OC failing

763 Views
ryanwinter
Contributor I

On my MIMXRT1060, I ran out of memory in the SRAM ITC (0x20000000) so I decided to move it into SRAM OC (0x20200000).

Once I did this, everything seemed fine, however as soon as I start a thread using threadx, the stack pointer appears to become corrupt and everyone falls apart.

The thread's stack is in the bss segment which is in the OC memory bank so I'm assuming this related. Is there something specific I need to do to get this to work?

Using SDRAM appeared to have the same problem, but I haven't investigated further there.

Labels (1)
0 Kudos
1 Reply

713 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Ryan Winter,

Thank you for your interest in NXP Semiconductor products and
for the opportunity to serve you.
The developer IDEs usually allow the developer to customize both sizes of the stack and heap, so you can give a try to increase the size of the stack.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos