⚠️
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 at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
6 posts / 0 new
Last post
exxfuture
Offline
最后一次露面:6 months 6 days ago
加入:2020-03-16 15:14
Can't erase/flash DA14531

Hello,

我想我可能会通过闪烁不恰当地修改的SW来砖块我的DA14531 USB Devkit。

Now, when I try Connectiong through SmartSnippets Toolbox (v5.0.14) it prints the following:

[信息概述@ 20-10-18 10:30:46]无法衡量总IR LEN。TDO是恒定的。
[error alignal @ 20-10-18 10:30:46]在打开jlink连接时找不到已知的芯片。终止Proccess ...
[错误SPI Flash @ 20-10-18 10:30:46]将固件文件下载到电路板上。

此外,当尝试使用闪存程序员工具擦除/程序时,它会提供以下错误:

[ERROR General @20-10-18 23:40:29] No known chip found while opening JLink connection. Terminating proccess...

在重新配置USB套件时使用2线UART - 我可以使用SST连接到设备,但在请求擦除时,给出以下错误:

未知的Opcode 0x87在收到的数据包中。

And when trying Burn or Burn/Verify, I get:

[信息SPI Flash @ 20-10-19 11:48:30]开始从0x00到0x39000(57个扇区)开始删除
[INFO SPI Flash @20-10-19 11:48:30] Connection to COM3 port has successfully opened.
[错误SPI Flash @ 20-10-19 11:48:30]未知的OPCODE 0x87在收到的数据包中。
[INFO Booter @20-10-19 11:48:30] Successfully disconnected from port COM3.
[错误SPI Flash @ 20-10-19 11:48:30]内存擦除失败。
[信息SPI Flash @ 20-10-19 11:48:30]检查内存是否为空...
[INFO SPI Flash @20-10-19 11:48:30] Connection to COM3 port has successfully opened.
[ERROR SPI Flash @20-10-19 11:48:32] CRC of received data does not match with estimated CRC.
[INFO Booter @20-10-19 11:48:32] Successfully disconnected from port COM3.
[错误SPI Flash @ 20-10-19 11:48:32]错误:从偏移0x00读取16384字节失败
[WARNING SPI Flash @20-10-19 11:48:32] Warning: Failed to check existing memory contents.

Is there any other way I can try to erase/program the flash?

设备:
PM_DIALOG.
Offline
最后一次露面:3天8小时前
Staff
加入:2018-02-08 11:03
exxfuture,

exxfuture,

Could you please indicate what kind of firmware is burnt in the DA14531? Is it any of the SDK or SW examples? Does the firmware disable the JTAG? You could use the CLI –http://lpccs-docs.dialog-semiconductor.com/UM-B-083/cli/command_line_if.html

Are you able to download fw in the System-Ram thought JTAG? When opening the SmartSnippets Toolbox in order to connect over JTAG interface, the JTAG SN should be displayed. Did you try to bunt the SPI through UART? Can you also share the DIP switches configuration?

谢谢,PM_DIALOG.

exxfuture
Offline
最后一次露面:6 months 6 days ago
加入:2020-03-16 15:14
I based the FW on the example

我基于示例项目的FW“DA14531-DA14585-586_Measing_Temperature”并试图将App_suota添加到它。JTAG序列号为483056516。FW不应该禁用JTAG。

When I use the JTAG for anything with the DEFAULT DIP switch configuration as specified inhttps://www.dialog-seminile.com/sites/default/files/um-b-125_da1453 ...获取这些错误:

[信息概述@ 20-10-18 10:30:46]无法衡量总IR LEN。TDO是恒定的。[error alignal @ 20-10-18 10:30:46]在打开jlink连接时找不到已知的芯片。终止Proccess ...[错误SPI Flash @ 20-10-18 10:30:46]将固件文件下载到电路板上。

当我使用可选的2- / 4线UART DIP开关配置时,我可以将FW闪烁到SYS-RAM,但我没有任何有用的FW来闪烁于系统 - RAM上,可以恢复SPI闪存(或无论问题是什么 - 也许用默认的FW恢复它将解决问题,但我不确定如何通过Sys-RAM中的程序进行操作。

使用此DIP交换机配置,我还尝试了具有以下参数的CLI工具:

SmartSnippetsToolbox.exe -type spi -chip DA14531 -com_port 3 -cmd write -file "C:\Some\Path\file.hex" -uart P0_0 -bootable

但它给了我:

连接COM3端口成功啊pened. Timeout while waiting to receive the least significant byte of packet length (10000 msecs) Successfully disconnected from port COM3. Failed setting the following values to SPI Flash gpios: CLK=P0_4, CS=P0_1, MISO=P0_3, MOSI=P0_0. Read 22740 bytes from file C:\Some\Path\file.hex. Added bootable header to image. Started burning memory with 22852 bytes of data at address 0x00000. Connection to COM3 port has successfully opened. Timeout while waiting to receive the most significant byte of packet length (10000 msecs) Successfully disconnected from port COM3. Failed configuring SPI ports and pins. Connection to COM3 port has successfully opened. Timeout while waiting to receive the most significant byte of packet length (10000 msecs) Successfully disconnected from port COM3. Fail write 16384 bytes at offset 0x00 Memory burning failed.

使用此可选的2- / 4线UART DIP切换配置在SST时,我尝试刻录/验证闪光灯,它给了我:

[信息SPI Flash @ 20-10-19 11:48:30]开始从0x00到0x39000(57个扇区)开始删除[INFO SPI Flash @20-10-19 11:48:30] Connection to COM3 port has successfully opened. [ERROR SPI Flash @20-10-19 11:48:30] Unknown opcode 0x87 in received packet. [INFO Booter @20-10-19 11:48:30] Successfully disconnected from port COM3. [ERROR SPI Flash @20-10-19 11:48:30] Memory erasing failed. [INFO SPI Flash @20-10-19 11:48:30] Check if memory empty... [INFO SPI Flash @20-10-19 11:48:30] Connection to COM3 port has successfully opened. [ERROR SPI Flash @20-10-19 11:48:32] CRC of received data does not match with estimated CRC. [INFO Booter @20-10-19 11:48:32] Successfully disconnected from port COM3. [ERROR SPI Flash @20-10-19 11:48:32] Error: Failed reading 16384 bytes from offset 0x00 [WARNING SPI Flash @20-10-19 11:48:32] Warning: Failed to check existing memory contents.

当我尝试擦除:

未知的Opcode 0x87在收到的数据包中。

PM_DIALOG.
Offline
最后一次露面:3天8小时前
Staff
加入:2018-02-08 11:03
exxfuture,

exxfuture,

Please try to boot with a different firmware from 1-wire UART on P05 which a prior step than booting from the external SPI Slave in the booting sequence. Please see section 6 Booting from 1-wire UART from the following application note.

https://www.dialog-seminile.com/sites/default/files/an-b-072-da14531_booting_options_v1.4.pdf.

You could use any of the SDK projects, for instance the ble_app_barebone project.

Once the device booted, then try to connect to the SPI flash and erase it.

你能连接吗?

Would it be possible to share screenshots with the steps you are following?

打开SST时,您是否连接过UART或JTAG?

谢谢,PM_DIALOG.

exxfuture
Offline
最后一次露面:6 months 6 days ago
加入:2020-03-16 15:14
Hi,

Hi,

有效!我通过1线UART成功闪烁了SPI闪光灯并选择P05。

Thank you so much for the assistance!

PM_DIALOG.
Offline
最后一次露面:3天8小时前
Staff
加入:2018-02-08 11:03
exxfuture,

exxfuture,

很高兴你让它工作,谢谢接受我的答案。

谢谢,PM_DIALOG.