cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug local C/C++ application using STM32CubeIDE?

dale
Associate III

Using STM32CubeIDE version 1.0.2, I can create a "local C/C++ application", in this case, "hello world" that simply prints to the console, and it will create the proper file structure and compile a working x86 executable. I can execute this program under Windows 10 with no issues.

When I try to debug the application from within STM32CubeIDE, I get a an error:

Problem Occurred:

'Launching hello-world.exe' has encountered a problem.

Error with command: gbd --version

When I click on the "Details >>>" button, I see:

Error with command: gdb --version

Cannot run program "gdb": Launching failed

Is there something else I need to install or configure to get this debug functionality in STM32CubeIDE? This worked well within Atollic TrueSTUDIO.

I understand that this is not the main focus of the STM32CubeIDE, but it is nevertheless a valuable addition.

Thanks for any help you can give me.

Dale Wheat

1 REPLY 1
Glados
Associate

You can follow this tutorial in order to install gdb and add it to your local variables.

https://www.youtube.com/watch?v=BoB-4O3ZyhQ