Hi,
Working with a TMS570LS3137 powered safety ECU I have to connect to the running target in order to debug with safety outputs enabled.
We use TI Code Composer Studio (CCS) 7, Jlink support installed. The Jlink version is 6.14b. The CCS Jlink drivers includes a Jlink script for the TMS570 MCU (TMS570.JLinkScript).
The script overrides the Jlink DLL behaviour for InitTarget (setting up the TI IcePick ondevice JTAG controller and the JTAG chain) and ResetTarget (Reset via IcePick).
Using Jlink with CCS 'out of the box' it will reset and halt (vector catch) the MCU when connecting (via the TargetReset() in the script).
Thus no attach to a running target possible.
I deactivated the ResetTarget routine in the script to omit the reset of the MCU during connect.
Now I can connect to the running target however the CPU is halted after execution of the connect (InitTarget) routine whereas I would require it to continue running and set a breakpoint via Jlink.
The behaviour is the same for the CCS Debugger and for Jlink commander (both executed with the patched JLinkScript).
To start the target with the safe outputs enabled, you have to powercycle it: Thus i cannot start the target after having connected but have to attach to the running target.
According to the Jlink Control Panel log I assume neither the CCS debugger nor the JLink commander send a "halt" explicitly during the connection process.
Is there a way to attach to a running Cortex R4 MCU with Jlink and keep it running? What else could I check regarding this issue?
Best regards,
Michael
Working with a TMS570LS3137 powered safety ECU I have to connect to the running target in order to debug with safety outputs enabled.
We use TI Code Composer Studio (CCS) 7, Jlink support installed. The Jlink version is 6.14b. The CCS Jlink drivers includes a Jlink script for the TMS570 MCU (TMS570.JLinkScript).
The script overrides the Jlink DLL behaviour for InitTarget (setting up the TI IcePick ondevice JTAG controller and the JTAG chain) and ResetTarget (Reset via IcePick).
Using Jlink with CCS 'out of the box' it will reset and halt (vector catch) the MCU when connecting (via the TargetReset() in the script).
Thus no attach to a running target possible.
I deactivated the ResetTarget routine in the script to omit the reset of the MCU during connect.
Now I can connect to the running target however the CPU is halted after execution of the connect (InitTarget) routine whereas I would require it to continue running and set a breakpoint via Jlink.
The behaviour is the same for the CCS Debugger and for Jlink commander (both executed with the patched JLinkScript).
To start the target with the safe outputs enabled, you have to powercycle it: Thus i cannot start the target after having connected but have to attach to the running target.
According to the Jlink Control Panel log I assume neither the CCS debugger nor the JLink commander send a "halt" explicitly during the connection process.
Is there a way to attach to a running Cortex R4 MCU with Jlink and keep it running? What else could I check regarding this issue?
Best regards,
Michael