Failed with booting from Flash

⚠️
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.
2 posts / 0 new
Last post
liaobme
Offline
Last seen:3 months 1 week ago
加入:2018-02-28 07:10
Failed with booting from Flash

你好,

I am new in DA14580. I am trying to burn DA14580_DSPS_3.150.1.5 into SPI Flash.

The firmware works well when download through UART, but does not work when boot from flash. The flash burning part seems ok, because the flash content can be read out after power off and then power on. However, the formation of the first 8 bytes of the flash content is different from the booting protocol described in AN-B-001, the first 8 bytes as follows(detail see the attached pdf file):

0x00000 70 50 00 00 00 00 3E 48 pP >H
0x00008 00 98 00 20 1D 05 00 20 リ
......

I also tried using JMem to read the address at 0x20000000 after booting, the content is different from the flash content at offset 0x08.

Where I am wrong?

Thanks!

Attachment:
Device:
PM_Dialog
Offline
Last seen:1 day 15 hours ago
工作人员
加入:2018-02-08 11:03
嗨liaobme

嗨liaobme

Please check the “Table 7: SPI Slave boot protocol” from the booting protocol described in AN-B-001. The first four bytes are from DA14580 Soc and they are used for the read command. The contents of SPI flash start from (N+1) byte number. So, when the DA14580 Soc is booting from SPI slave, the contents of the SPI flash should start as: (N+1) = 0x70 and (N+2) = 0x50 (which is the booting header). After burning the SPI flash with the DSPS firmware, you should press the reset button on the dev kit in order for the bootloader to start executing and mirror the code from the flash to sysram.

Thanks PM_dialog