⚠️
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.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
9 posts / 0 new
Last post
zyosintek
Offline
Last seen:4 months 2 days ago
加入:2020-03-26 12:15
spi flash burn failed

I am using the toolbox 5.10 burning tool to burn external flash, but sometimes it does not work very well, sometimes there are abnormal connections and burning failures.

I use jtag to connect to my product board for burning. At present, there are two kinds of errors in the test, one is the failure of connecting the chip, the other is the failure of the flash operation.

Do you know what the problem is? thank you!

Keywords:
Device:
zyosintek
Offline
Last seen:4 months 2 days ago
加入:2020-03-26 12:15
Here are some wrong logs and

Here are some wrong logs and pictures I collected

Attachment:
PM_Dialog
Offline
Last seen:4 hours 15 min ago
Staff
加入:2018-02-08 11:03
Hi zyosintek,

Hi zyosintek,

Thanks for your question online and for your interest in our BLE solutions.

I would recommend using the latest version of SST which isSmartSnippets Toolbox V5.0.14 for Windows OSorSmartSnippets Toolbox V5.0.14 for for Linux OS.

Are you using any of Dialog DKs for the JTAG, or an external JTAG interface?

Could you please indicate on which pins the SPI Flash is connected and what is the part number?

From the log files, I can see that the tool is unable to configure the SPI pins, so please make sure that you are using the correct pin configuration from the Board Setup tab.

http://lpccs-docs.dialog-semiconductor.com/UM-B-083/tools/Board_Setup.html

Additionally, are you able to download firmware to the System-RAM via the JTAG?

Thanks, PM_Dialog

zyosintek
Offline
Last seen:4 months 2 days ago
加入:2020-03-26 12:15

I have correctly

I have correctly configured the flash pins. I now have two projects, one is 14585 and the other is 14531. Some of the zip files sent earlier are 14585 and some are 14531. Both of my projects have encountered this problem. 585 uses the default spi start pin, and 531 uses custom pins 0, 1, 6, 7. These two projects can usually be burned and work normally, but occasionally there will be two problems that I have reported, and they cannot be connected or erased. This is not a configuration problem, because it is probabilistic, and when an error occurs, you may be able to program normally by re-powering the chip or re-opening the toolbox tool.

PM_Dialog
Offline
Last seen:4 hours 15 min ago
Staff
加入:2018-02-08 11:03
Hi zyosintek,

Hi zyosintek,

Since both projects are working in most cases, I assume it is something related to the firmware that are running on, or something related to the “bad” connection/wiring with the JTAG.

Can you please indicate what is the firmware that is running on the DA14531/585? Are you using any of the sleep modes?

Thanks, PM_Dialog

zyosintek
Offline
Last seen:4 months 2 days ago
加入:2020-03-26 12:15

Sometimes a new chip that

< p >有时没有burne的新芯片d the firmware will also have these problems, but it seems that the probability of error will be smaller.

My firmware is based on prox and uses ext sleep.

Of these two issues, I am more concerned about the failure of flash operation.

PM_Dialog
Offline
Last seen:4 hours 15 min ago
Staff
加入:2018-02-08 11:03
Hi zyosintek,

Hi zyosintek,

Is this a custom board, or you are using any of our Dks> After burning the flash, please make sure that you are using the correct SPI pin configuration from the “Board Setup” tab of the SST.

Thanks, PM_Dialog

zyosintek
Offline
Last seen:4 months 2 days ago
加入:2020-03-26 12:15
My spi configuration is

My spi configuration is correct, it was the same configuration the first time I burned, and it has been running successfully. But when I need to burn the chip for the second time, this problem will occur probabilistically.
ps1: In the program I burned, the swd interface is disabled as a normal io port, after a delay of 1500ms.
ps2: The spi pin of my flash is connected to lis2dh at the same time, distinguished by different cs.

PM_Dialog
Offline
Last seen:4 hours 15 min ago
Staff
加入:2018-02-08 11:03
Hi zyosintek,

Hi zyosintek,

Since the JTAG is disabled, please try to burn the flash via 1-wire UART.

Can you please clarify the “ps2” ?

Is it a custom board?

Thanks, PM_Dialog