Software Development
FM4 S6E2H-Series Starter Kit Guide, Doc. No. 002-11387 Rev. **
43
If the watchdog is enabled, but not fed in time, the chip will reset, and the green LED will remain
glowing.
4.2.6.2 Hardware Connection
No specific hardware connections are required for this project. All connections are hardwired on
the board.
4.2.6.3 Verify Output
1. Power the FM4 S6E2H-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_st_wdt\IAR\s6e2hg_st_wdt.eww.
Keil project: <User_Directory>:
\FM4 S6E2H-Series Starter Kit_Ver01\Firmware
\Demo Projects\s6e2hg_st_wdt\ARM\s6e2hg_st_wdt.uvprojx.
3. Build the project and download the code into the S6E2HG device.
4. Run the program.
5. The RGB LED (LED2) will blink green.
6. Stop the program, comment out the line of
Swwdg_Feed();
in
main.c
, and click
File
>
Save
7. Repeat steps 3 to 4.
8. The RGB LED (LED2) will glow green but will not blink.
4.3 Flash Programming
This section describes how to program the S6E2HG MCU using the FLASH MCU Programmer
and how to program the CMSIS-DAP device using the FLASH USB DIRECT Programmer.
4.3.1 Programming the S6E2HG using the FLASH MCU Programmer
1. The FLASH MCU Programmer gets installed on your PC as part the Kit installer. Follow
2. Make sure the jumpers on the FM4 S6E2H-Series Starter board are placed according to
Table 4-4: Jumper Settings for S6E2HG programming using FLASH MCU Programmer
Jumper
Position
Description
J2
Open
Sets MB9AF312K to 3.3V.
J3
Open
Enable MB9AF312K CMSIS-DAP for debugging and programming purpose.