Hi,
我刚收到DA14580开发套件 - Pro(主板+子板QFN40),并通过用户手册“DA14580 / 581/583蓝牙智能开发套件 - Pro”PDF工作。我能够在Keil UVision5上打开并建立样本Projekt“Blinky”。在我开始调试时,程序已成功启动。但是,当我进行重置时(通过KEEL或按钮),我收到以下日志和程序崩溃。
* * * 32768字节码尺寸L限制版本imit
*** Currently used: 3276 Bytes (9%)
sp = _rdword(0x20000000)
$ = _rdword(0x20000004)
* JLink Info: Found SWD-DP with ID 0x0BB11477
* JLink Info: Found Cortex-M0 r0p0, Little endian.
* JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
* JLink Info: CoreSight components:
* JLink Info: ROMTbl 0 @ E00FF000
* jlink信息:romtbl 0 [0]:fff0f000,cid:b105e00d,pid:000bb008 scs
* JLink Info: ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT
* JLink Info: ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB
**JLink Warning: CPU could not be halted
***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错误:CPU运行时无法读取寄存器0(R0)
***JLink Error: Can not read register 1 (R1) while CPU is running
*** JLINK错误:CPU运行时无法读取寄存器2(R2)
***JLink Error: Can not read register 3 (R3) while CPU is running
*** JLINK错误:CPU运行时无法读取寄存器4(R4)
***JLink Error: Can not read register 5 (R5) while CPU is running
*** jlink错误:CPU运行时无法读取寄存器6(R6)
***JLink Error: Can not read register 7 (R7) while CPU is running
*** JLINK错误:CPU运行时无法读取寄存器8(R8)
***JLink Error: Can not read register 9 (R9) while CPU is running
*** JLINK错误:CPU运行时无法读取寄存器10(R10)
***JLink Error: Can not read register 11 (R11) while CPU is running
*** jlink错误:CPU运行时无法读取寄存器12(R12)
***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 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 18 (PSP) while CPU is running
*** jlink错误:CPU正在运行时无法读取寄存器20(CFBP)
The board is powered over USB and I have already removed R84 of the motherboard according to the User Manual "DA14580/581/583 Bluetooth Smart development Kit – Pro".
任何想法还是解决方案?
Regards
Hi dubstepdubstep,
When you restart the da the debugger is detached from the da, what you are facing is normal.
谢谢MT_dialog
Hi,
也许我不够具体。当我重置DA时,程序不会再次启动 - 它崩溃。LED不会开始闪烁。您还可以在终端中看到此行为(请参阅附件)。我希望在重置后程序再次开始。
要清楚:它发生在或没有打开的终端
我真的希望我不是在这里混淆。但我试图提供尽可能多的信息。
当我尝试使用SmartSnippets而不是Keil(带SPI Flash)时,我收到以下日志:
[INFO @15-10-30 10:34:49] Header records have been removed from hex file blinky.hex.
[INFO @15-10-30 10:34:49] Read 3276 bytes from file blinky.hex.
[INFO @15-10-30 10:34:55] SYSRESETREQ has confused core. Trying to reconnect and use VECTRESET.
[信息@ 15-10-30 10:34:55]找到了带ID 0x0BB11477的SWD-DP
[信息@ 15-10-30 10:34:55]找到了Cortex-M0 R0P0,Little Endian。
[INFO @15-10-30 10:34:55] Firmware File C:\Users\...\SmartSnippets\resources\jtag_programmer.bin has been selected for downloading.
[信息@ 15-10-30 10:34:55] Cortex-M:调试器试图将PC设置为奇数值。从0x000800b5到0x000800b4的校正寄存器值
[信息@ 15-10-30 10:34:56]成功下载了固件文件到电路板。
[INFO @15-10-30 10:34:56] Successfully configured SPI Flash ports and pins.
[INFO @15-10-30 10:35:11] Started reading 32768 bytes from memory.
[INFO @15-10-30 10:35:20] Reading has finished. Read 32768 bytes.
[INFO @15-10-30 10:35:24] Started burning memory with 3284 bytes of data at address 0x00000.
[信息@ 15-10-30 10:35:33]记忆刻录成功完成。
[INFO @ 15-10-30 10:35:33]阅读内存以验证SPI闪存内容烧伤后...
[信息@ 15-10-30 10:35:41] SPI闪存验证成功。
Everything fine at this point. I would now do a reset on the board to start my program but it fails/crashs again.
我希望有人可以帮助我。
谢谢
嗨dubstepdubstep,
When you reset the board the bootloader runs, the symbols that you see in the terminal is tha bootloader running, if you want to reset your board and the program to start again you have to load it into an external memory, an SPI for example and make it bootable (Smart snippets will promt you for this).
谢谢MT_dialog
Hi,
I thought I would do this when I chose the option "SPI Flash Programmer". After I press "connect" and "read" I click on burn and Smart snippets asks me if I want the program to be bootable. Then I click "OK" and the burning starts. After this process the program should start after a reset but it does not. What am I missing here?
Thank you for your help
When I do this procedure (connect>read) and click on "Burn & Verify" I get this log:
[INFO @ 15-10-30 15:24:26]报头记录已从HEX文件BLinky.hex中删除。
[信息@ 15-10-30 15:24:26]从文件blinky.hex读取3276个字节。
[信息@ 15-10-30 15:24:32]固件文件c:\ users \ ... \ smartsnippets \资源\ flash_programmer.bin已被选中以下载。
[INFO @15-10-30 15:24:32] Connection to COM6 port has successfully opened.
[INFO @15-10-30 15:24:32] Started download procedure...
[动作@ 15-10-30 15:24:33]请按电路板上的硬件重置按钮开始下载过程。
[INFO @ 15-10-30 15:24:34]重置检测到
[INFO @15-10-30 15:24:35] Successfully disconnected from port COM6.
[INFO @15-10-30 15:24:35] Connection to COM6 port has successfully opened.
[INFO @15-10-30 15:24:35] Successfully disconnected from port COM6.
[信息@ 15-10-30 15:24:35]成功下载了固件文件到电路板。
[信息@ 15-10-30 15:24:35]成功配置了SPI闪存端口和引脚。
[信息@ 15-10-30 15:24:40]开始从内存读取32768个字节。
[INFO @15-10-30 15:24:40] Connection to COM6 port has successfully opened.
[信息@ 15-10-30 15:24:55]从COM6端口已成功断开连接。
[INFO @15-10-30 15:24:55] Reading has finished. Read 32768 bytes.
[INFO @15-10-30 15:25:00] Started burning memory with 3284 bytes of data at address 0x00000.
[信息@ 15-10-30 15:25:00]连接到COM6端口已成功打开。
[INFO @15-10-30 15:25:09] Successfully disconnected from port COM6.
[信息@ 15-10-30 15:25:09]记忆刻录成功完成。
[INFO @15-10-30 15:25:09] Reading memory to verify SPI FLash memory contents after burn...
[INFO @15-10-30 15:25:09] Connection to COM6 port has successfully opened.
[INFO @ 15-10-30 15:25:24]成功与COM6端口断开连接。
[ERROR @15-10-30 15:25:24] SPI FLash memory verification failed. Error at address 0x00
Hi,
我刚刚发现了我的错误。我闪过SPI Flash,并认为我有正确的跳线设置。好吧,我没有。我错过了一个小睡衣..
所以,我想我可以把它放在缺乏浓度。但是,我仍然不能用Keil闪现。但只要它与智能片段合作,我现在就很好。
谢谢。
嗨dubstepdubstep,
Glad you found it. You cant program the flash with keil only with Smart Snippets.
谢谢MT_dialog