Hello,
Is there any example showing how to perform jump to another application ?
I use imx RT1050.
I've also seen many others asking the same question, but it is not resolved in any of the questions.
Most of the things I tried resulted in exception (jump to HardFault_Handler).
I understand that there also need to disable interrupt before the jump starts, but nothing helped.
I would appreciate any help,
ranran
You can refer to mfb_jump_to_application() function in below source code, it is standard implementation
https://github.com/JayHeng/RT-MFB/blob/main/boards/mimxrt/mfb_fw/src/mfb.c
Great, thank you very much!
Additional question - I want to flash HEX file by my own FW running on iMXRT 1050.
The offset that I get when parsing the file is SDRAM ones (no flash defined in memory map).
How can I flash it to the 512K offset of external flash? Is it possible?
Again, thank you very very much!
So it is Non-XIP image (executed in SDRAM). You can treat it as raw binary and store the binary data into any offset address of flash you want by your own FW. in this case, there will be a 2nd bootloader, it is bootloader's duty to copy Non-XIP image from flash to SDRAM and jump into it.
Thank you!
And could it be HEX file?
Is there any sample flashing BIN on target (NXP) side?
Is there any sample of bootloader's duty to copy Non-XIP image from flash to SDRAM?
Thank you very very much.
HEX file should be converted to raw binary file on host PC side, MCU target should only accept binary data for efficiency reasons.
1. \SDK_2_12_0_EVKB-IMXRT1050\boards\evkbimxrt1050\bootloader_examples\flashloader
Hi,
did you get an answer?
Looking for it too.
Thank you in advance,
Yan