Skip to main content

SPI Flash Error: Failed burning memory

DA14531

3 months ago

Posted by ozgurkoc 140 points 5 replies
0 upvotes

Hi,

I have a custom board with DA14531 on it. My goal is to program with the DA14531-00FXDEVKT-U using the Flash Programmer tool.

First of all, I can program the DA14531 on the DA14531-00FXDEVKT-U using flash programmer.

Next, I have performed the configuration described in http://lpccs-docs.dialog-semiconductor.com/Tutorial_SDK6/debug_probe.ht… but when I try to program, I get the attached error.

I'm able to run my program on the SysRAM using Keil and I can detect JTAG ID in flash programmer.

I downloaded the latest Flash Programmer (v1.0.6) and used different jumper wires, nothing changed.

What could be the issue? Thank you in advance.

 

Attachment Size
error message.PNG 26.57 KB

3 months ago

PM_Dialog

Hi ozgurkoc,

Thanks for your question online/ Since you are able to download FW into System-RAM using Keil, I believe that the SW configurations / wiring is correct.

What are the pins that you are using for the SPI flash?

Can you please share some screenshots showing the steps you are following in the Flash Programmer?

Did you try to use the SmartSnippets Toolbox?

Thanks, PM_Dialog

3 months ago

ozgurkoc 140 points

Hi PM_Dialog,

What did you mean when you said "the pins that you are using for the SPI flash"? Isn't the SWDIO-SWCLK-GND-3.3V connection enough to program the internal flash of DA14531 on my custom board?

3 months ago

PM_Dialog

Hi ozgurkoc,

Let me clarify what I meant in my previous reply.

According to AN-B-072: DA14531 Booting from OTP and Serial Interfaces and Booting Sequence (section 4, page 5), booting from external SPI slave is step #5. The DA4531 is booting from standard pins, so in order to boot from an external SPI slave, the flash should be connected to the following pins :  

P0_0 -> MOSI

P0_1 -> SCS

P0_3 -> MISO

P0_4 -> SCK

So, the flash is connected to that pins? Additionally, which SPI flash are you using in your custom board?

Thanks, PM_Dialog

3 months ago

ozgurkoc 140 points

Hi PM_Dialog,

I don't use SPI Flash on my custom board. I just use DA14531 and want to program its internal flash.

accepted answer!

3 months ago

PM_Dialog

Hi ozgurkoc,

Please check the DA14531 datasheet and refer to block diagram in page 19.

https://www.dialog-semiconductor.com/sites/default/files/2021-03/DA14531_datasheet_3v3_0.pdf

The DA14531 does not have an embedded SPI flash.

The DA14531 SmartBond TINY™ Module includes an on-module SPI flash.

https://www.dialog-semiconductor.com/products/bluetooth-low-energy/bluetooth-module-da14531-smartbond-tiny

Thanks, PM_Dialog