rt1050: Switch between XiP mode and Run in RAM mode

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

rt1050: Switch between XiP mode and Run in RAM mode

ソリューションへジャンプ
1,331件の閲覧回数
jayyehtw
Contributor III

Hi,

I am now investigating on the bootloader design of the company product which uses rt1050 as main processor.

I am wondering if it is possible to programally switch the rt1050 from xip mode to execution in RAM mode.

The mechanism I am thinking is:

1. The code flash is separated in to 2 blocks: 1. application code and 2. bootloader code

2. In most cases, the rt1050 would execute the application code in xip mode.

3. If the enter bootloader command is received, the rt1050 would read the bootloader code and load in RAM and execute it

4. The bootloader code run in RAM would receive new application code and program into flash.

5. After the update of application code, the bootloader code would programally jump to application code and run in xip mode

Just wondering if it is feasible to implement the mechanism.

 

 

ラベル(1)
0 件の賞賛
1 解決策
1,305件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
1)If there any code example of jumping from bootloader to application in XIP?
-- Please downloading the code of AN12604 via the below link and refer to it for details.

https://www.nxp.com/docs/en/application-note-software/AN12604SW.zip
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
3 返答(返信)
1,314件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
Yes, it is feasible to implement the second bootloader mechanism.
Further, I'd like to suggest you refer to the application note to learn how to implement a second boot loader on i.MX RT1050, i.MX RT1020, and i.MX RT1060 part based on XIP flash.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
1,308件の閲覧回数
jayyehtw
Contributor III

Hi 

Thanks a lot for the response.

The application note seemed would also work for me despite that having a xip based bootloader makes it difficult to update the bootloader itself.

If there any code example of jumping from bootloader to application in xip? 

0 件の賞賛
1,306件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
1)If there any code example of jumping from bootloader to application in XIP?
-- Please downloading the code of AN12604 via the below link and refer to it for details.

https://www.nxp.com/docs/en/application-note-software/AN12604SW.zip
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛