spi flash burn failed

⚠️
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 https://www.dialog-semiconductor.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: 1 year 9 months ago
Joined: 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: 1 year 9 months ago
Joined: 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: 6 months 3 weeks ago
Staff
Joined: 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 is SmartSnippets Toolbox V5.0.14 for Windows OS or SmartSnippets 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: 1 year 9 months ago
Joined: 2020-03-26 12:15
<p>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: 6 months 3 weeks ago
Staff
Joined: 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: 1 year 9 months ago
Joined: 2020-03-26 12:15
<p>Sometimes a new chip that

<p>Sometimes a new chip that has not burned the firmware will also have these problems, but it seems that the probability of error will be smaller.</p>

<p>My firmware is based on prox and uses ext sleep.</p>

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

PM_Dialog
Offline
Last seen: 6 months 3 weeks ago
Staff
Joined: 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: 1 year 9 months ago
Joined: 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: 6 months 3 weeks ago
Staff
Joined: 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