MCUBootloader for iMXRT1020 that is not RAM linked

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

MCUBootloader for iMXRT1020 that is not RAM linked

701 Views
yash_bhatt1
Contributor III

Hi all,

 

We are trying to implement secondary bootloader for iMXRT1020 to support fota functionality. We are planning to use the flash loader example code from SDK but it is configured to be used as RAM linked and not Flash linked.

Can you please help us write the right linker script to make the default bootloader code flash linked?

 

We have made the following changes to the original project:

1. Removed the "BL_TARGET_RAM" macro

2. Updated project settings to use the default linker script and un-tick the "link to ram" option in linker options.

3. BL_FEATURE_RELIABLE_UPDATE is set to 0.

 

After making the above changes we see that the code wont compile as there are many undefined linker references.

Please help us set the linker script right so that we can use this example project.

 

Regards

Tags (2)
0 Kudos
Reply
1 Reply

676 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello yash_bhatt1,

I would recommend referring to AN12604 which covers how to implement a second bootloader on the i.MXRT10XX. Hopefully this will serve as a starting point. The application note software is also available (second link).

https://www.nxp.com/docs/en/application-note/AN12604.pdf

https://www.nxp.com/docs/en/application-note-software/AN12604SW.zip

I hope that this information helps!

Regards,
Gustavo

0 Kudos
Reply