To upload sketches using ST-Link (SWD), you must install STM32CubeProgrammer.
-
Download STM32CubeProgrammer from the STMicroelectronics website (for Windows, MacOS or Linux): https://www.st.com/en/development-tools/stm32cubeprog.html
-
Install the software for your operating system following the instructions from STMicroelectronics
During installation, make sure the following components are installed:
-
STM32CubeProgrammer
-
ST-Link drivers
After installation, connect your ST-Link programmer and verify it works:
-
Start STM32CubeProgrammer
-
Select ST-Link
-
Click Connect
If the connection succeeds, your system is ready to upload firmware from the Arduino IDE.
https://docs.arduino.cc/software/ide-v2/tutorials/getting-started/ide-v2-downloading-and-installing/
Launch Arduino IDE. Click on "File" menu and then "Preferences".
The "Preferences" dialog will open, then add the following link to the "Additional Boards Managers URLs" field:
https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
-
Go to Sketch → Include Library → Manage Libraries….
-
In the Library Manager window, type
WindNerd Corein the search bar. -
Locate the WindNerd Core entry in the results.
-
Click Install.
-
Once installed, you can access the example sketches via File → Examples → WindNerd-Core.
Using the Library Manager is the easiest way to keep the library up to date.
To install the library manually:
-
Download or clone the repository from https://github.com/windnerd-labs/Windnerd-Core.
- If you download as ZIP, extract it.
- If you clone with Git:
git clone https://github.com/windnerd-labs/Windnerd-Core.git
-
Copy the
Windnerd-Corefolder into your Arduino libraries folder:- Windows:
Documents\Arduino\libraries\ - macOS:
~/Documents/Arduino/libraries/ - Linux:
~/Arduino/libraries/
- Windows:
-
Restart Arduino IDE.
You should now see Windnerd-Core in File → Examples.
-
Select the board:
- Go to Tools → Board → STM32 Boards MCU based boards.
- Choose Generic STM32G031F8Px.
-
Set the upload method:
-
Go to Tools → Upload Method.
-
For STM32G0 series, choose:
- STM32CubeProgrammer (SWD) if you are using an ST-Link (recommended). Connect pins CLK,DIO,RST and GND to your ST-link dongle. Power supply can either be provided through VCC or 3.3V (supplied by the ST-Link) but do not connect both at same time.
- Serial if you are using a USB Serial-TTL adapter connected to RX1 and TX1. This mode needs to be enabled on the board by placing a jumper between pin headers named CLK and 3.3 and repowering the board.
-
-
Upload a sketch as usual using the Upload button.


