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.

 

2 REPLIES 2
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?