I'm reading some data on ADC channels on dsPIC30F6014A.
For that I have implemented a separate task for each ADC(say 7 channels-7 tasks).
I have created all the tasks at the start only, My heap size is 5120, I'm using heap_4.c and I have allocated stack for each task is configMINIMAL_Stack
(i.e. 115).
These tasks are running continuously and periodically(just vTaskSuspend()
and vTaskResume()
is what I'm doing)
At start all tasks are working fine but after some time vApplicationStackOverflowHook()
occurs, i.e. stack gets overflowed.
Is there any possibility of wrong handling of memory?