comcle wrote on Wednesday, June 17, 2009:
OK, i found the Problem with SVC Command in the Cortex-M3.
It is a general problem while debugging with GDB and openocd. During Step-wise debugging, interrupts are disabled. SVC command causes an interrupt, so the command doesn’t work during stepping.
I found several suggestion in openOCD forums that i should enable interrupts again with “monitor cortex_m3 maskisr off” in the gdb console. This didn’t work.
After 2 days of searching a solution, it has shown that the problem was a wrong openOCD and GDB configuration. (It seems that 99% all problems are openOCD config problems)
Now i use openocd from the YAGARTO Homepage ( r1888+patch) with the following openocd Configuration files: interface/luminary.cfg target/lm3s6965.cfg, and following Startup code for GDB:
target extended-remote localhost:3333
Every works now. After startup troubles, the Luminary Cortex-M3 µCs + Codesourcery Lite + FreeRTOS + openOCD + Eclipse works great.