大家好,我再使用JATG调试c6748e,现在使用串口解密JATG,JATG可以连上,如果只是运行hello work的话,JATG会保持良好的连接,但是运行实例时,刚运行完没事,一会就打印以下错误:
ICEPICK_C: Error: (Error -2172 @ 0x0) Unable to communicate with the emulator. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Emulation package 5.1.73.0)
ICEPICK_C: Unable to determine target status after 20 attempts
ICEPICK_C: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
C674X_0: JTAG Communication Error: (Error -2172 @ 0x0) Unable to communicate with the emulator. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Emulation package 5.1.73.0)
C674X_0: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
我加入断点,发现只要运行以下代码就出错了,希望大家帮帮忙,小白很郁闷。
psc1Regs->MDCTL[CSL_PSC_DDR2_MDDR] = CSL_FMKT( PSC_MDCTL_NEXT, ENABLE )
| CSL_FMKT( PSC_MDCTL_LRST, DEASSERT );
// move EMIFB PSC to Next state
psc1Regs->PTCMD = CSL_FMKT( PSC_PTCMD_GO0, SET );
// wait for transition
while ((CSL_FEXT( psc1Regs->MDSTAT[CSL_PSC_DDR2_MDDR], PSC_MDSTAT_STATE )
!= CSL_PSC_MDSTAT_STATE_ENABLE)&& (timeoutCount > 0) ){
timeoutCount--;
}