Troubleshooting and More Info

Here are some common errors we've seen over the years:

Program file does not exist

If somehow it says Program file does not exist, you can click Search Project and select the correct .elf file. In our case, Release/SW Tutorial 2022.elf.

Project is already existing within current workspace

You have already imported the folder but just didn't see that. To solve this just open the window of c/c++ projects.

Click the tiny "two windows button to show the project

If this still don't work, at the top bar select Window" -> "Show View" -> "C/C++ Projects"

"Error in launching installer" pops up when installing CubeIDE

This happens because the exe file is located in a directory with Chinese characters and is not supported by the installer. Solution: Move the exe file to a directory with no Chinese characters in its path.

Windows Solution:

Select Run Configurations, scroll all the way down that page, there’ll be a link to download the STLink Server. Follow the on-screen description.

gdb failed to start

Check your OpenOCD path

Windows:

In OpenOCD Command, the path should end with “\openocd.exe”

Mac:

In OpenODC Command, the path should end with “\openocd”

More configuration on the IDE

Since STMCubeIDE is based on Eclipse, you can configure the theme, keybindings, formatter and more.

What I have configured:

  • Dark theme

  • Clang-formatter

  • Auto-complete

  • VSCode keybindings

Explore the IDE if you have time!

Last updated