Software Development
FM4 S6E2H-Series Starter Kit Guide, Doc. No. 002-11387 Rev. **
42
4.2.5 Sleep Mode
4.2.5.1 Project Description
This project demonstrates the sleep mode operation of the S6E2HG device. The MCU will enter
sleep mode after blinking the green LED 5 times. It can be woken up by pressing the SW3 key.
After wakeup, the green LED will turn on.
4.2.5.2 Hardware Connection
No specific hardware connections are required for this project. All connections are hardwired on
the board.
4.2.5.3 Verify Output
1. Power the FM4 S6E2G-Series Starter board from CN3 using a USB cable, refer to
2. Open the project file
in IAR Embedded Workbench or Keil µVision IDE from the following
directory on your PC:
IAR project: <User_Directory>:
\FM4 S6E2H-Series Starter Kit_Ver01\Firmware
\Demo Projects\s6e2hg_sleep_mode\IAR\s6e2hg_sleep_mode.eww.
Keil project: <User_Directory>:
\FM4 S6E2H-Series Starter Kit_Ver01\Firmware
\Demo Projects\s6e2hg_sleep_mode\ARM\s6e2hg_sleep_mode.uvprojx.
3. Build the project and download the code into the S6E2HG device.
4. Run the program.
5. The RGB LED (LED2) will blink 5 times (green color), and then the MCU enters sleep
mode.
Figure 4-6: MCU in sleep mode
6. Press the SW3 key to wake up the MCU.
7. The RGB LED (LED2) will glow with green color.
4.2.6 Software Watchdog
4.2.6.1 Project Description
This project is to demonstrate the operation of the S6E2HG watchdog. The project demonstrates
two different situations: when the watchdog is fed and when the watchdog is not fed.
If the watchdog is enabled and the watchdog is fed in time, the program will run properly, and
the RGB LED (LED2) will blink green.