S32K312: WKUP Interrupt Not Triggering

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

S32K312: WKUP Interrupt Not Triggering

ソリューションへジャンプ
42件の閲覧回数
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);

 

タグ(2)
0 件の賞賛
返信
1 解決策
16件の閲覧回数
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 件の賞賛
返信
1 返信
17件の閲覧回数
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 件の賞賛
返信