Skip to main content
Graduate
June 27, 2025
Solved

Debugging under VS Code failed

  • June 27, 2025
  • 3 replies
  • 1665 views

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

    This topic has been closed for replies.
    Best answer by Julien D

    Looks like you have a custom openssl install in c:\ws\deps\openssl

    If this install is required for something else you may need to set its openssl.cnf to

    openssl_conf = openssl_init
    
    [openssl_init]
    ssl_conf = ssl_sect
    
    [ssl_sect]
    system_default = system_default_sect
    
    [system_default_sect]
    Options = UnsafeLegacyRenegotiation

     I can't try this on my side though.

    3 replies

    ST Employee
    June 27, 2025

    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.

    dze.1Author
    Graduate
    June 27, 2025

    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

     

     

     

     

    Super User
    June 27, 2025

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

    KnarfB_0-1751040208985.png

    hth

    KnarfB

    Julien DAnswer
    ST Employee
    June 30, 2025

    Looks like you have a custom openssl install in c:\ws\deps\openssl

    If this install is required for something else you may need to set its openssl.cnf to

    openssl_conf = openssl_init
    
    [openssl_init]
    ssl_conf = ssl_sect
    
    [ssl_sect]
    system_default = system_default_sect
    
    [system_default_sect]
    Options = UnsafeLegacyRenegotiation

     I can't try this on my side though.

    dze.1Author
    Graduate
    July 2, 2025

    Hallo Julien,

    I have no openssl installed.

    However, I did complain to my company IT again. They solved the problem now. Some server side internal IT stuff I have no insight to. Now it works.

    Thank you very much for your help and patience.

    Dirk

    ST Employee
    July 2, 2025

    Great!

    Thanks for your feedback.