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 .
Hello,
Can I know the status?
This is critical to me.
I got this error during running board init function
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:
Let me know if this helped you to solve the problem.
Best regards,
Victor
Hello,
Thank you @georgevictor .It solved my problem.
It would have been great if I had got the solution much earlier.