DAbt with LPC2368
Hi!
I used the GCC LPC23xx Port and some startup-, linker- and makefiles from the MCB2300FreeRTOSlwIP Projekt that compiles with GCC.
It compiles fine and runs – sometimes.
For starting I have 4 Tasks, On Displaying Text on the LCD, 3 flashing some LED with different frequency.
Problem is, when i use vTaskDelay in all 4 Tasks, the programm runs into the Dabt Handler. When i remove vTaskDely from any one of these 4 tasks, the programm is running fine.
I’ve zipped my GCC – Eclipse Projekt, it’s here: http://www.comefrom.de/permalinks/FreeRTOS_02.zip
SirSydom
DAbt with LPC2368
Did you see that there is an LPC2368 zip file available for download from the freertos site now? It is not in the main download yet. It uses crossworks, which in turn uses gcc. Would this help?
DAbt with LPC2368
The files in the new zip file setup the timer differently for the LPC23xx devices. Are you using the original FreeRTOS.org LPC2000 files, or the ones with the LPC23xx timer setup? It might be that the timer is not running, which would mean that tasks blocked using vTaskDelay() would never unblock.
When your tasks stop running, what is the processor doing? If it is running the idle task then I think it is likely that the timer is not running.
Dave.
DAbt with LPC2368
Sorry – just read your original post that says it is in the data abort.
Could it be that your tasks are running out of stack? Try increasing the stack allocated to the tasks when they are created.
Dave.
DAbt with LPC2368
Yes i know this port and I use it, but instead using the Demo Application i used the source directly, because i had no clue how to get a links script, makefile whatever one needs to compile out of the Crossworks Project.
DAbt with LPC2368
The Tasks are not even started.
The program creates the first task and then gets stuck anywhere..