cancel
Showing results for 
Search instead for 
Did you mean: 

Toolchain problem when trying to debug an example project in STM32CubeIDE

MPasz.1
Associate

Hello,

I would like to provide some more information about the issue that i signalled during yesterdays workshop. Hopefully these will help to get a solution.

When trying to debug an example projet in the CubeIDE I get the following error:

0693W00000DmVD4QAN.pngHowever, when I open a new Command Shell Console in the IDE and type the command "arm-none-eab-gdb --version" i get the following answer:

0693W00000DmVCaQAN.pngOther helpfull information:

  • Windows 10,
  • Tried reinstalling to default directory as @Jocelyn RICARD​ suggested
  • I have tried to force the use of other toolchains via Preferences->STM32Cube->Toolchain Manager. It didn't help
  • I am using another IDE with different versions of arm-none-eabi on the same computer

Is there maybe another method to solve my issue?

Best regards,

Marcin

1 REPLY 1
Jocelyn RICARD
ST Employee

Hello Marcin,

first I have added the STM32CubeIDE topic to make your post visible in to the right people.

On my side, I tried to reproduce what you have shared.

I launched a command shell console (I didn't even know it existed before :grinning_face: ) using the Command Shell Console in the console window:

But it does not allow me to launch this gdb command. The path is not set.

But I may be launching this in the wrong way.

I also tried to launch directly the gdb command from where it is in the installation directory:

And here is what I get:

icrosoft Windows [Version 10.0.19042.1110]
(c) Microsoft Corporation. All rights reserved.
 
c:\STM32\Tools\STM32CubeIDE\V1.7.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.0.0.202105311346\tools\bin>arm-none-eabi-gdb.exe --version
GNU gdb (GNU Tools for STM32 9-2020-q2-update.20201001-1621) 8.3.1.20191211-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

So, it does not seem to point to the same version.

I guess some path setup in your system take precedence to the one used by STM32CubeIDE.

Maybe you could check your PATH variable.

When I open a simple command shell, arm-none-eabi-gdb.exe is not found.

Best regards

Jocelyn