If I don't give s32k312 delay, the CAN stop during operation

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

If I don't give s32k312 delay, the CAN stop during operation

1,996件の閲覧回数
parksuhun
Contributor I

hi, In a debug environment, CAN operates without stopping, but it stops after release and initialization
So I gave code delay after main start but it didn't stop What is the problem?

0 件の賞賛
返信
3 返答(返信)

1,967件の閲覧回数
parksuhun
Contributor I

Thank you, I changed the HSE Clock and the error was fixed. May I know why I need to fix the HSE?

0 件の賞賛
返信

1,955件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport
Because the ratio between HSE_CLK and APIS_SLOW_CLK set by the Clocks Tool in S32CT is incorrect.
By checking Utest DCF Clients of S32K3xx_DCF_clients.xlsx, the default value of dcf_client_utest_misc is 0x00000101 which means HSE_CLK_MODE_AND_GSKT_CTRL is 00.
So Ratio of 1:2 is ok by default. Otherwise, you may need to change the value of dcf_client_utest_misc.
HSE_CLK_MODE_AND_GSKT_CTRL dcf_client_utest_misc.png
0 件の賞賛
返信

1,980件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

What about changing HSE_CLK from 120MHz to 60MHz? Please refer to the discussion in S32K312 flexcan example not running on Power reset

 

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 件の賞賛
返信