Categories
YouTube

Visual Studio Code for STM32 development and debugging

Visual Studio Code for STM32 development and debugging

The second video in this series describes how to setup a workflow with Visual Studio Code for developing and debugging STM32 applications using the toolchain from the previous video.

In the video, the following is showm:

  • Creating a makefile project for the Nucleo-F091RC devboard using the STM32CubeMX tool from ST-Microelectronics
  • Download and install Visual Studio Code with the required plugins
  • Configuring a project for C/C++ intellisense and syntax highlighting
  • Configuring a project for debugging
  • Adding an SVD-file for inspecting peripheral registers
  • Basic Git operations in Visual Studio Code.
Categories
YouTube

STM32 toolchain for Windows

STM32 Toolchain for windows – Using CubeMX with GCC, Make and OpenOCD

This is the first video on the EmbeddedGeek channel. In this video, I show you my setup for working with STM32 projects under windows. In the video I use a Nucleo-F091RC devboard from ST, but this tutorial could be followed using any devboard with a builtin ST-Link and an onboard LED.

In the video the following is shown:

  • Create a makefile project for the Nucleo-F091RC devboard using the STM32CubeMX tool from ST-Microelectronics
  • Download and install the required software
  • Add the executables to the system path
  • Compile the project using the installed Toolchain
  • Add make target for flashing the device using OpenOCD and the on-board ST-Link V2 on the Nucleo board.
  • Install git – the included git-bash contains the rm command required for the make clean target to work
  • Initialize a git repository in the project and push to GitHub

This video will be followed up by another one showing how to build onto this toolchain with Visual Studio Code for code editing and debugging.