I am using an S32K314 on a custom board and would like to use the wakeup (WKPU) functionality. My requirement is for the MCU to wake up on a falling edge on pin PTA25. To achieve this, in the MEX configuration, I configured PTA25 as WKPU34 (with the offset applied; the corresponding hardware channel is 38). The pin is enabled and configured with an internal pull-up.
On the hardware side, only a multimeter is connected to PTA25—there are no other external components on this pin.
So I initially wanted to measure the voltage on this pin, so after Clock_Ip_Init and Siul2_Port_Ip_Init, the voltage measured on PTA25 is approximately 2.227 V. If I initialize SIUL2 only (without clock initialization), the voltage on the same pin measures about 5.102 V.
WKPU0_CLK is sourced from AIPS_SLOW_CLK, AIPS_SLOW_CLK is 40 MHz, SCS_CLK is set to PLL PHI0 which is at 160 MHz.
RTD Version:3.0.0 (S32K3_RTD_3_0_0_D2303_ASR_REL_4_7_REV_0000_20230331)
S32KDS Version:S32 Design Studio for S32 Platform, Version: 3.5, Build id: 240924 (Update 14)
How is the clock initialization affecting the pull-up voltage on PTA25? What could be causing this issue ?