S32K312: WKUP Interrupt Not Triggering

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

S32K312: WKUP Interrupt Not Triggering

33 Views
DiaDev
Contributor III

DiaDev_0-1783418064066.png

 

DiaDev_1-1783418072029.png

 

DiaDev_2-1783418089747.png

 

 

 

I have configured PTB2 as the WKUP input pin, and WKUP Channel 8 is mapped to PTB2. The WKUP module configuration appears to be correct; however, the WKUP interrupt is not being triggered.

Previously, I configured the same pin as an EIRQ input, and the interrupt was triggered successfully, confirming that the pin and external signal are functioning correctly.

Issue:

  • PTB2 configured as WKUP input.
  • WKUP Channel 8 mapped to PTB2.
  • No WKUP interrupt is received.
  • The same hardware setup works correctly with EIRQ configuration.

Please help identify if there are any additional WKUP configuration requirements, dependencies, or known limitations that could prevent the interrupt from being generated.

    Wkpu_Ip_Init(0U, &Wkpu_Ip_Config_PB);
    /* INT2: Wakeup Trigger. */
    Wkpu_Ip_EnableInterrupt(0,    Wkpu_Ip_ChannelConfig_PB[2U].hwChannel);
    Wkpu_Ip_EnableNotification(Wkpu_Ip_ChannelConfig_PB[2U].hwChannel);

 

Tags (2)
0 Kudos
Reply
1 Reply

7 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @DiaDev,

S32K3, added to the ~60 external wake-ups, also provides 4 internal wake-up sources, which must be taken into consideration when configuring a channel; this means, adding +4 as offset:

Julin_AragnM_0-1783443817593.png

PTB2 is the wake-up pad [8], plus the four internal sources, it will be the channel 12. Please change this configuration and test out if WKPU is triggered or not.

Best regards,
Julián

0 Kudos
Reply