![](https://www.emcu-homeautomation.org/wp-content/uploads/2022/01/immagine-12.png)
IMPORTANT NOTE:
here we use the:
GD32F4xx_Firmware_Library_V2.1.0.rar
that you can find, for example here (on top of right – Firmware Library).
After you download and unzip the Firmware Library you can see a directory structure like below.
NOTE:
Our actual release is: GD32F4xx_Firmware_Library_V2.1.0
![](https://www.emcu-homeautomation.org/wp-content/uploads/2022/01/immagine-14-1024x339.png)
IMPORTANT:
In the TEMPLATE directory there are the ready to use configuration for KEIL and ARM.
To use KEIL you must enter in the directory:
C:\…\GD32F4xx_Firmware_Library_V2.1.0\GD32F4xx_Firmware_Library\Template\Keil_project
and rename the:
Project.uvproj
in
Project.uvprojx
this for use the last KEIL version 5.xxx
See below.
![](https://www.emcu-homeautomation.org/wp-content/uploads/2022/01/immagine-15-1024x346.png)
![](https://www.emcu-homeautomation.org/wp-content/uploads/2022/01/immagine-16-1024x234.png)
In the EXAMPLES directory, there are the software examples for all peripherals.
Let’s suppose you want to use the example of the blinking LED found in:
C:\…\GD32F4xx_Firmware_Library_V2.1.0\GD32F4xx_Firmware_Library\Examples\GPIO\Running_led
![](https://www.emcu-homeautomation.org/wp-content/uploads/2022/01/immagine-17-1024x347.png)
To do this you have to copy all the files from the directory:
C:\…\GD32F4xx_Firmware_Library_V2.1.0\GD32F4xx_Firmware_Library\Examples\GPIO\Running_led
in the directory:
C:\…\GD32F4xx\GD32F4xx_Firmware_Library_V2.1.0\GD32F4xx_Firmware_Library\Template
see below.
![](https://www.emcu-homeautomation.org/wp-content/uploads/2022/01/immagine-18-1024x880.png)
Now double click on the file:
Project.uvprojx
renamed before.
ATTENTION:
On some PCs due to antivirus installed, the above way of running the KEIL can cause errors.
If you are in this condition, do this:
Open the KEIL as ADMINISTRATOR and load the project mentioned above.
Compile it and you must see something like below.
![](https://www.emcu-homeautomation.org/wp-content/uploads/2022/01/immagine-19-1024x613.png)
DEBUG
Now configure your debug interface.
In our case we use the emulator present on the GD32450I-EVAL so we select the
CMSIS-DAP DEBUGGER
and the FLASH LOADER named
GD32F4XX_3MB FMC
see the image below.
![](https://www.emcu-homeautomation.org/wp-content/uploads/2022/01/immagine-20-1024x492.png)
That is all, good work.