jordonhofer wrote on Thursday, August 09, 2007:
Hi. I have been working with FreeRTOS on an LPC2366 (ARM7TDMI-S) on a custom-made board. I am using CrossStudio with a JLink debugger. So far it has been a very positive experience.
Starting with the original demo, I started tweaking to make it do what I want it to do. I made a task to manage the flash pattern of 4 LEDs.
When I started adding some functions that we use on our other boards, at some point it quit running. After playing with it to see what happened, I have it tracked down to a single line of code that doesn’t even get called yet (“size += 4;” if you’re interested :). I don’t think this line is the cause, but adding it causes the program not to run (no LED activity) and commenting it out makes the program run (LEDs flash like they should.) It looks to me like a memory boundary issue or something.
The strange thing is that I have 220.5 kB of the 256kB of FLASH free and 6.1 kB of the 32kB of SRAM free. It doesn’t look like I am running out of memory.
Does anyone have any ideas on what could cause this or what to do to learn more about this problem?
thanks.
jorj