2391557_en-US

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

2391557_en-US

2391557_en-US

S32K312: WKUP Interrupt Not Triggering

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);

Re: S32K312: WKUP Interrupt Not Triggering

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

标记 (1)
无评分
版本历史
最后更新:
2 周之前
更新人: