anonymous wrote on Saturday, September 08, 2012:
I am new to RTOs. I am trying to use freeRTOS on a motor control application. The thing is, that my application works fine for two, maybe three minutes and then it just crashes. I am using a 10 Kb heap size on a dsPIC33FJ128MC802.
I am starting to think that maybe this is not the best application to use freeRTOS with. It has a modulation algorithm (Space vector modulation) which is computer intensive and it must be executed at least every 333usec. So, this means having a tick rate of at least 3kHz, which is not recomended, however, i do not know another way of having a faster task.
I have checked my stack size and I think it is more than enough, I know i am not having a stack overflow problem (already used the vApplicationStackOverflowHook to discard that). Maybe this question seems kind of obvious for the rest of you but i am feeling really puzzled. SO any help and suggestions are more than welcome.