Example shows how to use FlexCAN 0 Pretended networking mode to allow FlexCAN module to wake up MCU from STOP mode. Wake up by Timeout and wake up by Match events are enabled. Also pin interrupt can be used to exit STOP mode.
So MCU enters STOP mode by pressing SW3 button. MCU exits STOP mode when one of following happens: - no CAN message comes in 8sec (CAN PN timeout event) - message with standard ID 0x554 or 0x555 comes (CAN PN match event) - SW2 button is pressed (PTC12 interrupt)
In run mode blue LED is dimming and the rate is different for each wakeup event