Skip to content

Setup VSCode

Lexx edited this page Apr 4, 2024 · 2 revisions

PDF Download with images (Recommended)

Toolchain and driver

INSALL VISUAL STUDIO CODE

Download Visual Studio Code

EXTENSIONS

Go to View -> Extensions

Install

  1. C/C++
  2. C/C++ Extension Pack
  3. Cortex-Debug
  4. STM-Helper

ST-LINK

Driver Installation

  1. Install the driver STM32 ST-Link Utility v4.1.0 setup.exe
  2. During the process you have to press confirm by "Installieren" that you want to install the driver
  3. At the end of the installation there are two windows offered: Press the “Weiter” in the window “Welcome to the Device Driver Installation Wizard!”
  4. Then press “Fertig stellen” in the window "Completing the Device Driver Installation Wizard”

ARM-GNU-TOOLCHAIN

Save the Toolchain permanently in a folder and remember the location.

PROJECT SETUP

Open VSCode

  1. Extract and open the Template Folder.
  2. On the lower left corner in Visual Studio Code press Update Workspace ➔ UpdateWorkspace resets the armToolchainPath
  3. Then open launch.json
  4. Replace the armToolchainPath with the bin folder of your downloaded

ToolChain

HOW TO USE Run Program with Debugger: Upper left: Run -> Start Debugging or press F5

Clone this wiki locally