cancel
Showing results for 
Search instead for 
Did you mean: 

Issues with Cube path in VSCode Dev Container

maxhalanen
Associate

When I run build in a VSCode Dev Container with STM32CubeIDE installed, the build fails and i receive an error stating arm-none-eabi-gcc and arm-none-eabi-g++ was not found in the PATH. 

The compilers are installed, I see them inside the bundles folder (under /root/.local/share/stm32cube/bundles/), the extension is just not picking them up.

This was previously working in a separate container but I can't seem to replicate it.

 

3 REPLIES 3
Julien D
ST Employee

Hi @maxhalanen

Are you invoking cmake directly, or through cube / cube-cmake commands?

In the second cases, can you verify that your project is correctly set up with the toolchain, cmake, and ninja bundles? Run cube bundle show --project in your project directory or check the .settings/bundles.store.json file.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hi @Julien D 

There did appear to be a mismatch in the versions I have installed and the versions that were reported in the settings/bundles.store.json file. Running cube bundle show --project to showed missing on the compilers, it looks like it was searching for version 13.3.1 and I had 14.3.1 installed. Downgrading the versions seems to have worked for finding the compiler, the debugger is still not working (I'm passing the usb device into the container, it worked previously), Is there a command to update these json configs?


Running cube bundle show --project to showed missing on the compilers, it looks like it was searching for version 13.3.1 and I had 14.3.1 installed.




cube bundle install --project is the command to fetch and install bundles that are defined into the project but missing locally.

Additionally if you want to install, upgrade, or downgrade project's bundles here are some useful commands:

  • cube bundle list-online: prints bundles and version available on the registry
  • cube bundle install bundleName[@bundleVersion] --project: register the bundle in the project's environment
  • cube bundle remove bundleName --project: unregister a bundle

CLI is rich, feel free to read the help at cube, commands or flags levels.

You can also manage system and project bundles in VSCode interface through the Bundles Manager:

JulienD_0-1766178441124.png

 

the debugger is still not working (I'm passing the usb device into the container, it worked previously), Is there a command to update these json configs?


I suspect, like for the toolchain, that stlink-gdbserver and programmer bundles are missing. They are installed automatically at first debugging from VSCode. But you can force their installation manuelly, again via the Bundle Manager view, or via the cli thanks cube bundle install stlink-gdbserver programmer --project

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.