I am using IAR Embedded Workbench with an I-Jet programmer to program a Kinetis K22 processor (MK22FN512VLL12) that is installed on our own custom board.
One board does not allow access to the debug port while others work fine. This is with the debugger probe set for a hardware reset. After the hardware reset TDO stays low and the DAP is not accessible. If I change the debugger probe setting to "No Reset", it then works fine. What would prevent access to the debug port after a reset and how do I fix it?
Here are some key excerpts from the log:
CoreSight error: Cannot read DP STAT register. No DAP access. Debugging is not possible.
C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\config\debugger\NXP\Kxx.dmac(91,18): Error: Operation error.
<Call to _ExecDeviceCoreConnect failed
Error while calling macro execUserCoreConnect
LowLevelReset(): Core 0: CpuStatus(status = <0x80: CPU_STATUS_MERR>) = 0
Debug Log(info): CPU status FAILED
ISigCmdInterpreter::Execute('DAP.RDPw 0x08 0x010000f0')
JTAG test failed - the TDO/SWDIO pin held permanently low.CoreSight error : Firmware scan error (may indicate pending fault AP transaction that must be aborted).