STM32 Arch Workflow
Hardware
- STM32 board
- ST-Link V2
Install the tools
- CubeMX
- GNU ARM Embedded Toolchain
- arm-none-eabi-gcc
- arm-none-eabi-gdb
- arm-none-eabi-newlib
- make
- OpenOCD
- On-Chip Debugger software that will upload compiled code to the STM32
- vscode
- stm32-for-vscode extension
CubeMX Configuration
- Configure Project output to Makefile
Project Manager->Project->Toolchain/IDE
set to Makefile
- Set project to copy all used libraries to the project folder
Code Generator tab
enable 'Copy all use libraries into the project folder'
- Do whatever ever configuration then build
click 'GENERATE CODE'
VSCode
- Open the project in vscode
- Write code
Use Extension Icon or Open the command palette (Ctrl+Shift+P) or Ctrl+Shift+B
Build STM32 Project
Flash STM32