Deinitializing EnetPll & external clock breaks the program

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

Deinitializing EnetPll & external clock breaks the program

ソリューションへジャンプ
1,171件の閲覧回数
OM120
Contributor I

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:

OM120_0-1698751466611.png

debug session result:

OM120_1-1698751518253.png

thanks in advance.

0 件の賞賛
返信
1 解決策
1,141件の閲覧回数
Omar_Anguiano
NXP TechSupport
NXP TechSupport

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

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,132件の閲覧回数
OM120
Contributor I

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.

0 件の賞賛
返信
1,116件の閲覧回数
Omar_Anguiano
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信
1,142件の閲覧回数
Omar_Anguiano
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信