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
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.
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