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个职位/0个新职位
最后一篇
阿齐敏
Offline
最后一次露面:5 months 1 week 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:
[ERROR SPI Flash@19-02-28 17:51:23]JTAG地址0x7FC7C0C处的附加错误信息(MSB优先):FF F8。
[错误SPI Flash@19-02-28 17:51:23]内存烧录失败。

我尝试了两种配置:
SPI_CLK:P2_0.
SPI\u EN:P2\u 3
SPI\ U DI:P2\ U 4
SPI_DO: P2_9

SPI_CLK:P2_0.
SPI\u EN:P2\u 3
SPI\ U DI:P2\ U 9
SPI_DO: P2_4

Device:
PM_DIALOG.
Offline
最后一次露面:17小时前1天
职员
加入:2018-02-08 11:03
Hi azimin,

Hi azimin,

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

谢谢,PM_DIALOG.

阿齐敏
Offline
最后一次露面:5 months 1 week ago
加入:2018-12-12 12:11
>你的意思是你有

>您的意思是您拥有SmartSnippets工具箱的配置窗口中提到的配置吗?
Yes

>另外,您有定制的板吗,或者您正在使用我们的任何开发板?
I have a custom board

>如果你试图通过UART连接,如果您能够成功连接/刻录,请您告诉我吗?
第一次我成功地通过UART连接,但无法烧录或擦除固件。在这个错误后,我无法再次连接,工具箱正在等待按复位按钮,但我没有它。
[INFO SPI Flash@19-03-01 11:53:51]固件文件C:\DiaSemi\DA14585\U SDK\6.0.10.511\config\toolbox\u resources/common/Flash\u programmer.bin已被选择下载。
[INFO 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.
[INFO SPI Flash@19-03-01 11:53:53]成功配置SPI闪存端口和引脚。
[INFO SPI Flash @19-03-01 11:53:58] Started reading 32768 bytes from memory.
[INFO 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.
[INFO 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]内存烧录失败。
[INFO SPI Flash@19-03-01 11:55:32]开始使用地址0x00000处31016字节的数据烧录内存。
[INFO 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]已成功从端口COM16断开连接。
[信息SPI Flash @ 19-03-01 11:56:10]成功下载了固件文件到电路板。
[INFO SPI Flash@19-03-01 11:56:10]成功配置SPI闪存端口和引脚。
[INFO 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...
[INFO 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.
[INFO 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]已成功打开到COM16端口的连接。
[错误SPI Flash @ 19-03-01 11:56:14]从电路板读取时收到错误消息:fffffffc。
[INFO 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]从板读取时收到错误消息:fffffff c。
[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闪存端口和引脚失败。
[INFO SPI Flash@19-03-01 11:58:30]固件文件C:\DiaSemi\DA14585\U SDK\6.0.10.511\config\toolbox\u resources/common/Flash\u programmer.bin已被选择下载。
[INFO SPI Flash@19-03-01 11:58:30]已成功打开与COM16端口的连接。
[INFO SPI Flash@19-03-01 11:58:30]开始下载过程。。。
【动作SPI Flash@19-03-01 11:58:31】请按板上的硬件复位按钮,启动下载过程。
[错误SPI闪烁@19-03-01 11:58:46]超时:超过16000毫秒未检测到复位信号。
[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.
[INFO SPI Flash@19-03-01 12:08:13]固件文件C:\DiaSemi\DA14585\U SDK\6.0.10.511\config\toolbox\u resources/common/Flash\u 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]已开始下载过程。。。
【动作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?
不,我无法擦除,但连接似乎没关系

PM_DIALOG.
Offline
最后一次露面:17小时前1天
职员
加入: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.

阿齐敏
Offline
最后一次露面:5 months 1 week ago
加入:2018-12-12 12:11
是的,我的董事会正在和

是的,我的董事会正在和Keil IDE and the code is running from RAM. I can see my device with mobile app

PM_DIALOG.
Offline
最后一次露面:17小时前1天
职员
加入: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.

阿齐敏
Offline
最后一次露面:5 months 1 week ago
加入:2018-12-12 12:11
Hello,

Hello,

最后,我制作了一个带复位电路的板。我复位芯片,然后按连接按钮。

在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]使用预先配置的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】发现皮质-M0 r0p0,小端部。
[INFO 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]固件文件C:\DiaSemi\DA14585\U SDK\6.0.10.511\config\toolbox\u 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.
[INFO 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端口的连接已成功打开。
[INFO 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]已成功配置SPI闪存端口和引脚。
[INFO SPI Flash@19-03-12 14:44:37]开始使用地址0x00000处31016字节的数据烧录内存。
[INFO 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:

[INFO SPI Flash@19-03-12 15:26:28]固件文件C:\DiaSemi\DA14585\U SDK\6.0.10.511\config\toolbox\u resources/common/Flash\u programmer.bin已被选择下载。
[INFO SPI Flash@19-03-12 15:26:29]连接到COM16端口已成功打开。
[INFO SPI Flash@19-03-12 15:26:29]开始下载过程。。。
[info booter @ 19-03-12 15:26:30]成功与COM16端口断开了连接。
[INFO 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]已成功将固件文件下载到板上。
[INFO SPI Flash@19-03-12 15:26:31]成功配置SPI闪存端口和引脚。
[INFO SPI Flash@19-03-12 15:27:24]开始从内存读取32768字节。
[INFO 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]已成功从端口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
最后一次露面:17小时前1天
职员
加入: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.

阿齐敏
Offline
最后一次露面:5 months 1 week 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
最后一次露面:17小时前1天
职员
加入:2018-02-08 11:03
Hi azimin,

Hi azimin,

由于没有连接VCC\ U闪存,因此无法访问内部SPI闪存。很高兴你解决了问题。干杯!

谢谢,PM_DIALOG.