Other Parts Discussed in Thread: SEGGER
Tool/software: Code Composer Studio
I am trying to use a Segger J-Link to debug FreeRTOS-based application on an EK-TM4C1294XL evaluation kit.
When I attempt to debug the target within Code Composer Studio, the code runs to main and can be single-stepped on-demand, however upon calling startup of the FreeRTOS scheduler, service handler 0 is called (line 151 of portasm.s) and execution is halted. Attempts to step past this instruction simply result in the debugger remaining paused at the same instruction.
I am aware that semihosting also makes use of service calls and have disabled this feature since it is not needed in my target application. Despite this, I still cannot continue beyond startup of the FreeRTOS scheduler. I can debug the application without any problems if I connect to the target after it has been reset.
I found a forum post and a blog where the same problem was fixed in gdb by adding monitor reset 0
to the debugger startup options, but I do not see anywhere to set this option within CCS. Presumably CCS is passing on some undesired setting to ccs_base\DebugServer\drivers\JLinkARM.dll (as far as I can tell, this is what interfaces to the debugger) which causes this problem.
I've already asked for support from Segger and they do not believe this to be any issue related to their own hardware or the debugger support packages installed in CCS. What am I missing?