Hi,
we are working with an imxrt1024, when we Deinitialize the EnetPll or the external 24Mhz clock(before a jump in a bootloader) the program breaks ( in a debug session) and we lose the MCU, we only recover it with switching to serial downloader mode and initializing all the peripherals.
if we don't Deinitialize them we encounter no problem and everything works fine (after the jump).
we would like to know how to properly deinitialize them and if it is necessary before a jump ?
code:
debug session result:
thanks in advance.
解決済! 解決策の投稿を見る。
Hello
It is not suggested to deinit clocks, is there any specific reason to deinit them? Especially the 24Mhz as it sources the important PLL as the system PLL.
Best regards,
Omar
is there any specific reason to deinit them?
The only reason is that it has been suggested that before a jump, we should uninitialize the active perihperals in the reverse order of their initialization, but we haven't found any specific information on what to uninitialize and what not to.
I suggest you use Config Tools, if you want to initialize a PLL to specific parameters the tool already creates the necessary code. It is not suggested to deinit all the PLLs as it might be used by one peripheral.
I think that the suggestion is to make sure that the peripherals are not clock gated so prior to being initialized they need to be clock gated.
Best regards,
Omar
Hello
It is not suggested to deinit clocks, is there any specific reason to deinit them? Especially the 24Mhz as it sources the important PLL as the system PLL.
Best regards,
Omar