Dear All,
My application needs multiple processes deployed as SWI, coprocessors having their ISR(executing in HWI context), and single low priority task which runs only a while(TRUE) loop after initializing the system. Can this mixed mode of modules be present in same application.?
Currently, my application is executing fine but stack usage of the low priority task is beyond 1kbytes. Before entering the while(TRUE) loop, the stack usage looks to be fine with minimal use. But after configuring the co-processor(FFTC and BCP), ISRs of the co-processors are using the low priority task's stack and I see a stack overflow.
As I understand, ISRs should use HWI stack which is _stack defined for system. Currently this is not the behavior what I am seeing.
Please let me know is there a way to force the ISRs to use the system stack, and not corrupt the task stack.
Also, if the single low priority task is changed to SWI, ISRs use the normal system stack and there seems to be no stack corruption. My requirement is to have a single low priority task executing with the SWIs and HWIs.
Thanks in advance.
Regards,
Sandeep M