This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

two seperate call stacks with MSP and PSP

Hello,

I intended to implement an application without OS. Due to safety concerns I would like to have two call stacks : one for softdevice using MSP and the other for my application using PSP.

Is there an example for how to do this ?

Regards,

Parents
  • Unless you are writing the OS yourself, I don't think you need to worry about it. For example, in my projects using C and with only one main thread and interrupt handlers, I don't worry about it. The compiler takes care of it without my knowing. I only know it happens because I can read the assembler code and see for example a MOVS instruction, where the "S" means it also switches context.

Reply
  • Unless you are writing the OS yourself, I don't think you need to worry about it. For example, in my projects using C and with only one main thread and interrupt handlers, I don't worry about it. The compiler takes care of it without my knowing. I only know it happens because I can read the assembler code and see for example a MOVS instruction, where the "S" means it also switches context.

Children
No Data
Related