Rt117x: start a FW from another

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

Rt117x: start a FW from another

128 Views
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

Tags (3)
0 Kudos
1 Reply

50 Views
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 Kudos