S32k146 Start-upclock configuration

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

S32k146 Start-upclock configuration

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

Hi,

In which file is the startup clock configuration handled in the S32K146 microcontroller? If possible, please provide an example of the configuration code.

 

Thanks

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

Hi SreejithN,

I didn't see clock configuration changed in startup code:

startup code AN5413 SDK.pngstartup code AN5413 SDK.png

Note FOPT[LPBOOT] controls the reset value of clock divider of IRC 48 Mhz to feed the Core and platform clocks.

FTFC_FOPT[LPBOOT].pngFTFC_FOPT[LPBOOT].png

Here is the Default configuration after reset:

Default configuration after reset.pngDefault configuration after reset.png

28.3.4 Run Clock Control Register (SCG_RCCR).png28.3.4 Run Clock Control Register (SCG_RCCR).png

I think you can refer to the S32K1 SDK example to initialize the clock module in the main function:
/* Initialize clock module */
status = CLOCK_DRV_Init(&clockMan1_InitConfig0);


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,651件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi SreejithN,

I didn't see clock configuration changed in startup code:

startup code AN5413 SDK.pngstartup code AN5413 SDK.png

Note FOPT[LPBOOT] controls the reset value of clock divider of IRC 48 Mhz to feed the Core and platform clocks.

FTFC_FOPT[LPBOOT].pngFTFC_FOPT[LPBOOT].png

Here is the Default configuration after reset:

Default configuration after reset.pngDefault configuration after reset.png

28.3.4 Run Clock Control Register (SCG_RCCR).png28.3.4 Run Clock Control Register (SCG_RCCR).png

I think you can refer to the S32K1 SDK example to initialize the clock module in the main function:
/* Initialize clock module */
status = CLOCK_DRV_Init(&clockMan1_InitConfig0);


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信