According to UM-B-012 DA14580 Creation of a secondary boot loader, my application can be booted successfullly when second bootloader burned into OTP. but When second bootloader was burned into external spi flash(address offset 0x0), It can not boot my application. I don't know why?
Keywords:
Device:
Hi cambridgechine,
Did you erased the flash before burning it? Have a look at the application note of SUOTA, its using the SPI Flash to burn the secondary bootloader and also the nessecary preparation in order to write the SPI Flash.
Thanks MT_dialog
Yes, I did erased the flash before burning it. According to second bootloader document, second bootloader need to run in retention ram. what's the difference of bootloader starting from OTP or external spi flash?
Hi cambridgechina,
What do you mean what is the difference ? The da follows a special procedure in order to boot. If you want to boot directly from SPI (overide the booting sequence) without any delays you program the secondary bootloader to the OTP in order instruct the system to boot from the SPI. The secondary bootloader (dual image bootloader) in the SPI flash is used when you want to boot from multiple images that reside in your SPI. What do you want to achieve by burning the secondary bootloader (as is, without the dual image option) in your SPI?
Thanks MT_dialog
Hi MT_dialog,
I just want my application can be upgraded by SUOTA, and don't know what's the best practice to do this.
Hi cambridgechina,
So, you are trying the SUOTA application, can you please follow the instructions from the SUOTA document ? The dual image bootloader with the two images (multipart.bin) doesn't seem to work (your system doesn't boot at all)?
Thanks MT_dialog