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
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