i have the FreeRTOS running on a LPC2290-Board and up to now it works fine. Additionally i have added the newlib-lpc-port from Aeolus and it also runs fine. For developing I’m using the WinARM-distribution.
Now i have tried to extend the system with an proprietary CAN-driver and the i get abort-errors and some strange behaviour. I’m still debugging with a GBD-Insight with segger-JLink and my gdg told me, the may be stack is corrupted or I got the message “cannot access the memory address 0x11111111” which is the regvalue of r11.
I think, that stacksizes are big enough, 0x2000 for IRQ and SVC !
At the moment I don’t have any idea how to catch this problem, does anyone have an idea how to find this error ?
Does the CAN ISR use a lot of stack?
Has the CAN ISR been written using the required syntax (naked attributes, portENTER_SWITCHING_ISR(), only declaring variables ater the call to portENTER_SWITCHING_ISR(), etc)?
In the Data Abort handler, inspect the value of pxCurrentTCB to find out the location of the stack being used. If there are no 0xA5’s left in the stack then it has overflowed.