s32k388 Clock_Ip_Init problem

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

s32k388 Clock_Ip_Init problem

ソリューションへジャンプ
1,117件の閲覧回数
waldluis
Contributor I

Hello,

I want to set the clocks on the s32k388 with the Clock_Ip interface. When generating the default clock configuration in the mex-file, it is not possible to initialise the clocks with the "Clock_Ip_Init" function. This function ends in a Hardfault.  Could this be a problem in the SDK, because the default configuration should work without any changes.
If the Clock_Ip_Init is not called the code is running, but with some slow clock configurations.

Is this problem known or knows somebody a way to set the clocks to specific frequencies?

 

Used Software:

S32 Design Studio 3.6.2

S32K3XX Real-Time Drivers AUTOSAR R21-11 Version 6.0.0

PlatformSDK_S32K3_S32K388_M7_0_0_LS v 6.0.0

0 件の賞賛
返信
1 解決策
1,103件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @waldluis 

I tested a project built from scratch on the S32K388EVB-Q289 using the default clock configuration. I only called the Clock_Ip_Init() function in main(), and did not enter a HardFault. This suggests that the issue is not related to the software or clock configuration.

If you are working with a custom board, a possible root cause could be hardware-related. Could you please verify the hardware setup?

 

BR, VaneB

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,104件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @waldluis 

I tested a project built from scratch on the S32K388EVB-Q289 using the default clock configuration. I only called the Clock_Ip_Init() function in main(), and did not enter a HardFault. This suggests that the issue is not related to the software or clock configuration.

If you are working with a custom board, a possible root cause could be hardware-related. Could you please verify the hardware setup?

 

BR, VaneB

0 件の賞賛
返信
1,058件の閲覧回数
waldluis
Contributor I

Hi VaneB,

thanks for the quick response. 

Yes the problem was related to a faster clock source on the custom board. I found that already out in the mean time, but your hint was absolutely right.

After changing to the correct external source input, the clock init is working.

Luis

0 件の賞賛
返信