STM-Helper README
This extension helps to automatically build the project for work in VScode with one click.
Allows you to Build
the firmware and Download
it to the microcontroller.
It also allows you to open CubeMx project file
from the VsCode application.
Features:
This extension supports the following list of controllers:
- STM32F-series (STM32F0-F4 & STM32F7 series)
- STM32L-series (STM32L0,L1,L4 series)
You may use your user paths with your ".c"
and ".h"
files and global includes
in project (see "Presets" paragraph 7)
Supports ST-Link programmer for download firmware.
(Tests only with x64 Windows systems)
Presets:
To work with this extension you will need the following programs:
If you want to use real-time Debug too - you should install this extension:
How to use:
- You should build the project as
Makefile
in STM32CubeMX, with the following parameters:
-
System Core -> SYS -> Debug Serial Wire
-
Project Manager -> Code Generator -> Generate peripheral initialization as a pair of '.c/.h' files per peripheral
Open the project folder in VS Code and you can see the three buttons in your the lower left corner of the screen:
Push "UpdateWorkspace"
button and your project will be ready! - Only one click!
If you want to Build
and Download
your firmware - for it you have remainig two buttons.
If you want to start Real-time Debug
- press F5
button on your PC.
If you need to quickly open your CubeMx project
, you may do this from VsCode by OpenCubeMxProject
button.
- If you want to use your own paths with your
.c/.h
files and global includes
in your project -> you should write this paths
and includes
in .vscode/c_cpp_properties.json
file:
And video - How to use:
https://www.youtube.com/watch?v=N0W-mCnIRws
Mail for issues and questions:
buzzyelectronics@gmail.com
Our Instagram:
https://www.instagram.com/buzzy_electronics/