嗨,
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,小endian。
* jlink信息:fpUnit:4代码(BP)插槽和0个字幕插槽
* jlink信息:coresight组件:
* jlink信息:romtbl 0 @ E00FF000
*JLink Info: ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS
* jlink信息:romtbl 0 [1]:fff02000,cid:b105e00d,pid:000bb00a dwt
* jlink信息: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蓝牙智能开发套件 - Pro”删除了主板的R84。
Any ideas or solutions?
问候
嗨dubstep.DUBSTEP,
重新启动DA时,调试器已从DA中分离,您面临的是正常的。
谢谢mt_dialog.
嗨,
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]报头记录已从hex文件blinky.hex中删除。
[信息@ 15-10-30 10:34:49]从文件blinky.hex读取3276个字节。
[信息@ 15-10-30 10:34:55] Sysresetreq已经混淆了核心。尝试重新连接和使用VectreetEt。
[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 \资源\ jtag_programmer.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.
[信息@ 15-10-30 10:34:56]成功配置了SPI闪存端口和引脚。
[信息@ 15-10-30 10:35:11]从内存开始读取32768个字节。
[信息@ 15-10-30 10:35:20]阅读已完成。阅读32768字节。
[信息@ 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.DUBSTEP,
重置Bootloader运行时,您在终端中看到的符号是运行的,如果要重置电路板和程序再次启动,则必须将其加载到外部内存中,例如SPI和使它可启动(智能片段将为您推出此问题)。
谢谢mt_dialog.
嗨,
我以为我会在选择“SPI闪存程序员”选项时这样做。在我按“Connect”和“读取”后,我点击刻录和智能代码段询问我是否希望该程序可引导。然后我单击“确定”,刻录开始。在此过程之后,程序应在复位后开始,但它没有。我在这里遗漏了什么?
感谢您的帮助
当我这样做程序(连接>读取)并单击“刻录并验证”时,我收到此日志:
[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端口的连接已成功打开。
[信息@ 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
[信息@ 15-10-30 15:24:35]成功与COM6端口断开连接。
[信息@ 15-10-30 15:24:35]与COM6端口的连接已成功打开。
[信息@ 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.
[信息@ 15-10-30 15:24:40]与COM6端口的连接已成功打开。
[INFO @15-10-30 15:24:55] Successfully disconnected from port COM6.
[信息@ 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.
[信息@ 15-10-30 15:25:09]从COM6端口已成功断开连接。
[INFO @15-10-30 15:25:09] Memory burning completed successfully.
[信息@ 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.DUBSTEP,
很高兴你找到了它。您不能使用智能片段使用keil编程Flash。
谢谢mt_dialog.