failed to boot when second bootloader at external spi flash.

6 posts / 0 new
Last post
cambridgechina
Offline
Last seen:5 years 1 month ago
加入:2015-08-19 10:02
failed to boot when second bootloader at external spi flash.

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:
MT_dialog
Offline
Last seen:2 months 3 days ago
工作人员
加入:2015-06-08 11:34
Hi cambridgechine,

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

cambridgechina
Offline
Last seen:5 years 1 month ago
加入:2015-08-19 10:02
Yes, I did erased the flash

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?

MT_dialog
Offline
Last seen:2 months 3 days ago
工作人员
加入:2015-06-08 11:34
Hi cambridgechina,

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

cambridgechina
Offline
Last seen:5 years 1 month ago
加入:2015-08-19 10:02
Hi 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.

MT_dialog
Offline
Last seen:2 months 3 days ago
工作人员
加入:2015-06-08 11:34
Hi cambridgechina,

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