2379956_en-US

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

2379956_en-US

2379956_en-US

The S32K311 chip cannot enter the PIT interrupt Software environment: S32DS 3.6.0  RTD 6.0.0

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

Re: S32K311 芯片 pit无法进入中断 软件环境 S32DS 3.6.0  RTD 6.0.0I added a breakpoint inside the function to test it, but the function wasn’t called. What could be the possible reasons for this? The counter is incrementing normally, and no interrupt has been triggered.
Could different software versions be a factor?
Re: S32K311 芯片 pit无法进入中断 软件环境 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

Re: S32K311 芯片 pit无法进入中断 软件环境 S32DS 3.6.0  RTD 6.0.0

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:


Finnc_0-1781330060900.png

Finnc_1-1781330089325.png

Finnc_2-1781330277353.pngFinnc_3-1781330292758.pngFinnc_4-1781330308238.png

Finnc_5-1781330368160.png




Re: S32K311 芯片 pit无法进入中断 软件环境 S32DS 3.6.0  RTD 6.0.0

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?

Re: S32K311 芯片 pit无法进入中断 软件环境 S32DS 3.6.0  RTD 6.0.0

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:

VaneB_0-1781283456565.png

Also, if you need help setting up printf, refer to the thread how to use the printf function in S32DS 3.5?
タグ(1)
評価なし
バージョン履歴
最終更新日:
19 時間前
更新者: