SmartSnippets Toolbox SPI Flash编程失败

⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程https://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
10 posts / 0 new
最后一篇
azimin
离线
最后一次露面:5个月5天前
加入:2018-12-12 12:11
SmartSnippets Toolbox SPI Flash编程失败

您好,我正在尝试通过JTAG刻录内部闪存。但收到错误:
[ERROR SPI Flash @19-02-28 17:51:23] Adddittional error info at JTAG address 0x7FC7C0C. (MSB first): 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

设备:
PM_DIALOG.
离线
最后一次露面:2天20小时前
职员
加入:2018-02-08 11:03
嗨azimin,

嗨azimin,

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

谢谢,PM_DIALOG.

azimin
离线
最后一次露面:5个月5天前
加入:2018-12-12 12:11
>你的意思是你有

>你的意思是你有the configurations you have mentioned in the Configuration window of SmartSnippets toolbox?
是的

>同时,你有一个定制的董事会, or you are using any of our development boards?
我有一个定制董事会

>如果你试图通过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.
[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。
[信息SPI Flash @ 19-03-01 11:53:53]与COM16端口的连接已成功打开。
[信息Booter @ 19-03-01 11:53:53]成功断开了Port Com16。
[信息SPI Flash @ 19-03-01 11:53:53]成功下载了固件文件到电路板。
[INFO SPI Flash @19-03-01 11:53:53] Successfully configured SPI Flash ports and pins.
[信息SPI Flash @ 19-03-01 11:53:58]从内存开始读取32768个字节。
[INFO SPI Flash @19-03-01 11:53:58] Connection to COM16 port has successfully opened.
[info booter @ 19-03-01 11:54:05]从COM16端口成功断开了连接。
[信息SPI Flash @ 19-03-01 11:54:05]阅读已完成。阅读32768字节。
[信息SPI Flash @ 19-03-01 11:55:08]报头记录已从十六进制文件prox_reporter_586.hex中删除。
[信息SPI Flash @ 19-03-01 11:55:08]从文件prox_reporter_586.hex读取29872字节。
[INFO SPI Flash @19-03-01 11:55:13] Started burning memory with 31016 bytes of data at address 0x00000.
[信息SPI Flash @ 19-03-01 11:55:13]与COM16端口的连接已成功打开。
[错误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.
[错误SPI Flash @ 19-03-01 11:55:37]检查刻录是否成功的同时收到错误消息:fffffff8。
[INFO Booter @19-03-01 11:55:37] Successfully disconnected from port COM16.
[错误SPI Flash @ 19-03-01 11:55:37]内存刻录失败。
[信息SPI Flash @ 19-03-01 11:55:49]与COM16端口的连接已成功打开。
[错误SPI Flash @ 19-03-01 11:55:49]检查SPI擦除是否成功的同时收到错误消息:FFFFFFFE。
[Info Booter @ 19-03-01 11:55:49]成功断开了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已被选中以下载。
[信息SPI Flash @ 19-03-01 11:56:08]与COM16端口的连接已成功打开。
[信息SPI Flash @ 19-03-01 11:56:08]开始下载程序...
[info booter @ 19-03-01 11:56:09]成功断开了与COM16端口的连接。
[信息SPI Flash @ 19-03-01 11:56:10]与COM16端口的连接已成功打开。
[INFO Booter @19-03-01 11:56:10] Successfully disconnected from port 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]成功与COM16端口断开连接。
[信息SPI Flash @ 19-03-01 11:56:13] SPI内存擦除成功完成。
[信息SPI Flash @ 19-03-01 11:56:13]阅读内存以验证其内容擦除后...
[INFO SPI Flash @19-03-01 11:56:13] Connection to COM16 port has successfully opened.
[错误SPI Flash @ 19-03-01 11:56:13]从电路板读取时收到错误消息: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]阅读内存刷新其内容....
[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。
[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]读取内存失败。
[信息SPI Flash @ 19-03-01 11:58:06]固件文件c:\ diasemi \ da14585_sdk \ 6.0.10.511 \ config \ toolbox_resources / common / flash_programmer.bin已被选中以下载。
[信息SPI Flash @ 19-03-01 11:58:06]与COM16端口的连接已成功打开。
[信息SPI Flash @ 19-03-01 11:58:06]开始下载程序...
[动作SPI Flash @ 19-03-01 11:58:07]请按电路板上的硬件重置按钮启动下载过程。
[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.
[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端口断开连接。
[ERROR SPI Flash @19-03-01 11:58:46] Failed downloading firmware file to the board.
[错误SPI Flash @ 19-03-01 11:58:46]配置SPI闪存端口和引脚。
[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.
[信息SPI Flash @ 19-03-01 12:08:13]与COM16端口的连接已成功打开。
[INFO SPI Flash @19-03-01 12:08:13] Started download procedure...
[ACTION SPI Flash @19-03-01 12:08:14] Please press the hardware reset button on the board to start the download process.
[错误SPI Flash @ 19-03-01 12:08:29]超时:未检测到超过16000毫秒的重置信号。

>此外,您是否能够通过JTAG连接/擦除SPI闪存,或者您唯一的问题是您无法刻录它?
不,我无法擦除,但连接似乎没关系

PM_DIALOG.
离线
最后一次露面:2天20小时前
职员
加入:2018-02-08 11:03
嗨azimin,

嗨azimin,

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

谢谢,PM_DIALOG.

azimin
离线
最后一次露面:5个月5天前
加入:2018-12-12 12:11
是的, my board is working with

是的,我的电路板正在使用Keil IDE,并且代码从RAM运行。我可以通过移动应用程序查看我的设备

PM_DIALOG.
离线
最后一次露面:2天20小时前
职员
加入:2018-02-08 11:03
嗨azimin,

嗨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
离线
最后一次露面:5个月5天前
加入:2018-12-12 12:11
你好,

你好,

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

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

[信息SPI Flash @ 19-03-12 14:47:16]找到了带ID 0x0BB11477的SW-DP
[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
[信息SPI Flash @ 19-03-12 14:47:16] AHB-AP ROM:0xE00FF000(基本Addr。第一rom表)
[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) slots and 0 literal slots
[信息SPI Flash @ 19-03-12 14:47:16] Coresight组件:
[信息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.
[信息SPI Flash @ 19-03-12 14:47:16]成功下载了固件文件到电路板。
[信息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:

[信息SPI Flash @ 19-03-12 14:44:25]固件文件c:\ diasemi \ da14585_sdk \ 6.0.10.511 \ config \ toolbox_resources / common / flash_programmer.bin已被选中以下载。
[信息SPI Flash @ 19-03-12 14:44:26]与COM16端口的连接已成功打开。
[INFO SPI Flash @19-03-12 14:44:26] Started download procedure...
[Info Booter @ 19-03-12 14:44:27]从COM16端口已成功断开连接。
[信息SPI Flash @ 19-03-12 14:44:28]与COM16端口的连接已成功打开。
[INFO Booter @19-03-12 14:44:28] Successfully disconnected from port COM16.
[信息SPI Flash @ 19-03-12 14:44:28]成功下载了固件文件到电路板。
[INFO SPI Flash @19-03-12 14:44:28] Successfully configured SPI Flash ports and pins.
[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.
[错误SPI Flash @ 19-03-12 14:44:53]内存刻录失败。

或这个:

[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端口断开了连接。
[信息SPI Flash @ 19-03-12 15:27:31]阅读已完成。阅读32768字节。
[信息SPI Flash @ 19-03-12 15:27:35]在地址0x00000时,使用31016字节的数据刻录内存。
[信息SPI Flash @ 19-03-12 15:27:35]与COM16端口的连接已成功打开。
[错误SPI Flash @ 19-03-12 15:27:41]检查刻录是否成功的同时收到错误消息:FFFFFFF8。
[INFO Booter @19-03-12 15:27:41] Successfully disconnected from port COM16.
[错误SPI Flash @ 19-03-12 15:27:41]内存刻录失败。

我正在使用j-link v6.42c

随着Keil运行时调试董事会的工作

PM_DIALOG.
离线
最后一次露面:2天20小时前
职员
加入:2018-02-08 11:03
嗨azimin,

嗨azimin,

如果我理解正确,可以从闪存程序员连接,但您无法刻录SPI闪存?您使用哪种SPI Flash在您的定制板中?也是空的吗?如果没有,你能擦除它吗?

谢谢,PM_DIALOG.

azimin
离线
最后一次露面:5个月5天前
加入:2018-12-12 12:11
你好,我正在使用内部

您好,我正在使用内部闪存。最后我发现了问题 - 我忘了连接vcc_flash。不,它有效。感谢你付出的努力。

PM_DIALOG.
离线
最后一次露面:2天20小时前
职员
加入:2018-02-08 11:03
嗨azimin,

嗨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.