Jump to another application

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Jump to another application

2,207 次查看
rans
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

标签 (1)
6 回复数

1,578 次查看
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 项奖励
回复

1,560 次查看
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 项奖励
回复

1,553 次查看
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 项奖励
回复

1,551 次查看
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 项奖励
回复

1,536 次查看
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 项奖励
回复

1,593 次查看
yanz
Contributor III

Hi,

did you get an answer?

Looking for it too.

Thank you in advance,

Yan

0 项奖励
回复