How to use PIT1 of s32k3 in the MCAL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use PIT1 of s32k3 in the MCAL

Jump to solution
289 Views
FrankLiu2019
Contributor III

I successfully used PIT0 by referring to the Gpt_Example_S32K344 routine. However, when I attempted to use PIT1, a hardware error occurred during initialization.

The problem occurred at the disabled PIT1 (write 1 to MCR[MDIS]).

Could you please provide any examples of using GPT Pit1?


10-1.png10-2.png

Tags (1)
0 Kudos
Reply
1 Solution
269 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if error happens during first peripheral register access, most commonly this is due to disabled module clock. So check Mcu module setting if having PIT1 clocked as well for used running mode

PetrS_0-1757492898184.png

BR, Petr



View solution in original post

0 Kudos
Reply
2 Replies
270 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if error happens during first peripheral register access, most commonly this is due to disabled module clock. So check Mcu module setting if having PIT1 clocked as well for used running mode

PetrS_0-1757492898184.png

BR, Petr



0 Kudos
Reply
259 Views
FrankLiu2019
Contributor III

Hello Petr,

Thank you for your reply. This is precisely the reason why the problem occurred.

BR, Frank

0 Kudos
Reply