This is a ready to use environment for the GD32F450 microcontroller. Just clone, Prepare the environment and start coding.
- CMake build system
- Debugging with OpenOCD
- Ready to use VSCode configuration
- Ready to use CMake configuration
- Ready to use OpenOCD configuration
- (*t-linkV2.1 work correctly)
- GigaDevices Framework (Standard Peripheral Library). Doc and example
- VSCode
- GNU Arm Embedded Toolchain (Tested with version 10.3.1 (release))
- CMake (Tested with version 3.21.3)
- Ninja (Tested with version 1.10.2)
- OpenOCD (Tested with version 0.11.0)
- Install VSCode:
sudo snap install --classic code- Install the GNU Arm Embedded Toolchain:
sudo apt install gcc-arm-none-eabi- Install CMake:
sudo apt install cmake- Install Ninja:
sudo apt install ninja-build- Install OpenOCD:
sudo apt install openocdI don't have a Windows machine to test the installation, but you can find the installation instructions on the official websites of the tools.
I have recommended the use Chocolatey to install the tools on Windows.
- Clone the repository
- Install the dependencies and the required extensions for VSCode (if you don't have them already)
- Open the project with VSCode
- Press
Ctrl+Shift+Band selectCMake Configure Project:Debug(Release) - Press
Ctrl+Shift+Band selectCMake Build Projectto build the project(Ninja build system) - To flash the microcontroller, press
Ctrl+Shift+Band selectFlash with OpenOCD(You need to have OpenOCD installed) - To debug the microcontroller, press
F5or selectDebug->Debug(Attach)