The program did not enter an interrupt during execution, and pit_notification was not called.
Software environment: S32DS 3.6.0 RTD 6.0.0
Hi @Finnc
Currently, I do not have access to an S32K311 board. However, I tested the same configuration and code on an FRDM-A-S32K312, and I was able to confirm that PitNotification is called and the counter increments as expected.
Could you set a breakpoint inside the notification function to verify whether it is being called?
BR, VaneB
When running at full speed, pit_notification is not triggered , and the PitCount value remains at 0. The register parameters when paused are shown in the figure.
Could this be related to the clock configuration? The configuration is as follows:
Hi @Finnc
I was able to test your code on my side using an S32K311EVB, and everything is working as expected.
To help rule out any issues related to your custom hardware, could you please try switching the clock source to FIRC and see if there is any change in the behavior?
Hi @Finnc
As observed in your code, the counter only increments when PitNotification is called. This indicates that the PIT interrupt is being triggered correctly.
For a simpler and more visible test, you can use printf to output the counter value inside the PitNotification function. If you are able to see the printed values, this will further confirm that the interrupt is being executed as expected.
For example, I implemented it as follows: