Hello, I'm trying to burn internal flash memory over JTAG. But get an error:
[ERROR SPI Flash @19-02-28 17:51:23] Adddittional error info at JTAG address 0x7FC7C0C. (MSB first): FF FF FF F8.
[错误SPI Flash @ 19-02-28 17:51:23]内存刻录失败。
我尝试了两种配置:
SPI_CLK:P2_0.
SPI_EN:P2_3.
SPI_DI: P2_4
SPI_DO: P2_9
和
SPI_CLK:P2_0.
SPI_EN:P2_3.
SPI_DI: P2_9
SPI_DO: P2_4
Device:
Hi azimin,
您是否意味着您拥有SmartSnippets Toolbox配置窗口中提到的配置?此外,您有定制董事会,或者您正在使用我们的任何开发板?如果您尝试通过UART连接,请您能否告诉我,如果您能够成功连接/刻录吗?另外,您是否能够通过JTAG连接/擦除SPI闪存,或者您唯一的问题是您无法刻录它?
谢谢,PM_DIALOG.
>你意味着你的配置have mentioned in the Configuration window of SmartSnippets toolbox?
Yes
>此外,您有定制董事会,或者您正在使用我们的任何开发板?
I have a custom board
>如果你试图通过UART连接,如果您能够成功连接/刻录,请您告诉我吗?
At first time I successfully connected via UART, but can't to burn or erase firmware. After this fault I cannot connect again, Toolbox is waiting to press reset button, but I don't have it.
[信息SPI Flash @ 19-03-01 11:53:51]固件文件c:\ diasemi \ da14585_sdk \ 6.0.10.511 \ config \ toolbox_resources / common / flash_programmer.bin已被选中以下载。
[信息SPI Flash @ 19-03-01 11:53:51]与COM16端口的连接已成功打开。
[信息SPI Flash @ 19-03-01 11:53:51]开始下载程序...
[信息Booter @ 19-03-01 11:53:53]成功断开了Port Com16。
[INFO SPI Flash @19-03-01 11:53:53] Connection to COM16 port has successfully opened.
[信息Booter @ 19-03-01 11:53:53]成功断开了Port Com16。
[INFO SPI Flash @19-03-01 11:53:53] Successfully downloaded firmware file to the board.
[信息SPI Flash @ 19-03-01 11:53:53]成功配置了SPI闪存端口和引脚。
[INFO SPI Flash @19-03-01 11:53:58] Started reading 32768 bytes from memory.
[信息SPI Flash @ 19-03-01 11:53:58]与COM16端口的连接已成功打开。
[INFO Booter @19-03-01 11:54:05] Successfully disconnected from port COM16.
[INFO SPI Flash @19-03-01 11:54:05] Reading has finished. Read 32768 bytes.
[信息SPI Flash @ 19-03-01 11:55:08]报头记录已从十六进制文件prox_reporter_586.hex中删除。
[INFO SPI Flash @19-03-01 11:55:08] Read 29872 bytes from file prox_reporter_586.hex.
[信息SPI Flash @ 19-03-01 11:55:13]开始燃烧内存,在地址0x00000处用31016字节的数据。
[INFO SPI Flash @19-03-01 11:55:13] Connection to COM16 port has successfully opened.
[错误SPI Flash @ 19-03-01 11:55:18]在检查刻录是否成功时收到错误消息:FFFFFFF8。
[info booter @ 19-03-01 11:55:18]成功与COM16端口断开了连接。
[错误SPI Flash @ 19-03-01 11:55:18]内存刻录失败。
[信息SPI Flash @ 19-03-01 11:55:32]开始刻录内存,在地址0x00000处用31016字节的数据。
[信息SPI Flash @ 19-03-01 11:55:32]与COM16端口的连接已成功打开。
[ERROR SPI Flash @19-03-01 11:55:37] Received error message while checking whether burning was successful: FFFFFFF8.
[info booter @ 19-03-01 11:55:37]成功与COM16端口断开了连接。
[ERROR SPI Flash @19-03-01 11:55:37] Memory burning failed.
[INFO SPI Flash @19-03-01 11:55:49] Connection to COM16 port has successfully opened.
[ERROR SPI Flash @19-03-01 11:55:49] Received error message while checking whether SPI erase was successful: FFFFFFFE.
[INFO Booter @19-03-01 11:55:49] Successfully disconnected from port COM16.
[错误SPI Flash @ 19-03-01 11:55:49] SPI内存擦除失败。
[信息SPI Flash @ 19-03-01 11:56:07]固件文件c:\ diasemi \ da14585_sdk \ 6.0.10.511 \ config \ toolbox_resources / common / flash_programmer.bin已被选中以下载。
[INFO SPI Flash @19-03-01 11:56:08] Connection to COM16 port has successfully opened.
[信息SPI Flash @ 19-03-01 11:56:08]开始下载程序...
[info booter @ 19-03-01 11:56:09]成功断开了与COM16端口的连接。
[INFO SPI Flash @19-03-01 11:56:10] Connection to COM16 port has successfully opened.
[INFO Booter @19-03-01 11:56:10] Successfully disconnected from port COM16.
[信息SPI Flash @ 19-03-01 11:56:10]成功下载了固件文件到电路板。
[信息SPI Flash @ 19-03-01 11:56:10]成功配置了SPI闪存端口和引脚。
[信息SPI Flash @ 19-03-01 11:56:13]与COM16端口的连接已成功打开。
[INFO Booter @19-03-01 11:56:13] Successfully disconnected from port COM16.
[INFO SPI Flash @19-03-01 11:56:13] SPI Memory erasing completed successfully.
[INFO SPI Flash @19-03-01 11:56:13] Reading memory to verify its contents after erase...
[信息SPI Flash @ 19-03-01 11:56:13]与COM16端口的连接已成功打开。
[ERROR SPI Flash @19-03-01 11:56:13] Received error message while reading from the board: FFFFFFFC.
[信息booter @ 19-03-01 11:56:14]成功断开了COM16端口。
[错误SPI Flash @ 19-03-01 11:56:14]读取内存失败。
[信息SPI Flash @ 19-03-01 11:56:14]阅读内存刷新其内容....
[INFO SPI Flash @19-03-01 11:56:14] Connection to COM16 port has successfully opened.
[错误SPI Flash @ 19-03-01 11:56:14]从电路板读取时收到错误消息:fffffffc。
[信息booter @ 19-03-01 11:56:14]成功断开了COM16端口。
[错误SPI Flash @ 19-03-01 11:56:14]读取内存失败。
[信息SPI Flash @ 19-03-01 11:58:03]开始从内存中读取32768字节。
[信息SPI Flash @ 19-03-01 11:58:03]与COM16端口的连接已成功打开。
[错误SPI Flash @ 19-03-01 11:58:03]从电路板读取时收到错误消息:fffffffc。
[info booter @ 19-03-01 11:58:03]从COM16端口已成功断开连接。
[错误SPI Flash @ 19-03-01 11:58:03]读取内存失败。
[INFO SPI Flash @19-03-01 11:58:06] Firmware File C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/flash_programmer.bin has been selected for downloading.
[INFO SPI Flash @19-03-01 11:58:06] Connection to COM16 port has successfully opened.
[信息SPI Flash @ 19-03-01 11:58:06]开始下载程序...
[ACTION SPI Flash @19-03-01 11:58:07] Please press the hardware reset button on the board to start the download process.
[错误SPI Flash @ 19-03-01 11:58:22]超时:未检测到超过16000毫秒的重置信号。
[info booter @ 19-03-01 11:58:22]成功与COM16端口断开连接。
[info booter @ 19-03-01 11:58:22]成功与COM16端口断开连接。
[错误SPI Flash @ 19-03-01 11:58:22]将固件文件下载到电路板上。
[错误SPI Flash @ 19-03-01 11:58:22]配置SPI闪存端口和引脚失败。
[信息SPI Flash @ 19-03-01 11:58:30]固件文件c:\ diasemi \ da14585_sdk \ 6.0.10.511 \ config \ toolbox_resources / common / flash_programmer.bin已被选中以下载。
[信息SPI Flash @ 19-03-01 11:58:30]与COM16端口的连接已成功打开。
[信息SPI Flash @ 19-03-01 11:58:30]开始下载程序...
[动作SPI Flash @ 19-03-01 11:58:31]请按电路板上的硬件重置按钮开始下载过程。
[ERROR SPI Flash @19-03-01 11:58:46] Timeout: Reset signal not detected for more than 16000 msecs.
[info booter @ 19-03-01 11:58:46]成功与COM16端口断开连接。
[错误SPI Flash @ 19-03-01 11:58:46]将固件文件下载到电路板上失败。
[ERROR SPI Flash @19-03-01 11:58:46] Failed configuring SPI Flash ports and pins.
[信息SPI Flash @ 19-03-01 12:08:13]固件文件c:\ diasemi \ da14585_sdk \ 6.0.10.511 \ config \ toolbox_resources / common / flash_programmer.bin已被选中以下载。
[INFO SPI Flash @19-03-01 12:08:13] Connection to COM16 port has successfully opened.
[INFO SPI Flash @19-03-01 12:08:13] Started download procedure...
[动作SPI Flash @ 19-03-01 12:08:14]请按电路板上的硬件重置按钮启动下载过程。
[ERROR SPI Flash @19-03-01 12:08:29] Timeout: Reset signal not detected for more than 16000 msecs.
>Also, are you able to connect/erase the SPI flash over JTAG or your only issue is that you can not burn it?
不,我无法擦除,但连接似乎没关系
Hi azimin,
如果您有一个定制板,请您尝试通过Keil IDE将固件下载到Systemram中?我建议您的原因是要确保您的电路板功能完全正常,所以我建议您使用SDK的BLE_APP_BEARBONE示例,为DA14586编译它,将固件下载到SYSRAM中?您是否能够从BLE移动应用程序检测您的设备?此外,您还可以使用SmartSnippets Toolbox的Power Profiler来确保您的设备是广告的。
谢谢,PM_DIALOG.
是的,我的董事会正在使用Keil IDE and the code is running from RAM. I can see my device with mobile app
Hi azimin,
您无法连接和刻录SPI闪光灯的最可能原因是为什么您没有复位电路到您的自定义板。SmartSnippets Toolbox的SPI闪存配置是正确的,并且根据DA14586数据表。在所有参考设计中,我们有一个重置按钮,当尝试连接用户时可以重置电路板,以便在uart或jtag_programmer的情况下下载flas_programmer,在JTAG的情况下。智能片段不支持Flash功能,因此SDK包括闪存程序员项目,该项目在6.0.10.511 \ flash_programmer下。如果您检查有2个从UART和JTAG输出的输出。当您连接到智能片段并按RESET时,您可以下载其中一个二进制文件。让我问你一件事。您使用的是哪个版本的JTAG?
谢谢,PM_DIALOG.
Hello,
最后,我用重置电路制作了一个板。我重置芯片,然后按下连接按钮。
在J-Link的情况下,我收到了此日志:
[INFO SPI Flash @19-03-12 14:47:16] Found SW-DP with ID 0x0BB11477
[信息SPI Flash @ 19-03-12 14:47:16]使用预配置的AP [0]作为AHB-AP与核心通信
[信息SPI Flash @ 19-03-12 14:47:16] AP-IDR:0x04770021,类型:AHB-AP
[INFO SPI Flash @19-03-12 14:47:16] AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
[信息SPI Flash @ 19-03-12 14:47:16]找到了Cortex-M0 R0P0,Little Endian。
[信息SPI Flash @ 19-03-12 14:47:16] FpUnit:4代码(BP)插槽和0个字幕插槽
[INFO SPI Flash @19-03-12 14:47:16] CoreSight components:
[信息SPI Flash @ 19-03-12 14:47:16] romtbl [0] @ E00FF000
[信息SPI Flash @ 19-03-12 14:47:16] romtbl [0] [0]:e000000,cid:b105e00d,pid:000bb008 scs
[信息SPI Flash @ 19-03-12 14:47:16] Romtbl [0] [1]:E0001000,CID:B105E00D,PID:000BB00A DWT
[信息SPI Flash @ 19-03-12 14:47:16] romtbl [0] [2]:e0002000,cid:b105e00d,pid:000bb00b fpb
[信息SPI Flash @ 19-03-12 14:47:16]固件文件c:\ diasemi \ da14585_sdk \ 6.0.10.511 \ config \ toolbox_resources / common / jtag_programmer.bin已被选中以下载。
[INFO SPI Flash @19-03-12 14:47:16] Successfully downloaded firmware file to the board.
[信息SPI Flash @ 19-03-12 14:47:16]成功配置了SPI闪存端口和引脚。
[信息SPI Flash @ 19-03-12 14:47:19]开始燃烧内存,在地址0x00000处使用31016字节的数据。
[错误SPI Flash @ 19-03-12 14:47:29]内存刻录失败。
如果是UART,我得到了这个:
[INFO SPI Flash @19-03-12 14:44:25] Firmware File C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/flash_programmer.bin has been selected for downloading.
[INFO SPI Flash @19-03-12 14:44:26] Connection to COM16 port has successfully opened.
[信息SPI Flash @ 19-03-12 14:44:26]开始下载程序...
(信息橄榄球员@19-03-12 14:44:27]成功盘onnected from port COM16.
[信息SPI Flash @ 19-03-12 14:44:28]与COM16端口的连接已成功打开。
[信息Booter @ 19-03-12 14:44:28]成功与COM16端口断开连接。
[INFO SPI Flash @19-03-12 14:44:28] Successfully downloaded firmware file to the board.
[INFO SPI Flash @19-03-12 14:44:28] Successfully configured SPI Flash ports and pins.
[信息SPI Flash @ 19-03-12 14:44:37]开始燃烧内存,在地址0x00000处使用31016字节的数据。
[信息SPI Flash @ 19-03-12 14:44:37]与COM16端口的连接已成功打开。
[错误SPI Flash @ 19-03-12 14:44:53]超时等待收到最重要的数据包长度(10000毫秒)
[Info Booter @ 19-03-12 14:44:53]成功与COM16端口断开连接。
[ERROR SPI Flash @19-03-12 14:44:53] Memory burning failed.
Or this:
[信息SPI Flash @ 19-03-12 15:26:28]固件文件c:\ diasemi \ da14585_sdk \ 6.0.10.511 \ config \ toolbox_resources / common / flash_programmer.bin已被选中以下载。
[信息SPI Flash @ 19-03-12 15:26:29]与COM16端口的连接已成功打开。
[信息SPI Flash @ 19-03-12 15:26:29]开始下载程序...
[info booter @ 19-03-12 15:26:30]成功与COM16端口断开了连接。
[信息SPI Flash @ 19-03-12 15:26:31]与COM16端口的连接已成功打开。
[info booter @ 19-03-12 15:26:31]成功与COM16端口断开连接。
[Info SPI Flash @ 19-03-12 15:26:31]成功下载了固件文件到电路板。
[信息SPI Flash @ 19-03-12 15:26:31]成功配置了SPI闪存端口和引脚。
[信息SPI Flash @ 19-03-12 15:27:24]开始从内存中读取32768字节。
[信息SPI Flash @ 19-03-12 15:27:24]与COM16端口的连接已成功打开。
[info booter @ 19-03-12 15:27:31]成功与COM16端口断开了连接。
[INFO SPI Flash @19-03-12 15:27:31] Reading has finished. Read 32768 bytes.
[INFO SPI Flash @19-03-12 15:27:35] Started burning memory with 31016 bytes of data at address 0x00000.
[INFO SPI Flash @19-03-12 15:27:35] Connection to COM16 port has successfully opened.
[ERROR SPI Flash @19-03-12 15:27:41] Received error message while checking whether burning was successful: FFFFFFF8.
[INFO Booter @19-03-12 15:27:41] Successfully disconnected from port COM16.
[错误SPI Flash @ 19-03-12 15:27:41]内存刻录失败。
I'm using J-Link V6.42c
With Keil runtime debugging the board works
Hi azimin,
If I understood correctly, you can connect from the flash programmer, but you are not able to burn the SPI flash? Which SPI flash are you using into your custom board? Also, is it empty? If not, are you able to erase it?
谢谢,PM_DIALOG.
你好,我正在使用内部flash memory. Finally I found the problem - I forgot to connect VCC_FLASH. No it works. Thank you for your efforts.
Hi azimin,
Since you haven’t the VCC_FLASH connected you wouldn’t be able to access the internal SPI Flash. Glad that you figured your issue out. Cheers!
谢谢,PM_DIALOG.