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,
Solved! Go to Solution.
Hi @Robin_Shen ,
Thanks for support.
I have checked your suggested code its working now.
Thanks,
Dhiraj
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.
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.
-------------------------------------------------------------------------------
Hi @Robin_Shen ,
Thanks for support.
I have checked your suggested code its working now.
Thanks,
Dhiraj