Example S32K312 STANDBY wake up using CAN-0-RX and GPIO Switch DS3.5 RTD300

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

Example S32K312 STANDBY wake up using CAN-0-RX and GPIO Switch DS3.5 RTD300

Example S32K312 STANDBY wake up using CAN-0-RX and GPIO Switch DS3.5 RTD300

*******************************************************************************

 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-6 = PTB-19 -----> PRESS to enter the STANDBY mode.
SW-5 = PTB-26 = WKUP[41] --> 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: S32K3X2EVB-Q172
* MCU: S32K312
* Compiler: S32DS3.5
* SDK release: RTD 3.0.0
* Debugger: PE micro
* Target: internal_FLASH
********************************************************************************

 

Dinesh_Guleria_0-1718885427589.png

 

Push button :--

Dinesh_Guleria_1-1718885710580.png

 

Dinesh_Guleria_2-1718885752727.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_3-1718885882871.png



Wake-up source, SW-6 GPIO:--

Dinesh_Guleria_4-1718885972993.png

 

 

Attachments
No ratings
Version history
Last update:
Thursday
Updated by: