S32k146 Start-upclock configuration

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32k146 Start-upclock configuration

跳至解决方案
1,656 次查看
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,648 次查看
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,649 次查看
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 项奖励
回复