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
Julien D
ST Employee

Everything looks ok from the logs, the failures are due to the fact that our underlying cube command fails to get the list of remote bundles, we have an internal discussion about your case on-going.

In the meantime, you can retry after removing every stm32cube folders:

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

Thanks a lot, I retry the method and it seems not work.

And, if you need more information, please feel free to contact me. ;)

Niklas-Dahlquist
ST Employee

Hi,

Could you help us investigate two things, we are a bit suspicious that Your user name could be interpreted wrongly. 

Do you have this as a login name 41541 ?

Can you run  echo $LASTEXITCODE after running cube --verbose bundle list-all-online

 

Hi @Niklas-Dahlquist ,

"41541" is my Microsoft Email Account, the full name is "41541xxxx@xx.xxx". I run "whoami" in PowerShell, it show "laptop-2n9slqe6\41541".

It works on echo $LASTEXITCODE and cube --verbose bundle list-all-online

wechat_2025-09-18_070658_137.png

But if I run STM32Cube: Install prerequisite bundles, it show these reports.

wechat_2025-09-18_071304_820.png

Seems like you are now able to list the content of the bundle registry, did you changed something (network connection, etc..) on your side which could explain?

What Niklas suggested was to do the echo $LASTEXITCODE once the cube command completes. It allows to print the exit code of the last executed command (usually 0 means success, >0 means a failure).

The second screenshot highlights that there are still some issues with the installation of the required bundles. Could you run the following commands in the suggested order?

cube bundle list
echo $LASTEXITCODE
cube bundle install cube-code-manifest@1.0.3+st.1 --yes
echo $LASTEXITCODE
cube bundle install cmake ninja --yes
echo $LASTEXITCODE
cube bundle list
echo $LASTEXITCODE

 

list: lists the bundles installed on your PC.

--yes: accepts the bundle licences by default (up to you to remove this option to read the licence terms)

Hi @Julien D ,

I don't change the network connection, it is interesting that it work in the morning...

And I run these commands in order, please check. Is here one error in cube bundle install cube-code-manifest@1.0.3+st.1 --yes?

wechat_2025-09-18_222104_019.png

Then I run the STM32Cube: Install prerequisite bundles again, and get some error.

wechat_2025-09-18_223031_407.png

 

Julien D
ST Employee

Just sent a PM