Issue in system clock initialization for S32K148.

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

Issue in system clock initialization for S32K148.

跳至解决方案
1,510 次查看
dhirajtarole
Contributor III

Hi,

using default processor expert functions clock is not going to be initialized -->

clock_user_config_t ptr_config_struct;
clock_names_t clock_name;
module_clk_config_t clk_config;
pwr_modes_t pwr_mode;
sys_clk_config_t sys_clk_config;
clock_source_config_t clk_src;

CLOCK_DRV_Init(&ptr_config_struct);
CLOCK_DRV_SetModuleClock(clock_name,&clk_config);
CLOCK_DRV_SetSystemClock(&pwr_mode,&sys_clk_config);
CLOCK_DRV_SetClockSource(clock_name,&clk_src);

but while using below it is working properly, could please check ?

CLOCK_SYS_Init(g_clockManConfigsArr,CLOCK_MANAGER_CONFIG_CNT,g_clockManCallbacksArr,CLOCK_MANAGER_CALLBACK_CNT);
CLOCK_SYS_UpdateConfiguration(0U,CLOCK_MANAGER_POLICY_AGREEMENT);

 

thanks,

 

 

标记 (1)
0 项奖励
回复
1 解答
1,499 次查看
dhirajtarole
Contributor III

Hi @Robin_Shen ,

Thanks for support.

I have checked your suggested code its working now.

 

Thanks,

Dhiraj 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,501 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi dhirajtarole,

https://community.nxp.com/t5/S32-SDK/SDK-problem-in-S32-Design-Studio-for-ARM-2-2/m-p/986190 Here you can find some information between CLOCK_DRV_Init and CLOCK_SYS_Init.

What's the version of S32K1xx SDK are you using? Maybe you can refer to the CLOCK_DRV_Init usage in hello_world_s32k148 of S32K1xx SDK RTM v4.0.2 Example Projects.

CLOCK_SYS_Init CLOCK_DRV_Init.png

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,500 次查看
dhirajtarole
Contributor III

Hi @Robin_Shen ,

Thanks for support.

I have checked your suggested code its working now.

 

Thanks,

Dhiraj 

0 项奖励
回复