s32k388 Clock_Ip_Init problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

s32k388 Clock_Ip_Init problem

跳至解决方案
1,802 次查看
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,788 次查看
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,789 次查看
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,743 次查看
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 项奖励
回复