你好,我试图烧毁内部闪存通过JTAG。但是得到一个错误:
[ERROR SPI Flash @19-02-28 17:51:23]附加错误信息在JTAG地址0x7FC7C0C。(MSB第一):FF FF FF F8。
[ERROR 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
设备:
嗨azimin,
你的意思是你有你在SmartSnippets工具箱的配置窗口中提到的配置吗?另外,你有定制板吗,或者你正在使用我们的开发板?如果您试图通过UART连接,请让我知道您是否能够成功连接/刻录?另外,您能够通过JTAG连接/擦除SPI flash吗?或者您唯一的问题是不能烧毁它?
谢谢,PM_Dialog
>你的意思是你有你提到的配置在SmartSnippets工具箱的配置窗口?
是的
还有,你有定制板吗,或者你正在使用我们的开发板?
我有一个定制板
>如果你尝试通过UART连接,请让我知道你是否能够成功连接/刻录?
第一次我成功连接通过UART,但不能烧或擦除固件。在此故障后,我不能再连接,工具箱等待按复位按钮,但我没有它。
[INFO SPI Flash @19-03-01 11:53:51]固件文件C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/flash_program .bin已选择下载。
[INFO SPI Flash @19-03-01 11:53:51] connected to COM16 port has successfully opened。
[INFO SPI Flash @19-03-01 11:53:51] Started download procedure…
[INFO Booter @19-03-01 11:53:53] Successfully disconnected from port COM16.输出说明
[INFO SPI Flash @19-03-01 11:53:53] connected to COM16 port has successfully opened。
[INFO Booter @19-03-01 11:53:53] Successfully disconnected from port COM16.输出说明
[INFO SPI Flash @19-03-01 11:53:53]成功下载固件到单板。
[INFO SPI Flash @19-03-01 11:53:53]成功配置SPI Flash端口和引脚。
[INFO SPI Flash @19-03-01 11:53:58]开始从内存中读取32768字节。
[INFO SPI Flash @19-03-01 11:53:58] connected 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]读取结束。读取32768字节。
[INFO SPI Flash @19-03-01 11:55:08]头记录已从十六进制文件prox_reporter_586.hex中删除。
[INFO SPI Flash @19-03-01 11:55:08]从文件prox_reporter_586.hex中读取29872字节。
[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。
[ERROR SPI Flash @19-03-01 11:55:18] Received ERROR message while checking burning was successful: FFFFFFF8. [ERROR SPI Flash @19-03-01 11:55:18]收到检查烧成是否成功的错误信息。
[INFO Booter @19-03-01 11:55:18] Successfully disconnected from port COM16.输出说明
[ERROR 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] connected 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. [ERROR SPI Flash @19-03-01 11:55:37]收到检查烧成是否成功的错误信息。
[INFO Booter @19-03-01 11:55:37] Successfully disconnected from port COM16.输出说明
[ERROR SPI Flash @19-03-01 11:55:37]内存烧录失败。
[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]内存擦除失败。
[INFO SPI Flash @19-03-01 11:56:07]固件文件C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/flash_program .bin已选择下载。
[INFO SPI Flash @19-03-01 11:56:08] connected to COM16 port has successfully opened。
[INFO SPI Flash @19-03-01 11:56:08] Started download procedure…
[INFO Booter @19-03-01 11:56:09] Successfully disconnected from port COM16.输出说明
[INFO SPI Flash @19-03-01 11:56:10] connected to COM16 port has successfully opened。
[INFO Booter @19-03-01 11:56:10] Successfully disconnected from port COM16.输出说明
[INFO SPI Flash @19-03-01 11:56:10]成功下载固件到单板。
[INFO SPI Flash @19-03-01 11:56:10]配置成功。
[INFO SPI Flash @19-03-01 11:56:13] connected to COM16 port has successfully opened. [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] read memory to verify its contents after erase…
[INFO SPI Flash @19-03-01 11:56:13] connected to COM16 port has successfully opened. [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.[错误SPI Flash @19-03-01 11:56:13]
[INFO Booter @19-03-01 11:56:14] Successfully disconnected from port COM16.输出说明
[ERROR SPI Flash @19-03-01 11:56:14]读取内存失败。
[INFO SPI Flash @19-03-01 11:56:14]读取内存刷新其内容....
[INFO SPI Flash @19-03-01 11:56:14] connected to COM16 port has successfully opened。
[ERROR SPI Flash @19-03-01 11:56:14] Received ERROR message while reading from the board: FFFFFFFC.[错误SPI Flash @19-03-01 11:56:14]
[INFO Booter @19-03-01 11:56:14] Successfully disconnected from port COM16.输出说明
[ERROR SPI Flash @19-03-01 11:56:14]读取内存失败。
[INFO SPI Flash @19-03-01 11:58:03]开始从内存中读取32768字节。
[INFO SPI Flash @19-03-01 11:58:03] connected to COM16 port has successfully opened。
[ERROR SPI Flash @19-03-01 11:58:03] Received ERROR message while reading from the board: FFFFFFFC.[错误SPI Flash @19-03-01 11:58:03]
[INFO Booter @19-03-01 11:58:03] Successfully disconnected from port COM16.输出说明
[ERROR SPI Flash @19-03-01 11:58:03]读取内存失败。
[INFO SPI Flash @19-03-01 11:58:06]固件文件C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/flash_program .bin已选择下载。
[INFO SPI Flash @19-03-01 11:58:06] connected to COM16 port has successfully opened。
[INFO SPI Flash @19-03-01 11:58:06] Started download procedure…
[ACTION SPI Flash @19-03-01 11:58:07]请按单板上的硬件复位按钮开始下载过程。
[ERROR SPI Flash @19-03-01 11:58:22]超时:重置信号未检测到超过16000毫秒。
[INFO Booter @19-03-01 11:58:22] Successfully disconnected from port COM16.输出说明
[INFO Booter @19-03-01 11:58:22] Successfully disconnected from port COM16.输出说明
[ERROR SPI Flash @19-03-01 11:58:22]下载固件到单板失败。
[ERROR SPI Flash @19-03-01 11:58:22]配置SPI Flash端口和引脚失败。
[INFO SPI Flash @19-03-01 11:58:30]固件文件C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/flash_program .bin已选择下载。
[INFO SPI Flash @19-03-01 11:58:30] connected 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]请按单板上的硬件复位按钮开始下载过程。
[ERROR SPI Flash @19-03-01 11:58:46]超时:重置信号未检测到超过16000毫秒。
[INFO Booter @19-03-01 11:58:46] Successfully disconnected from port COM16.输出说明
[ERROR SPI Flash @19-03-01 11:58:46]下载固件到单板失败。
[ERROR SPI Flash @19-03-01 11:58:46]配置SPI Flash端口和引脚失败。
[INFO SPI Flash @19-03-01 12:08:13]固件文件C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/flash_program .bin已选择下载。
[INFO SPI Flash @19-03-01 12:08:13] connected to COM16 port has successfully opened。
[INFO SPI Flash @19-03-01 12:08:13] Started download procedure…
[ACTION 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。
另外,你能通过JTAG连接/擦除SPI flash吗?或者你唯一的问题是你不能烧掉它?
不,我不能抹去,但联系似乎没问题
嗨azimin,
如果你有一个自定义板,你可以尝试通过Keil IDE下载固件到SystemRAM吗?我建议你的原因是确保你的板是完全功能,所以我建议你使用ble_app_bearbone SDK的例子,编译它为DA14586和下载固件到SysRAM?你能从BLE移动应用程序检测到你的设备吗?您还可以使用SmartSnnippets工具箱的功率分析器来确保您的设备正在进行广告宣传。
谢谢,PM_Dialog
是的,我的董事会是与Keil IDE和代码运行从RAM。我可以用移动应用看到我的设备
嗨azimin,
你不能连接和烧SPI flash的最可能的原因是为什么你没有重置电路到你的定制板。SmartSnippets工具箱中的SPI flash配置是正确的,并符合DA14586 datasheet。在所有参考设计中,我们有一个重置按钮,当试图连接用户可以重置板以下载flas_programmer在UART的情况下或jtag_programmer在jtag的情况下。智能片段不支持flash功能,所以SDK包括flash程序员项目,它是在6.0.10.511\utilities\flash_programmer。如果您检查,uart上有两个输出,jtag上有一个输出。当您连接到智能代码片段并按下reset键时,您将下载两个二进制文件中的一个。我来问你点事。您使用的是哪个版本的JTAG ?
谢谢,PM_Dialog
你好,
最后我制作了一个带有复位电路的电路板。我重置了芯片,然后按下连接键。
如果是J-link,我得到了这个日志:
[INFO SPI Flash @19-03-12 14:47:16]发现SW-DP with ID 0x0BB11477
[INFO SPI Flash @19-03-12 14:47:16]使用预先配置的AP[0]作为AHB-AP与core通信
[INFO SPI Flash @19-03-12 14:47:16] AP-IDR: 0x04770021, Type: AHB-AP
[INFO SPI Flash @19-03-12 14:47:16] AHB-AP ROM: 0xE00FF000 (Base addr. io)第一个ROM表)
[INFO SPI Flash @19-03-12 14:47:16] Found Cortex-M0 r0p0, Little endian. [INFO SPI Flash @19-03-12 14:47:16]
[INFO SPI Flash @19-03-12 14:47:16] FPUnit: 4 code (BP)插槽和0字面值插槽
[INFO SPI Flash @19-03-12 14:47:16] CoreSight组件:
[INFO 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
[INFO SPI Flash @19-03-12 14:47:16] ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B fbb
[INFO SPI Flash @19-03-12 14:47:16]固件文件C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/jtag_program .bin已选择下载。
[INFO SPI Flash @19-03-12 14:47:16]成功下载固件到单板。
[INFO SPI Flash @19-03-12 14:47:16]配置成功的SPI Flash端口和引脚。
[INFO SPI Flash @19-03-12 14:47:19]开始烧录地址0x00000的31016字节的数据。
[ERROR SPI Flash @19-03-12 14:47:29]内存烧录失败。
在UART的情况下,我得到了这个:
[INFO SPI Flash @19-03-12 14:44:25]固件文件C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/flash_program .bin已选择下载。
[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…
[INFO Booter @19-03-12 14:44:27] Successfully disconnected from port COM16。
[INFO SPI Flash @19-03-12 14:44:28] connected to COM16 port has successfully opened。
[INFO Booter @19-03-12 14:44:28] Successfully disconnected from port COM16. [INFO Booter @19-03-12 14:44:28]成功断开连接。
[INFO SPI Flash @19-03-12 14:44:28]成功下载固件到单板。
[INFO SPI Flash @19-03-12 14:44:28]配置成功的SPI Flash端口和引脚。
[INFO SPI Flash @19-03-12 14:44:37]开始烧录地址0x00000的31016字节的数据。
[INFO SPI Flash @19-03-12 14:44:37] Connection to COM16 port has successfully opened。
[ERROR SPI Flash @19-03-12 14:44:53]在等待收到数据包长度的最大字节时超时(10000毫秒)
[INFO Booter @19-03-12 14:44:53] Successfully disconnected from port COM16. [INFO Booter @19-03-12 14:44:53]成功断开连接。
[ERROR SPI Flash @19-03-12 14:44:53]内存烧录失败。
或:
[INFO SPI Flash @19-03-12 15:26:28]固件文件C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/flash_program .bin已选择下载。
[INFO SPI Flash @19-03-12 15:26:29]连接到COM16端口成功打开。
[INFO SPI Flash @19-03-12 15:26:29] Started download procedure…
[INFO Booter @19-03-12 15:26:30] Successfully disconnected from port COM16。
[INFO SPI Flash @19-03-12 15:26:31]连接到COM16端口成功打开。
[INFO Booter @19-03-12 15:26:31] Successfully disconnected from port COM16。
[INFO SPI Flash @19-03-12 15:26:31] Successfully download firmware file to the board. [INFO SPI Flash @19-03-12 15:26:31]下载固件成功。
[INFO SPI Flash @19-03-12 15:26:31]配置成功的SPI Flash端口和引脚。
[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] Successfully disconnected from port COM16。
[INFO SPI Flash @19-03-12 15:27:31]读取结束。读取32768字节。
[INFO SPI Flash @19-03-12 15:27:35]开始烧录地址0x00000的31016字节的数据。
[INFO SPI Flash @19-03-12 15:27:35]连接到COM16端口成功打开。
[ERROR SPI Flash @19-03-12 15:27:41] Received ERROR message while checking burning was successful: FFFFFFF8.[错误SPI Flash @19-03-12 15:27:41]
[INFO Booter @19-03-12 15:27:41] Successfully disconnected from port COM16。
[ERROR SPI Flash @19-03-12 15:27:41]内存烧录失败。
我使用的是J-Link V6.42c
用Keil运行时调试板工作
嗨azimin,
如果我理解正确,您可以从flash程序员连接,但您不能烧毁SPI flash?你在定制板上使用哪个SPI flash ?还有,它是空的吗?如果没有,你能抹去它吗?
谢谢,PM_Dialog
你好,我用的是内部闪存。最后我发现了问题-我忘记连接VCC_FLASH。没有它的工作原理。谢谢你的努力。
嗨azimin,
因为你没有VCC_FLASH连接,你不能访问内部SPI Flash。很高兴你解决了自己的问题。干杯!
谢谢,PM_Dialog