*******************************************************************************
The purpose of this demo application is to present a usage of the
POWER & WKUP IP Driver for the S32K3xx MCU.
In current example :--
SW-5 = PTB-26 -----> PRESS to enter the STANDBY mode.
SW-6 = PTB-19 = WKUP[38] --> PRESS to exit the STANDBY mode.
CAN-0-RX = PTA-6 = WKUP[15] --> send CAN message to exit the STANDBY mode
The example uses PIT-0 timer, to generate the periodic interrupt.
The example uses FLEXCAN-0 for transmit & receive using following Message buffer :--
#define RX_MB_IDX_0 10U
#define RX_MB_IDX 11U
#define TX_MB_IDX 12U
BAUDRATE : 500 KBPS
------------------------------------------------------------------------------
* Test HW: S32K3X4EVB-T172
* MCU: S32K324
* Compiler: S32DS3.5
* SDK release: RTD 3.0.0
* Debugger: PE micro
* Target: internal_FLASH
********************************************************************************
CAN BUS :--
Dinesh_Guleria_6-1721374510468.png
Push Buttons :---
Dinesh_Guleria_0-1721374360734.png
Dinesh_Guleria_1-1721374361256.png
Wake-up source, SW-6 GPIO:--
Dinesh_Guleria_2-1721374360866.png
Wake-up source, CAN-0-RX :--
According to the IOMUX table in RM, for example, PTA6 can be used as WKPU15 and CAN0_RX. It means that the WKPU15 input doesn't require specific MSCR configuration.
So if its input buffer is enabled and the corresponding WKPU input channel is enabled/configured in the WKPU, it should be able to act as wake-up input.
Dinesh_Guleria_7-1721374532434.png
Standby entry :--
Dinesh_Guleria_8-1721374542742.png
STandby clock :--
Dinesh_Guleria_9-1721374587254.png
Enter Standby mode :--
Dinesh_Guleria_10-1721374619540.png
********* If you use external BJT on your board to generate 1.5 volts *******************
Dinesh_Guleria_3-1721374360795.png
I tested on Our T172 EVB, with NPN external Ballast transistor is selected to supply the V15_MCU domain. I am able to wake up from standby mode.
If we select 2-3 in J31 then NPN external Ballast transistor is selected to supply the V15_MCU domain & wakeup is ok on T172 EVB
You have to make following settings in code :--