Jump to another application

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Jump to another application

2,210件の閲覧回数
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,581件の閲覧回数
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,563件の閲覧回数
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,556件の閲覧回数
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,554件の閲覧回数
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,539件の閲覧回数
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,596件の閲覧回数
yanz
Contributor III

Hi,

did you get an answer?

Looking for it too.

Thank you in advance,

Yan

0 件の賞賛
返信