你好,
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!
Keywords:
Device:
嗨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