Special thanks to GREGOR_812's note
1. Install Chocolatey then run
choco install gcc-arm-embedded make
Or instal packages manually
OpenOCD or Download OpenOCD for Windows
openocd -f interface/stlink-v2-1.cfg -f target/stm32l0.cfg
My STM32 Cube Repository directory is c:\STM32CubeRepository
and I check in project manager:
- Add necessary library files as reference in the toolchain project configuration file
- Generate peripheral initialization as a pair of .c / .h files per peripheral
MCU page on st.com -> Resources -> HW Model, CAD Libraries & SVD -> download System View Description
6. Copy .vscode
from this repository into root of your project directory and improve it depend on your own configurations
- Copy C includes from
Makefile
toincludePath
section in.vscode/c_cpp_properties.json
- Copy C defines from
Makefile
todefines
section in.vscode/c_cpp_properties.json
- Copy uncommented defines from Module Selection of
Inc/stm32xxxx_hal_conf.h
todefines
section in.vscode/c_cpp_properties.json
- Cortex-Debug from marus25.
- С/С++ from Microsoft
I'm not sure that really must done, but it helped me. First run VS code as administrator. Next you can start it as common user.