System Reset while using FreeRtos

nobody wrote on Sunday, April 08, 2007:

hi
I am using freertos with AVR Mega128. But there seems to some problem, as my system resets after some time.

Recently I called a funtion from task (with local functions from task as local variable), the system reseted it after some time. When I made those variable global, the code worked fine. Now I have added some further code ,the problem is recurring again. Reason is different this time, I dont know :frowning:

Please tell me the various conditions in which freertos performs system reset.

nobody wrote on Sunday, April 08, 2007:

Most likely you are running out of stack.  Making the variables global will mean that the function uses less stack.  Try increasing the stack size allocated to the offending task.

nobody wrote on Tuesday, April 10, 2007:

If you are using Watchdog timer then system reset after defined interval for WDT.