Issue in system clock initialization for S32K148.

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

Issue in system clock initialization for S32K148.

ソリューションへジャンプ
657件の閲覧回数
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 解決策
646件の閲覧回数
dhirajtarole
Contributor III

Hi @Robin_Shen ,

Thanks for support.

I have checked your suggested code its working now.

 

Thanks,

Dhiraj 

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
648件の閲覧回数
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 件の賞賛
647件の閲覧回数
dhirajtarole
Contributor III

Hi @Robin_Shen ,

Thanks for support.

I have checked your suggested code its working now.

 

Thanks,

Dhiraj 

0 件の賞賛