cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging under VS Code failed

dze.1
Associate II

Hi,

I followed exactly the instructions of ST's youtube tutorial "Get started with STM32Cube for VS Code: from installation to debugging". (https://www.youtube.com/watch?v=aWMni01XGeI)

Everything went perfect, the demo builds without problems.

When it comes to debugging, VS Code gives me the error "Failed to install missing pack. "STMicroelectronics.stm32u3xx_dfp.1.0.0"

Additional the is the same error as extension notification, see below.

I tried Ctrl+Shift+P + Restore STM32Cube CMake projects configuration, but to no avail.

Same thing happens with other STM32 CMake projects.

What did I miss?

 

Thank You in advance

6 REPLIES 6
Julien D
ST Employee

Hi @dze.1,

You can try to install manually the missing pack from vscode terminal with the command cube pack install STMicroelectronics.stm32u3xx_dfp.1.0.0 and check if there is any relevant error.

Hi,

thanks for reply.

I should mention I'm using STM32Cube for Visual Studio Code 3.4.11 as recommended in the tutorial.

Neither cube pack install STMicroelectronics.stm32u3xx_dfp.1.0.0 nor STM32Cube: pack install STMicroelectronics.stm32u3xx_dfp.1.0.0 succeeded.

Such a command seems not to exist. I have attached all other available STM32 extension commands below.

But STM32Cube: Synchronize pack list runs without error. But again to no avail.

Thanks.

2025-06-27 16_45_24-VS_Example - Visual Studio Code3.jpg

 

 

 

 

This command is to be entered in the terminal, not in the command palette:

KnarfB_0-1751040208985.png

hth

KnarfB

Hallo KnarfB,

thank you so much. My fault. I'm new with VS Code (worked for years with CubeIDE).

There seems to be a problem with certificates. May be an IT problem.

Is there a solution to download the packs manually and place them into the expected folder? Since I have CubeIDE and CubeMX heavily in use, the packs shall be already on my machine. May be just a copy is sufficient.

2025-06-27 18_25_44-sys.cpp - H7 - Visual Studio Code4.jpg

Thank you very much.

Dirk

 

The packs are new with STM32Cube for Visual Studio Code 3.x pre-release. Switching back to 2.x should work.

hth

KnarfB

This is indeed an IT issue, all what you should need is to define NODE_EXTRA_CA_CERTS system variable to point to a bundle CA certificates file. Your local IT must be in a position to share this file with you.