cancel
Showing results for 
Search instead for 
Did you mean: 

Debug a software build outside STM32CubeIDE

Gpeti
Senior II

I used STM32CubeIDE a long time ago but then switched to another IDE. Now for some reasons I try to use again STM32CubeIDE.

 

I want to keep my build system (command line based on makefile and arm-none-gcc) and use the IDE only for debug.

 

Environment is windows + STM32CubeIDE v1.10 (I know it's old but I am not admin of my machine).

I created a "STM32 project" and linked it to my source directory tree then I went to Debug Configurations > STM32 C/C++ Applications > New configuration.

 

The first problem I had is that it doesn"t find the project, so I had to browse directly for the .elf

Then I disabled autobuild

And I've got the message "unsupported build configurations, MCU ARM GCC required for debug".

 

ARM-GCC was not included in this version of STM32CubeIDE ?

Am I doing it wrong ?

1 REPLY 1
Ghofrane GSOURI
ST Employee

Hello @Gpeti 

Please try  to import your makefile  project  :File > Import > Existing Code as Makefile Project

GhofraneGSOURI_0-1763479323988.png

In this way STM32CubeIDE will treat your project as an STM32 ARM GCC project, even though you are building externally with your own Makefile. You can then set up a debug configuration pointing to your .elf file, and the IDE should allow you to debug without the previous error.

Please give this a try, and let me know the results. I’ll be here to assist further if you encounter any issues.

THX

Ghofrane

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.