大家好!
我的名字叫凯文。
我有一个自定义板专门设计da14580和da14580的一个devkit-B。当我试着在devkit上调试da14580的闪烁代码时,它成功运行并且led会周期性闪烁。
但是当我调试闪烁的代码到我的自定义板时,usb附近的devkit上的红色led没有打开,而keil上的命令日志显示如下:
* JLink Info: Reset:通过demcr . vc_coreeset重置后暂停核心。
* JLink Info: Reset:通过AIRCR.SYSRESETREQ重置设备。
SP = _RDWORD (0x20000000)
$ = _RDWORD (0x20000004)
**JLink警告:CPU无法停止
***JLink Error: Can not read register 15 (R15) while CPU is running . ***JLink Error: Can not read register 15 (R15) while CPU is running
***JLink Error: Can not read register 16 (XPSR) while CPU is running
***JLink Error: Can not read register 0 (R0) while CPU is running . ***JLink Error: Can not read register 0 (R0) while CPU is running
***JLink Error: Can not read register 1 (R1) while CPU is running . ***JLink Error: Can not read register 1 (R1) while CPU is running
***JLink Error: Can not read register 2 (R2) while CPU is running . ***JLink Error: Can not read register 2 (R2) while CPU is running
***JLink Error: Can not read register 3 (R3) while CPU is running . ***JLink Error: Can not read register 3 (R3) while CPU is running . ***
***JLink Error: Can not read register 4 (R4) while CPU is running . ***JLink Error: Can not read register 4 (R4) while CPU is running
***JLink Error: Can not read register 5 (R5) while CPU is running . ***JLink Error: Can not read register 5 (R5) while CPU is running
***JLink Error: Can not read register 6 (R6) while CPU is running . ***JLink Error: Can not read register 6 (R6) while CPU is running
***JLink Error: Can not read register 7 (R7) while CPU is running . ***JLink Error: Can not read register 7 (R7) while CPU is running
***JLink Error: Can not read register 8 (R8) while CPU is running . ***JLink Error: Can not read register 8 (R8) while CPU is running
***JLink Error: Can not read register 9 (R9) while CPU is running . ***JLink Error: Can not read register 9 (R9) while CPU is running
***JLink Error: Can not read register 10 (R10) while CPU is running . ***JLink Error: Can not read register 10 (R10) while CPU is running
***JLink Error: Can not read register 11 (R11) while CPU is running . ***JLink Error: Can not read register 11 (R11) while CPU is running
***JLink Error: Can not read register 12 (R12) while CPU is running . ***JLink Error: Can not read register 12 (R12) while CPU is running
***JLink Error: Can not read register 13 (R13) while CPU is running . ***JLink Error: Can not read register 13 (R13) while CPU is running
***JLink Error: Can not read register 14 (R14) while CPU is running . ***JLink Error: Can not read register 14 (R14) while CPU is running
***JLink Error: Can not read register 15 (R15) while CPU is running . ***JLink Error: Can not read register 15 (R15) while CPU is running
***JLink Error: Can not read register 16 (XPSR) while CPU is running
***JLink Error: Can not read register 17 (MSP) while CPU is running . ***JLink Error: Can not read register 17 (MSP) while CPU is running
***JLink Error: Can not read register 18 (PSP) while CPU is running . ***JLink Error: Can not read register 18 (PSP) while CPU is running
***JLink Error: Can not read register 20 (CFBP) while CPU is running . ***JLink Error: Can not read register 20 (CFBP) while CPU is running
然后我试图找到另一种方法,使用智能代码片段在定制板上闪烁代码。当我在smarsnippets中使用jtag模式时,日志显示如附件页1,当我使用uart模式时,日志显示如附件页2。我有点搞不懂“cpu没有停止”的意思。你能为我的问题提供解决方案吗?
是水晶的组装问题吗?
嗨Kevleo94,
你收到的消息与JTAG连接有关,显然JTAG不能与你定制板上的ARM连接,另外,在您所附的第二个屏幕截图中,我看到您已经尝试通过UART将您的定制板连接到Smart Snippets,显然,Smart Snippets工具无法跟踪ROM启动程序的启动顺序。
由于MT_dialog
嗨MT_dialog,
谢谢你的回复。你有办法解决我的问题吗?
嗨Kevleo94,
如果您的板是可操作的,您应该检查您的JTAG(如果您想通过SWD下载代码)和UART(如果您想通过UART下载代码)连接。当启动板时,还要检查引导加载程序是否正在执行。
由于MT_dialog