S32k3:BusFault during PIT initialization.

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

S32k3:BusFault during PIT initialization.

770 次查看
avinashstarkenn
Contributor III

Hello,

I am using S32k344 using MBDT.

I am implementing Timer(PIT) in my project.

The example model worked fine with only PIT 0.

When I added 'PIT 2' it did not work as expected so I open the code in S32 Design Studio and i am getting BusFault.

PFA of my model and code which needs to be imported in S32 Design Studio.

 

#S32k3 #Timer #GPT #Timer #MBDT #Simulink #Matlab .

0 项奖励
回复
4 回复数

751 次查看
avinashstarkenn
Contributor III

Hello,

Can I know the status?

This is critical to me.

0 项奖励
回复

768 次查看
avinashstarkenn
Contributor III

I got this error during running board init function

avinashstarkenn_0-1701957562580.png

 

0 项奖励
回复

712 次查看
georgevictor
NXP Employee
NXP Employee

Hi, @avinashstarkenn,

I see that you are trying to set up a new PIT hardware module and use it inside the GPT peripheral. In addition to configuring inside GPT the PIT 2 channels you plan to utilize, it is required to activate the PIT 2 clock within the MCU component. If the peripheral clock in the MCU is not activated, it will lead to initialization faults for the peripheral.

The clock enablement for all peripherals is located in the McuModeSettingConfig section of the Mcu component, as illustrated in the following picture:

georgevictor_0-1702306563896.png

Let me know if this helped you to solve the problem.

 

Best regards,

Victor

 

0 项奖励
回复

699 次查看
avinashstarkenn
Contributor III

Hello,

Thank you @georgevictor .It solved my problem. 

It would have been great if I had got the solution much earlier.

 

0 项奖励
回复