STM32CubeIDE for Visual Studio Code Documentation

Table Of Contents

- STM32CubeIDE for Visual Studio Code
- Introduction
  - Overview
  - System requirements
  - Release note
- Basic Concepts
  - User interface
  - Command-line tools
  - Visual Studio Code extension packs
  - Bundles
  - CMake
  - Toolchains
  - STMicroelectronics Arm Clang Toolchain for STM32
- Getting Started
  - Installation
  - First project creation
- Workspace and extension workflow
  - Workspace overview
  - Extension commands
  - Project files
  - Multi-project workspaces
- Tutorials
  - Migrating from STM32CubeIDE for Visual Studio Code extension 2.x to 3.x
  - Dual-core STM32 projects
  - Power management
  - RTOS-based STM32 projects
  - Firmware security and integrity
- Development
  - Projects
  - Editing
  - Build
  - Debug
  - API manual
  - Integration with external tools
  - Testing and validation
- Troubleshooting
  - Frequently asked questions
  - Known issues
  - Support

### On this page

- Installing ST-Link USB drivers
- Installing SEGGER J-Link drivers
- Proxy configuration

# Installation

To get the full experience with STM32CubeIDE for Visual Studio Code, follow these steps:

1. In Visual Studio Code, select the Extensions icon in the Activity Bar.

2. In the Extensions Marketplace, search for “STM32”.

3. Select “Install” to add the STM32 extension.

Cherry-picking extensions

To install only specific parts of the STM32 extension, select and install individual extensions as needed. This approach enables customization of you development environment.

To install a specific version using the command-line interface, see the Install a specific bundle version chapter.

Note

If migrating from STM32 VS Code Extension 2.0, see the Migrating from STM32CubeIDE for Visual Studio Code extension 2.x to 3.x chapter.

If new to STM32 development in Visual Studio Code, see the First project creation chapter to start your first project.

Installing drivers

Note

For the current release version, users must install debug probe drivers manually because administrator privileges are required. This process will be improved in future updates.

When setting up STM32CubeIDE for Visual Studio Code, install the required drivers to enable communication between the development board and the computer. Follow the instructions below to install drivers for ST-Link and SEGGER J-Link.

## Installing ST-Link USB drivers

1. In the STM32CubeIDE for Visual Studio Code Extension, select the STM32CubeIDE for Visual Studio Code icon in the Activity Bar.

2. In the extension, locate the STM32Cube Resources section.

3. Select ST-Link USB Drivers to begin installation. This step ensures the ST-Link interface is configured for communication with the STM32 development board.

## Installing SEGGER J-Link drivers

1. Go to the SEGGER J-Link driver download page at SEGGER J-Link driver download page.

2. Download the J-Link Software and Documentation Pack for your operating system.

3. Follow the installation instructions provided by SEGGER to install the J-Link drivers.

## Proxy configuration

Some users have connections protected by company network security protocols. In most cases, a proxy or certificate configuration is required.

For more information about configuring a proxy or certificate, see the How to configure the proxy or certificate for STM32CubeIDE for Visual Studio Code community article.