Rt117x: start a FW from another

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

Rt117x: start a FW from another

346 次查看
mastupristi
Senior Contributor I

Hi,

one of my FWs needs, for some “special” operations, to copy another FW into RAM and launch it. Simply “jumping” may not work, requiring a number of other operations: resetting (almost) all peripherals, disabling interrupts, basically returning to the state the controller is in as soon as the ROM bootloader yields control to our FW. This can be complex and error-prone.

So I ask what other ways are there to get what I want. Is it possible to take advantage of the ROM bootloader itself? Are there ways to reset the peripherals but not the core? Are there shortcuts to get back to the initial state?

 

best regards

Max

标记 (3)
0 项奖励
回复
1 回复

268 次查看
diego_charles
NXP TechSupport
NXP TechSupport

Hi @mastupristi 

Thank you very much for your patience, I have been checking this topic. 

The ROM bootloader does not offer any API to shutdown peripherals. 

diego_charles_0-1718922765543.png

I would recommend checking the shutdown_cleanup() function of the RT1170 flashloader. This function may provide a basis to get started as resets clock to original state before jumping to application. 

Besides this I do not have another recommended procedure, to simplify this process. 

All the best, 

Diego

 

 

0 项奖励
回复