Skip to main content
dale
Associate III
October 11, 2019
Question

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

  • October 11, 2019
  • 1 reply
  • 2068 views

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

This topic has been closed for replies.

1 reply

Glados
Visitor II
February 23, 2020

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