SmartSnippets Toolbox SPI Flash编程失败

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads athttps://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
10 posts / 0 new
最后一篇
azimin
Offline
最后一次露面:5 months 6 days ago
加入:2018-12-12 12:11
SmartSnippets Toolbox SPI Flash编程失败

Hello, I'm trying to burn internal flash memory over JTAG. But get an error:
[错误SPI Flash @ 19-02-28 17:51:23] JTAG地址0x7FC7C0C的AddDition Error Info。(MSB第一):FF FF FF F8。
[ERROR SPI Flash @19-02-28 17:51:23] Memory burning failed.

I have tried two configurations:
SPI_CLK:P2_0.
SPI_EN: P2_3
SPI_DI:P2_4
SPI_DO: P2_9
and
SPI_CLK:P2_0.
SPI_EN: P2_3
SPI_DI:P2_9.
SPI_DO: P2_4

Device:
PM_DIALOG.
Offline
最后一次露面:1 hour 12 min ago
职员
加入:2018-02-08 11:03
Hi azimin,

Hi azimin,

您是否意味着您拥有SmartSnippets Toolbox配置窗口中提到的配置?此外,您有定制董事会,或者您正在使用我们的任何开发板?如果您尝试通过UART连接,请您能否告诉我,如果您能够成功连接/刻录吗?另外,您是否能够通过JTAG连接/擦除SPI闪存,或者您唯一的问题是您无法刻录它?

谢谢,PM_DIALOG.

azimin
Offline
最后一次露面:5 months 6 days ago
加入:2018-12-12 12:11
>你的意思是你有

>您是否意味着您拥有SmartSnippets Toolbox的配置窗口中提到的配置?
Yes

>同时,你有一个定制的,或者你是强的g any of our development boards?
I have a custom board

>如果你试图通过UART连接,如果您能够成功连接/刻录,请您告诉我吗?
首次我通过UART成功连接,但不能刻录或擦除固件。在此故障后,我无法再次连接,工具箱正在等待按重置按钮,但我没有它。
[INFO SPI Flash @19-03-01 11:53:51] 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:53:51] Connection to COM16 port has successfully opened.
[信息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.
[INFO SPI Flash @19-03-01 11:53:53] Successfully configured SPI Flash ports and pins.
[INFO SPI Flash @19-03-01 11:53:58] Started reading 32768 bytes from memory.
[INFO SPI Flash @19-03-01 11:53:58] Connection to COM16 port has successfully opened.
[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.
[INFO SPI Flash @19-03-01 11:55:13] Started burning memory with 31016 bytes of data at address 0x00000.
[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] Successfully disconnected from port COM16.
[ERROR SPI Flash @19-03-01 11:55:18] Memory burning failed.
[INFO SPI Flash @19-03-01 11:55:32] Started burning memory with 31016 bytes of data at address 0x00000.
[INFO SPI Flash @19-03-01 11:55:32] Connection to COM16 port has successfully opened.
[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] Successfully disconnected from port 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.
[ERROR SPI Flash @19-03-01 11:55:49] SPI Memory erasing failed.
[信息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]成功与COM16端口断开了连接。
[信息SPI Flash @ 19-03-01 11:56:10]成功下载了固件文件到电路板。
[INFO SPI Flash @19-03-01 11:56:10] Successfully configured SPI Flash ports and pins.
[INFO SPI Flash @19-03-01 11:56:13] Connection to COM16 port has successfully opened.
[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...
[INFO SPI Flash @19-03-01 11:56:13] Connection to COM16 port has successfully opened.
[ERROR SPI Flash @19-03-01 11:56:13] Received error message while reading from the board: FFFFFFFC.
[INFO Booter @19-03-01 11:56:14] Successfully disconnected from port COM16.
[ERROR SPI Flash @19-03-01 11:56:14] Failed reading memory.
[信息SPI Flash @ 19-03-01 11:56:14]阅读内存刷新其内容....
[信息SPI Flash @ 19-03-01 11:56:14]连接到COM16端口已成功打开。
[错误SPI Flash @ 19-03-01 11:56:14]从电路板读取时收到错误消息:fffffffc。
[INFO Booter @19-03-01 11:56:14] Successfully disconnected from port COM16.
[ERROR SPI Flash @19-03-01 11:56:14] Failed reading memory.
[信息SPI Flash @ 19-03-01 11:58:03]开始从内存中读取32768字节。
[信息SPI Flash @ 19-03-01 11:58:03]与COM16端口的连接已成功打开。
[ERROR SPI Flash @19-03-01 11:58:03] Received error message while reading from the board: FFFFFFFC.
[INFO Booter @19-03-01 11:58:03] Successfully disconnected from port 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.
[ERROR SPI Flash @19-03-01 11:58:22] Timeout: Reset signal not detected for more than 16000 msecs.
[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]将固件文件下载到电路板上。
[ERROR SPI Flash @19-03-01 11:58:22] Failed configuring SPI Flash ports and pins.
[INFO SPI Flash @19-03-01 11:58:30] 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:30] Connection to COM16 port has successfully opened.
[INFO SPI Flash @19-03-01 11:58:30] Started download procedure...
[ACTION SPI Flash @19-03-01 11:58:31] Please press the hardware reset button on the board to start the download process.
[错误SPI Flash @ 19-03-01 11:58:46]超时:未检测到超过16000毫秒的重置信号。
[info booter @ 19-03-01 11:58:46]成功与COM16端口断开连接。
[ERROR SPI Flash @19-03-01 11:58:46] Failed downloading firmware file to the board.
[ERROR SPI Flash @19-03-01 11:58:46] Failed configuring SPI Flash ports and pins.
[INFO SPI Flash @19-03-01 12:08:13] 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 12:08:13] Connection to COM16 port has successfully opened.
[信息SPI Flash @ 19-03-01 12:08:13]开始下载程序...
[ACTION SPI Flash @19-03-01 12:08:14] Please press the hardware reset button on the board to start the download process.
[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?
不,我无法擦除,但连接似乎没关系

PM_DIALOG.
Offline
最后一次露面:1 hour 12 min ago
职员
加入:2018-02-08 11:03
Hi azimin,

Hi azimin,

如果您有一个定制板,请您尝试通过Keil IDE将固件下载到Systemram中?我建议您的原因是要确保您的电路板功能完全正常,所以我建议您使用SDK的BLE_APP_BEARBONE示例,为DA14586编译它,将固件下载到SYSRAM中?您是否能够从BLE移动应用程序检测您的设备?此外,您还可以使用SmartSnippets Toolbox的Power Profiler来确保您的设备是广告的。

谢谢,PM_DIALOG.

azimin
Offline
最后一次露面:5 months 6 days ago
加入:2018-12-12 12:11
Yes, my board is working with

Yes, my board is working with Keil IDE and the code is running from RAM. I can see my device with mobile app

PM_DIALOG.
Offline
最后一次露面:1 hour 12 min ago
职员
加入:2018-02-08 11:03
Hi azimin,

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.

azimin
Offline
最后一次露面:5 months 6 days ago
加入:2018-12-12 12:11
Hello,

Hello,

Finally I made a board with reset circuit. I reset the chip and press connect button after.

在J-Link的情况下,我收到了此日志:

[INFO SPI Flash @19-03-12 14:47:16] Found SW-DP with ID 0x0BB11477
[INFO SPI Flash @19-03-12 14:47:16] Using pre-configured AP[0] as AHB-AP to communicate with core
[信息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)
[INFO SPI Flash @19-03-12 14:47:16] Found 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
[INFO SPI Flash @19-03-12 14:47:16] ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
[INFO 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
[INFO SPI Flash @19-03-12 14:47:16] Firmware File C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/jtag_programmer.bin has been selected for downloading.
[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字节的数据。
[ERROR SPI Flash @19-03-12 14:47:29] Memory burning failed.

In case of UART I got this:

[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.
[INFO SPI Flash @19-03-12 14:44:26] Started download procedure...
(信息橄榄球员@19-03-12 14:44:27]成功盘onnected from port COM16.
[信息SPI Flash @ 19-03-12 14:44:28]与COM16端口的连接已成功打开。
[INFO Booter @19-03-12 14:44:28] Successfully disconnected from port COM16.
[INFO SPI Flash @19-03-12 14:44:28] Successfully downloaded firmware file to the board.
[信息SPI Flash @ 19-03-12 14:44:28]成功配置了SPI闪存端口和引脚。
[INFO SPI Flash @19-03-12 14:44:37] Started burning memory with 31016 bytes of data at address 0x00000.
[INFO SPI Flash @19-03-12 14:44:37] Connection to COM16 port has successfully opened.
[错误SPI Flash @ 19-03-12 14:44:53]超时等待收到最重要的数据包长度(10000毫秒)
[INFO Booter @19-03-12 14:44:53] Successfully disconnected from port COM16.
[ERROR SPI Flash @19-03-12 14:44:53] Memory burning failed.

Or this:

[INFO SPI Flash @19-03-12 15:26:28] 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 15:26:29] Connection to COM16 port has successfully opened.
[INFO SPI Flash @19-03-12 15:26:29] Started download procedure...
[info booter @ 19-03-12 15:26:30]成功与COM16端口断开了连接。
[INFO SPI Flash @19-03-12 15:26:31] Connection to COM16 port has successfully opened.
[info booter @ 19-03-12 15:26:31]成功与COM16端口断开连接。
[INFO SPI Flash @19-03-12 15:26:31] Successfully downloaded firmware file to the board.
[INFO SPI Flash @19-03-12 15:26:31] Successfully configured SPI Flash ports and pins.
[INFO SPI Flash @19-03-12 15:27:24] Started reading 32768 bytes from memory.
[INFO SPI Flash @19-03-12 15:27:24] Connection to COM16 port has successfully opened.
[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.
[信息Booter @ 19-03-12 15:27:41]成功与COM16端口断开连接。
[错误SPI Flash @ 19-03-12 15:27:41]内存刻录失败。

I'm using J-Link V6.42c

With Keil runtime debugging the board works

PM_DIALOG.
Offline
最后一次露面:1 hour 12 min ago
职员
加入:2018-02-08 11:03
Hi azimin,

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.

azimin
Offline
最后一次露面:5 months 6 days ago
加入:2018-12-12 12:11
你好,我正在使用内部

你好,我正在使用内部flash memory. Finally I found the problem - I forgot to connect VCC_FLASH. No it works. Thank you for your efforts.

PM_DIALOG.
Offline
最后一次露面:1 hour 12 min ago
职员
加入:2018-02-08 11:03
Hi azimin,

Hi azimin,

由于您没有连接的VCC_FLASH,您将无法访问内部SPI闪存。很高兴你识上你的问题。干杯!

谢谢,PM_DIALOG.