Im trying to build a homecontrol device using the atmega1281 (STK501) and FreeRTOS kernel (V6.1.1). This is my first piece of code larger than "receive, transmite data through USART" or "PWM to move some servo" so be gentle :oops:
After i implant some test tasks, that worked fine, and code starts to get bigger (at about 4 tasks) the device started to reset. I deleted 2 tasks and everything worked fine. While the code was growing these resets starts again. When Im shortening Stack sizes of the tasks and TOTAL_HEAP_SIZE to minimum the prject works until code become a little bigger and starts reset again.
I assume from all these that this happens due to SRAM overflow but since my experince is tiny, like a small almond, im not sure about it and i have no idea how i shall check and fix it.
Im all ears and anticipate for ideas :)