With complex vehicle architectures designed into modern vehicles for ADAS, EV systems, gateways etc., a simple ignition key driven ECU wake up architecture is no longer adequate. New strategies that require ECUs to be woken up by CAN traffic, or on a specific CAN message, are becoming a requirement. For example, EV architectures require a periodic wake-up of the ECU to perform some scheduling and background tasks, even when the vehicle is not in use. This requires a real-time clock wake up functionality in ECUs.

The M560 and M580 families of Functional Safety (ISO 26262) Vehicle Control Units (VCU) take modern vehicle architectures into consideration. They have the following wake sources:

The Wake_M560_M580_Sleep example Simulink model demonstrates the M560 and M580 ECU’s flexibility to either bring the ECU to a sleep state, or wake it from a sleep state.  The Simulink model follows a top down/left right flow, allowing the user to easily follow the logic.  Within the Simulink model, the user will be able to identify the following key characteristics of the M560 or M580:

An easy to use, and easy to build, example Simulink model supporting OpenECU M560 and M580 families of rapid control prototyping embedded controllers is available for download here. It is intended to introduce users to the ease and simplicity of creating, and building, applications using OpenECU.

Use cases for testing the wake sources

  1. Download the Example model: http://support.openecu.com/
  2. Download the User Guide for Simulink API
  3. Read the comments in the model to take next steps

A snippet of the instructions for the example model with various wake sources is provided below:

  1. RTC (Real Time Clock)
    1. The steps of operation to test this feature are as follows:
      1. Set slpc_mins_RTCData to a value that you want to wake the M5xx up after it has been asleep (units are in Minutes)
      2. Verify that slp_b_WakeSourceOff is not true
        1. To verify which source is holding slp_b_WakeSourceOff False look at the following variables:
          1. slp_b_XD1Ign (ignition input)
          2. slp_b_ZA2FuelDoorButton (fuel door button input)
          3. slp_b_XF1ControlPilot (control pilot input)
          4. slp_b_canAwaketrg (CAN A wakeup flag)
          5. slp_b_canBwaketrg (CAN B wakeup flag)
      3. Whichever input is true, disconnect that input and verify that slp_b_WakeSourceOff goes true
      4. Observe that in the time set on slpc_mins_RTCData that the M5xx wakes up and then goes back to sleep
  2. Ignition Input
    1. The steps of operation to test this feature are as follows:
      1. Set slpc_mins_RTCData to 999 (we do not want to wake the M5xx up after it has been asleep
      2. Verify that slp_b_WakeSourceOff is not true
        1. To verify which source is holding slp_b_WakeSourceOff False look at the following variables:
          1. slp_b_XD1Ign (ignition input)
          2. slp_b_ZA2FuelDoorButton (fuel door button input)
          3. slp_b_XF1ControlPilot (control pilot input)
          4. slp_b_canAwaketrg (CAN A wakeup flag)
          5. slp_b_canBwaketrg (CAN B wakeup flag)
      3. Whichever input is true, disconnect that input and verify that slp_b_WakeSourceOff goes true
      4. Set pin xD1 true and verify that the variable slp_b_WakeSourceOff goes true and that the M5xx wakes up
      5. The M5xx will stay awake based on the value set on the calibration variable slpc_s_PsuHoldOffDelay.
  3. Fuel Door Button Input
    1. The steps of operation to test this feature are as follows:
      1. Set slpc_mins_RTCData to 999 (we do not want to wake the M5xx up after it has been asleep
      2. Verify that slp_b_WakeSourceOff is not true
        1. To verify which source is holding slp_b_WakeSourceOff False look at the following variables:
          1. slp_b_XD1Ign (ignition input)
          2. slp_b_ZA2FuelDoorButton (fuel door button input)
          3. slp_b_XF1ControlPilot (control pilot input)
          4. slp_b_canAwaketrg (CAN A wakeup flag)
          5. slp_b_canBwaketrg (CAN B wakeup flag)
      3. Whichever input is true, disconnect that input and verify that slp_b_WakeSourceOff goes true
      4. Set pin ZA2 true and verify that the variable slp_b_WakeSourceOff goes true and that the M5xx wakes up
      5. The M5xx will stay awake based on the value set on the calibration variable slpc_s_PsuHoldOffDelay.
  4. Control Pilot Input
    1. The steps of operation to test this feature are as follows:
      1. Set slpc_mins_RTCData to 999 (we do not want to wake the M5xx up after it has been asleep
      2. Verify that slp_b_WakeSourceOff is not true
        1. To verify which source is holding slp_b_WakeSourceOff False look at the following variables:
          1. slp_b_XD1Ign (ignition input)
          2. slp_b_ZA2FuelDoorButton (fuel door button input)
          3. slp_b_XF1ControlPilot (control pilot input)
          4. slp_b_canAwaketrg (CAN A wakeup flag)
          5. slp_b_canBwaketrg (CAN B wakeup flag)
      3. Whichever input is true, disconnect that input and verify that slp_b_WakeSourceOff goes true
      4. Set pin XF1 true and verify that the variable slp_b_WakeSourceOff goes true and that the M5xx wakes up
      5. The M5xx will stay awake based on the value set on the calibration variable slpc_s_PsuHoldOffDelay.
  5. Can_A Input
    1. The steps of operation to test this feature are as follows:
      1. Set slpc_mins_RTCData to 999 (we do not want to wake the M5xx up after it has been asleep
      2. Verify that slp_b_WakeSourceOff is not true
        1. To verify which source is holding slp_b_WakeSourceOff False look at the following variables:
          1. slp_b_XD1Ign (ignition input)
          2. slp_b_ZA2FuelDoorButton (fuel door button input)
          3. slp_b_XF1ControlPilot (control pilot input)
          4. slp_b_canAwaketrg (CAN A wakeup flag)
          5. slp_b_canBwaketrg (CAN B wakeup flag)
      3. Whichever input is true, disconnect that input and verify that slp_b_WakeSourceOff goes true
      4. Transmit CAN Message 512 on CAN Channel A and verify that the variable slp_b_WakeSourceOff goes true and that the M5xx wakes up
      5. The M5xx will stay awake based on the value set on the calibration variable slpc_s_PsuHoldOffDelay.
  6. Can_B Input
    1. The steps of operation to test this feature are as follows:
      1. Set slpc_mins_RTCData to 999 (we do not want to wake the M5xx up after it has been asleep
      2. Verify that slp_b_WakeSourceOff is not true
        1. To verify which source is holding slp_b_WakeSourceOff False look at the following variables:
          1. slp_b_XD1Ign (ignition input)
          2. slp_b_ZA2FuelDoorButton (fuel door button input)
          3. slp_b_XF1ControlPilot (control pilot input)
          4. slp_b_canAwaketrg (CAN A wakeup flag)
          5. slp_b_canBwaketrg (CAN B wakeup flag)
      3. Whichever input is true, disconnect that input and verify that slp_b_WakeSourceOff goes true
      4. Transmit a CAN Message on CAN Channel B and verify that the variable slp_b_WakeSourceOff goes true and that the M5xx wakes up
      5. The M5xx will stay awake based on the value set on the calibration variable slpc_s_PsuHoldOffDelay.