Issue in system clock initialization for S32K148.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue in system clock initialization for S32K148.

Jump to solution
911 Views
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,

 

 

Tags (1)
0 Kudos
Reply
1 Solution
900 Views
dhirajtarole
Contributor III

Hi @Robin_Shen ,

Thanks for support.

I have checked your suggested code its working now.

 

Thanks,

Dhiraj 

View solution in original post

0 Kudos
Reply
2 Replies
902 Views
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 Kudos
Reply
901 Views
dhirajtarole
Contributor III

Hi @Robin_Shen ,

Thanks for support.

I have checked your suggested code its working now.

 

Thanks,

Dhiraj 

0 Kudos
Reply