你好,
I just received the DA14580 Development Kit - Pro (motherboard+daughterboard QFN40) and worked through the User Manual "DA14580/581/583 Bluetooth Smart development Kit – Pro" PDF. I was able to open and build the sample projekt "blinky" on Keil uVision5. After I started the debug session the program started succesfully. However, when I do a reset (ether via Keil or button) I get the following log and the program crashs.
***具有32768字节代码大小限制的受限版本
***当前使用:3276字节(9%)
SP = _RDWORD (0x20000000)
$ = _RDWORD (0x20000004)
*JLink信息:找到ID为0x0BB11477的SWD-DP
*JLink信息:找到Cortex-M0 r0p0,Little endian。
*JLink Info:FPUnit:4个代码(BP)槽和0个文本槽
*JLink信息:CoreSight组件:
*链接信息:ROMTbl 0@E00FF000
*JLink Info: ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS
*链接信息:ROMTbl 0[1]:FFF02000,CID:B105E00D,PID:000BB00A DWT
*链接信息:ROMTbl 0[2]:FFF03000,CID:B105E00D,PID:000BB00B FPB
**JLink警告:CPU无法停止
***JLink错误:CPU运行时无法读取寄存器15(R15)
***JLink错误:CPU运行时无法读取寄存器16(XPSR)
***JLink Error: Can not read register 0 (R0) while CPU is running
***JLink错误:CPU运行时无法读取寄存器1(R1)
***JLink Error: Can not read register 2 (R2) while CPU is running
***JLink错误:CPU运行时无法读取寄存器3(R3)
***JLink Error: Can not read register 4 (R4) while CPU is running
***JLink错误:CPU运行时无法读取寄存器5(R5)
***JLink Error: Can not read register 6 (R6) while CPU is running
***JLink错误:CPU运行时无法读取寄存器7(R7)
***JLink Error: Can not read register 8 (R8) while CPU is running
***JLink错误:CPU运行时无法读取寄存器9(R9)
***JLink Error: Can not read register 10 (R10) while CPU is running
***JLink错误:CPU运行时无法读取寄存器11(R11)
***JLink Error: Can not read register 12 (R12) while CPU is running
***JLink错误:CPU运行时无法读取寄存器13(R13)
***JLink错误:CPU运行时无法读取寄存器14(R14)
***JLink错误:CPU运行时无法读取寄存器15(R15)
***JLink错误:CPU运行时无法读取寄存器16(XPSR)
***JLink错误:CPU运行时无法读取寄存器17(MSP)
***JLink错误:CPU运行时无法读取寄存器18(PSP)
***JLink Error: Can not read register 20 (CFBP) while CPU is running
主板通过USB供电,我已经根据用户手册“DA14580/581/583 Bluetooth Smart development Kit–Pro”卸下主板的R84。
Any ideas or solutions?
当做
嗨dubstep杜布斯泰普,
重新启动da时,调试器与da分离,您面临的是正常情况。
谢谢你的对话
你好,
Maybe I was not specific enough. When I reset the da the program does not start again - it crashs. The LED does not start to blink again. You can also see this behavior in the terminal (see attachement). I would expect that the program starts again after a reset.
要清楚的是:它发生在or without opened terminal
我真的希望我不是to confusing here. But I am trying to provide as many information as possible.
When I try to flash the da with SmartSnippets instead of Keil (with SPI flash) I get the following log:
[INFO@15-10-30 10:34:49]头记录已从十六进制文件中删除闪烁十六进制.
[INFO@15-10-30 10:34:49]从文件中读取3276字节闪烁十六进制.
[INFO@15-10-30 10:34:55]SYSRESETREQ混淆了核心。正在尝试重新连接并使用向量集。
[INFO @15-10-30 10:34:55] Found SWD-DP with ID 0x0BB11477
[INFO @15-10-30 10:34:55] Found Cortex-M0 r0p0, Little endian.
[INFO@15-10-30 10:34:55]固件文件C:\Users\…\SmartSnippets\resources\jtag_程序员.bin已选择下载。
[INFO @15-10-30 10:34:55] Cortex-M: Debugger tries to set PC to odd value. Corrected register value from 0x000800B5 to 0x000800B4
[INFO @15-10-30 10:34:56] Successfully downloaded firmware file to the board.
[INFO@15-10-30 10:34:56]已成功配置SPI闪存端口和引脚。
[INFO@15-10-30 10:35:11]开始从内存中读取32768字节。
[信息@15-10-30 10:35:20]阅读已完成。读取32768字节。
[INFO@15-10-30 10:35:24]开始用地址0x00000处的3284字节数据烧录内存。
[INFO @15-10-30 10:35:33] Memory burning completed successfully.
[INFO @15-10-30 10:35:33] Reading memory to verify SPI FLash memory contents after burn...
[INFO @15-10-30 10:35:41] SPI FLash memory verification succeeded.
现在一切都很好。我现在可以在主板上重新启动我的程序,但它再次失败/崩溃。
I hope somebody can help me with this.
Thanks
嗨dubstep杜布斯泰普,
当你重置引导加载程序运行的板时,你在终端上看到的符号就是引导加载程序正在运行,如果你想重置你的板和程序重新启动,你必须把它加载到一个外部存储器中,例如一个SPI并使它可引导(智能代码段会提示你这一点)。
谢谢你的对话
你好,
当我选择“spiflashprogrammer”选项时,我想我会这么做。在我按下“连接”和“阅读”后,我点击burn,SmartSnippets会询问我是否希望程序可以启动。然后我点击“确定”开始燃烧。在此过程之后,程序应在重置后启动,但它不会启动。我错过了什么?
谢谢你的帮助
当我执行此过程(连接>读取)并单击“刻录和验证”时,我会得到以下日志:
[INFO @15-10-30 15:24:26] Header records have been removed from hex file blinky.hex.
[INFO @15-10-30 15:24:26] Read 3276 bytes from file blinky.hex.
[INFO @15-10-30 15:24:32] Firmware File C:\Users\...\SmartSnippets\resources\flash_programmer.bin has been selected for downloading.
[INFO@15-10-30 15:24:32]与COM6端口的连接已成功打开。
[INFO@15-10-30 15:24:32]已开始下载过程。。。
[ACTION @15-10-30 15:24:33] Please press the hardware reset button on the board to start the download process.
[INFO @15-10-30 15:24:34] Reset detected
[INFO@15-10-30 15:24:35]已成功从端口COM6断开连接。
[INFO@15-10-30 15:24:35]与COM6端口的连接已成功打开。
[INFO@15-10-30 15:24:35]已成功从端口COM6断开连接。
[INFO @15-10-30 15:24:35] Successfully downloaded firmware file to the board.
[INFO @15-10-30 15:24:35] Successfully configured SPI Flash ports and pins.
(信息@15-10-30 15:24:40]32768年开始读tes from memory.
[INFO@15-10-30 15:24:40]与COM6端口的连接已成功打开。
[INFO @15-10-30 15:24:55] Successfully disconnected from port COM6.
[INFO@15-10-30 15:24:55]阅读已完成。读取32768字节。
[INFO@15-10-30 15:25:00]开始用地址0x00000处的3284字节数据烧录内存。
[INFO @15-10-30 15:25:00] Connection to COM6 port has successfully opened.
[INFO@15-10-30 15:25:09]已成功从端口COM6断开连接。
[INFO @15-10-30 15:25:09] Memory burning completed successfully.
[INFO@15-10-30 15:25:09]读取内存以验证烧录后的SPI闪存内容。。。
[INFO@15-10-30 15:25:09]与COM6端口的连接已成功打开。
[INFO @15-10-30 15:25:24] Successfully disconnected from port COM6.
[错误@15-10-30 15:25:24]SPI闪存验证失败。地址0x00处出错
你好,
I just found my mistake. I was flashing to SPI FLash and thought I had the correct jumper settings. Well, I did not. I was missing one little jumper..
So, I guess I can put this down to my lack of concentration. However, I still cannot flash with Keil. But as long as it works with Smart Snippets I am fine for now.
Thanks.
嗨dubstep杜布斯泰普,
很高兴你找到了。你不能用keil编程flash,只能用智能片段。
谢谢你的对话