Authors
Leo Wong, Wesley Leung
First download the STM32CubeIDE installer from our Github.
⚠️ Warning: NEVER place the PCB on top of your computer, it may kill your computer.
![]()
You can choose which every directory you like to place the project files. Just make sure you can find it afterwards.
![]()
J-Link drivers is not needed in this case But definitely check the ST-link drivers cuz we need then to flash(upload) the program to the mainboard.
After you have installed the IDE, please follow the steps below to properly setup your Integrated Development Environment.
Download the 2025-sw-tutorial-v2.zip we prepared for you below.
Note that we may have some library changes from time to time. So always follow what the tutorial notes say.
Unzip the
sw-tutorialand put it into any folder. (ignore the metadata)
Open STMCubeIDE 1.19.1 and you will see the following window.
You can choose whichever directory you like to place the project files. Just make sure you can find it afterwards.
Click
Directoryand find the location of yoursw-tutorialfolder.
![]()
Tada! You have successfully imported the code boilerplate.
![]()
Switch build option from Debug to Release
![]()
Click the arrow besides Run and click Run Configurations...
![]()
Choose STM32 Application the left and select Debugger Tab.
Change Debug probe to
ST-LINK (GDB Server). Also double check that the OpenOCD command is the same as the one in the image above.In
Mode Setup, selectSoftware system resetinReset Mode.![]()
If you see this, you should be good to go. Ask someone to give you a mainboard and a ST-LINK (the USB like thingy we use to flash code onto the board) and see if it works.


%20(1).png)
%20(1).png)
%20(1)%20(1).png)
.png)






