cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to install the bundles...

emiya0306
Associate II

VS Code report: "Unable to contact the STM32Cube registry, verify your Internet connection..."

Can I know the registry URL of the STM32Cube bundles registry and test its connection? 

wechat_2025-08-29_164253_806.png

wechat_2025-08-29_164326_927.png

16 REPLIES 16
Nawres GHARBI
ST Employee

Hi @emiya0306 

If you are hidden behind your company security, you probably need to configure a proxy and certificate to be able to access servers and download packages

This is how you will succeed in having full server access with our STM32Cube extension for VSCode.

 

How to Configure the proxy:

  • Open settings and type proxy in the search bar

NawresGHARBI_0-1756713156797.png

 

NawresGHARBI_2-1756713156809.png
NawresGHARBI_3-1756713156812.png

NawresGHARBI_4-1756713156815.png

 

Put your proxy in this format http://user:pass@Proxy-address:port

How to Configure the certificate:

  • Assuming your corporate self signed cert is trusted by your OS, you can now configure VS Code to use the OS cert. Launch VS Code, go to File > Preferences > Settings > Search for "certificates" and check the box for Http > Experimental: System Certificates V2 ".
    IT Controls whether experimental loading of CA certificates from the OS should be enabled

  • Otherwise make sure that the certificates are imported into your OS and trusted in system category. Then, go into VSCode settings, Application, Proxy, and UNCHECK the "System certificates" option. Restart VSCode and RE-CHECK it. Restart again, and it works.
  • if you want to do it the Manual way
  1. Open a corporate portal home page in browser and download Root CA certificate. This certificate is usually the first one in the hierarchy of 3 certificates available there. Another option is to ask security team to provide you a corporate Root CA certificate file in Base-64 format.
  2. Right-click the certificate file and select Install Certificate.
  3. Add Windows Environment variable NODE_EXTRA_CA_CERTS with path to this certificate file.
  4. Restart Visual Studio Code and try again.

Hi @Nawres GHARBI 

I think I don't have any company security, and just install STM32Cube for VSCode at home.

Hi @emiya0306,

There is an error in the output shown in one of your screenshot, but partially visible because of vscode notifications.

Could you open a vscode terminal, execute the command cube bundle list-online, and paste here the error if any ?

Hi @Julien D ,

Here is the STM32Cube Core error log, thanks!

wechat_2025-09-13_180225_265.png

If I excute command STM32Cube: Install prerequisite bundles, it will report Failed to initialize STM32Cube bundles. Some feature may not work as expected. Please check output channel logs.

wechat_2025-09-13_181232_942.png

If I click Bundles Manager, the list can be opened.

wechat_2025-09-13_181610_842.png

The main error output seems to be truncated : 

Failed to initialize STM32Cube bundles: Failed to list online bundles, reason: Failed to get list of online bundles. Command failed with

Then next commands fail because of that. For sample the pack command is missing because it is part of pack-manager bundle.

 

Can you open a VSCode Terminal and enter cube bundle list-online command to see if output is more verbose ?

Here is what you are supposed to get:

JulienD_0-1757767011342.png

 

I input the command and run it, and it show nothing.

wechat_2025-09-15_215429_254.png

This is not expected at all, let me check that with the Team and I’ll get back to you. 

We might need further details on your setup, like country location for example. 

Could you give a try to another similar command enabling more verbosity and listing all platforms/architectures bundles: cube --verbose bundle list-all-online

Hi @Julien D ,

I try the commands, and it output more information on this picture.

wechat_2025-09-17_081059_186.png

Existed path:
C:\\Users\\41541\\AppData\\Local\\stm32cube\\bundles

C:\\Users\\41541\\AppData\\Local\\stm32cube

C:\\Users\\41541\\AppData\\Roaming\\stm32cube\\logs

Not existed path:

C:\\Users\\41541\\AppData\\Local\\stm32cube\\bundles\\.metadata

C:\\Users\\41541\\AppData\\Local\\stm32cube\\packs

 

The attachment is the log files, please check. Thanks!