I am new to the realm of STM32 programming and have been trying to find a suitable IDE for quite a while now. I know of all the other IDE's like Keil and IAR but the cost of buying them just to learn is far to steep for me at this point in time.
I have started using VS Code for a growing amount of my development work and I though it would be a good IDE to use for STM32 development. I have found many examples online over the past few days on how to configure the IDE to build STM32 projects but they all seem to be missing important information that I need to properly get the project to compile. It is rather frustrating,
I was wondering if there is anyone that can point me to a complete setup guide on how to set up VS code to work with cubeMX and the arm tool-chain, or if you are feeling really kind, send me a sample project that I can use as a base learn from.
Just some background information, I know how to use cubeMX to generate the base project as well as the associated makefile, I also have the latest GNU-Tools-Arm-Embedded installed.
Thank you in advance for your help
Using the Open folder menu in Visual Studio Code, navigate to your project's root folder and open it. Now open the command palette ( Ctrl+Shift+P or F1 ) and run Build STM32 Project . A terminal should appear and you will see gcc (hopefully) compiling your project.
VisualGDB provides consistent Visual Studio debugging experience for local, SSH-based, JTAG-based debugging and many more. You hit F5, VisualGDB does the rest. Advanced debug features include: IntelliSense and preprocessor support in Watch windows. Built-in SSH terminal and file transfer for Linux debugging.
To run or debug a simple app in VS Code, select Run and Debug on the Debug start view or press F5 and VS Code will try to run your currently active file.
make
to execute your makefiles so download Make for Windows. Easiest way is to download the binaries and extract it somewhere on your system. Add it (C:\make-3.81-bin\bin
) to your PATH as well.Makefile
as Toolchain/IDE.
make
in the project's root folder.make
command. You can bind your task to a hotkey as well to spare some time.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With