What happens if CRC Checksum is failed in Secondary Bootloader ?

4 posts / 0 new
Last post
igotit
Offline
Last seen:4 years 6 months ago
加入:2015-03-16 03:52
What happens if CRC Checksum is failed in Secondary Bootloader ?

Hi,

The secondary bootloader's booting sequence is as follows, (from page 12 on UM-B-012's manualhttp://support.dialog-semiconductor.com/download/file/fid/949)

Read the contents of the two image header to find the valid image with the highest imageid and load it into System RAM.
Calculate the CRC32 checksum of the code data and verify that it matches the value of the CRC header field.

Let's assume,
The image1 's imageid is higher than image2's, and the image1's data is corrupted then CRC will be not matched but the image2's CRC is correct.

Question.
The secondary bootloader try loading image 1 and then CRC check results fail.
如果那么,接下来将会发生什么?
I guess,
1. secondary bootlaoder automatically try loading the image2 even though the images2's imageid is lower than that of image1.
<- Is this right?
OR
2. secondary bootloader just fail and the DA14580 can not boot.
<- Is this right?

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
年代taff
加入:2015-06-08 11:34
Hi igotit,

Hi igotit,

Yes, if the crc check fails for the active image the secondary bootloader automatically tries to load the other one.

Thanks MT_dialog

Mahesh
Offline
Last seen:3 years 3 months ago
加入:2016-01-04 14:03
Hi,

Hi,
I am using SDK for DA14583. My mistake, I have changed Secondary boot loader code in one of my SDK board. There is any procedure to change the secondary boot loader image to default secondary boot loader image.

Please guide me, which secondary boot loader image i need to download again and what is the procedure to down load it.

MT_dialog
Offline
Last seen:2 months 1 week ago
年代taff
加入:2015-06-08 11:34
Hi Mahesh,

Hi Mahesh,

You can burn the OTP only once, since you have a 14583 that means that the OTP is allready written with the secondary bootloader, if you burned an OTP image over the existing default image that means that you ve turned any zero's to one's on that offset you can't turn them back to zero's since its a OTP. There is no way to re-burn the OTP with the original bootloader.

Thanks MT_dialog