Jump to another application

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

Jump to another application

1,351 Views
ranshalit
Senior Contributor I

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

Labels (1)
6 Replies

722 Views
jay_heng
NXP Employee
NXP Employee

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

0 Kudos

704 Views
yanz
Contributor III

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!

0 Kudos

697 Views
jay_heng
NXP Employee
NXP Employee

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.

0 Kudos

695 Views
yanz
Contributor III

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.

0 Kudos

680 Views
jay_heng
NXP Employee
NXP Employee

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

2. https://github.com/NXPmicro/sbl

0 Kudos

737 Views
yanz
Contributor III

Hi,

did you get an answer?

Looking for it too.

Thank you in advance,

Yan

0 Kudos