Global Variables changes value? Memory corruption?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Global Variables changes value? Memory corruption?

702 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jaybee on Tue Jul 23 05:01:49 MST 2013
Hi, I am using freeRTOS v7.2, my program has a few global variables which has its value changed constantly.... I have found their memory locations are being used by the lwip functions.... How can I declare a memory location for these global variables so they do not get overwritten?
0 Kudos
Reply
1 Reply

594 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Tue Jul 23 05:55:11 MST 2013
Most likely cause is stack corruption/overflow caused by providing too small a stack for each task. How much stack space have you allocated (and where) for each of your tasks?
0 Kudos
Reply