cancel
Showing results for 
Search instead for 
Did you mean: 

How to install STM32CubeCLT in docker container?

cla
Associate II

Hello

I am new to this forum, so if I am at the wrong place, let me know.

How can this software: https://www.st.com/en/development-tools/stm32cubeclt.html be installed from a script? Namely into docker container?

I get the following error:

``` DISPLAY not set. Cannot display license. Aborting. ```

Thanks in advance.

23 REPLIES 23

I will share if I reach a point where it is working. I've just started a new company where vscode is used for development. I've used stm32 10 years ago, at that time CoIDE was my development tool. Since that time there was a lot of changes. In the last years I used ROS2 and there ubuntu+vscode+docker was very good environment.

We have used vanilla CMake in our project and currently we are not using any STM provided VS Code plugins, everything is vanilla.

On Windows we have installed the CubeCLT package and it includes all the required tools for vanilla approach. CMake + Ninja. 

I haven't tried the latest tooling since it just messes stuff we have already built.

For some reason different vendors tend to built their new tools the same way but they add something extra CMake-stuff which then breaks the vanilla commandline building. I'd have to try the "STM way of working" to clearly state the differences.

We have also utilized CMakePresets.json and CMakeUserPresets.json to flavor out and inherit all the required variables, toolchainfiles etc.

JuhaV
Associate II

Have a look at this repo, it was a huge help for me when designing the project layout.

https://github.com/jasonyang-ee/STM32-CMAKE-TEMPLATE

Janos_Toth
Associate II

Now I have a docker container with running compile with cmake, clangd also working. The biggest problem the debug. I have Jlink debugger. Installed the cortex debug extension. But I cannot use it properly. I start the gdb server on host side, connect from docker. It is working. The issue is that when start the debug only compare the elf with the flash data but not flashing. How to solve this issue? I searched in google without any success solution.