How to make secondary boot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to make secondary boot

831 Views
samet-san
Contributor II

Hello 

I want to make secondary boot. 

My secondary table is ; 

Tag : 0x00112233

firstSectorNumber : 0xC08


1 - I copied all of image from part1 to part2.
2 - I removed part1. 

It didnt run. How can I run it ? 

Is my secondary table correct ?


sametsan_0-1726148606645.png

 

0 Kudos
Reply
3 Replies

803 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi  @samet-san 

I hope you are doing well. 

What do you mean with secondary boot? I am not sure who will boot the secondary application, for your use case,  is the  main application ( working as a bootloader) or the ROM bootloader?

Asking this because you may refer to one of our bootloader examples, or use the MCUXpresso Secure Provisioning Tool to enable dual boot. 

Also, which i.MX RT MCU are you using? I do not recognize the 0x0018_0000 as the address of an XIP flash application. 

Diego

0 Kudos
Reply

778 Views
samet-san
Contributor II

I want to make update mechanism.  Actually main software is in A part. 
Firstly, I copy main software  from A part  to B part, then I copy new software to A part. 

If new software has fail while startup , I want to run old program in B part while ROM bootloader runs .

This topic is as Secondary boot in Security Referance Manual.

I burned eFuse xSPI_FLASH_SEC_IMAGE_OFFSET (0xC80[23:16] ) as 0x6. It is 1.5MB (0x00180000). 

Shortly, If new software has fail, I want to run old software in B part.

750 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @samet-san 

Could you take a look at this thread, and let me know if it works for you?

https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1170-dual-image-support-wi-ROM-API-s-explained...

I made this steps on RT1170, and the process is described using the MCUXpresso Secure Provisioning Tool. I think you can follow the SPT setup test on other RT devices. Also you will notice that I am warning about that part of this dual boot feature is still not described on the RT1170 RM, but I shared this to let customers evaluate it.

If you want to make an update, you can use the bootROM dual boot image or implement a bootloader solution. 

Btw, which i.MX RT MCU are you using?

Best regards, 

Diego. 

0 Kudos
Reply