抱歉,您的浏览器无法访问本站
本页面需要浏览器支持(启用)JavaScript
了解详情 >

Sephiroth1s'blog

The quieter you became,the more you are able to hear.

1、无法进入调试

  • 现象: jlink 无法连接设备 iar 报错弹窗 could not determine address of core debug register .incorrect coresight rom table in device
  • 解决方案:根据原始参考链接或者中文参考在示例工程的 ddr_init.jlinkscript 文件中,ConfigTargetSettings 函数中添加如下内容即可
  • 原因:看原始参考说明貌似是 imx 自己的兼容性问题,不过比较好奇,官方的 sdk 当时开发的时候是怎么跑通的,难不成是因为我用的某宝版 jlink?ಠ_ಠ
/* ConfigTarget */
void ConfigTargetSettings(void)
{
Report(“Config JTAG Speed to 4000kHz”);
JTAG_Speed = 4000;

// The i.MX 6 ULL series does not like scanning the AP map because accessing
// a non-existing AP causes the whole DAP to crash and hang until power cycle
// Therefore, we manually setup the AP map so the J-Link SW skips the scanning

CORESIGHT_AddAP(0, CORESIGHT_AHB_AP);
CORESIGHT_AddAP(1, CORESIGHT_APB_AP);
CORESIGHT_IndexAPBAPToUse = 1;
}

2、进入调试后无法跑到 main

  • 现象:根据前面步骤成功进入调试,但无法单步调试,也没有运行到 main
  • 解决方案:在这个模式,点击窗口中的 Make&Restart Debugger 就可以自动重启停到 main 了