cancel
Showing results for 
Search instead for 
Did you mean: 

issue with semihosting after updating CubeIDE

DPiór.1
Associate III

I updated CubeIDE to 2.0.0 (now CubeMX is separated) on MacOS. I started new project and want to set semihosting for debug. I did the configuration as I used to do in previous projects, but now when I try to run, I receive following error:

Info : [STM32WB5MMGHx.cpu] Cortex-M4 r0p1 processor detected
Info : [STM32WB5MMGHx.cpu] target has 6 breakpoints, 4 watchpoints
Info : [STM32WB5MMGHx.cpu] Examination succeed
Info : starting gdb server for STM32WB5MMGHx.cpu on 3333
Info : Listening on port 3333 for gdb connections
semihosting is enabled
semihosting fileio is enabled
Error: The 'gdb_report_data_abort' command must be used before 'init'.

Below my configuration of OpenOCD:
Screenshot 2026-01-14 at 07.40.28.png

 

Where should I put the gdb_report_data_abort command? 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Mahmoud Ben Romdhane
ST Employee

Hello @DPiór.1 

Let me thank you for posting.

I suggest that you take a look at this Knowledge Article

It mentions how to use semihosting with STM32CubeIDE and STM32.

Thanks

Mahmoud

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.

View solution in original post

2 REPLIES 2
Mahmoud Ben Romdhane
ST Employee

Hello @DPiór.1 

Let me thank you for posting.

I suggest that you take a look at this Knowledge Article

It mentions how to use semihosting with STM32CubeIDE and STM32.

Thanks

Mahmoud

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.

DPiór.1
Associate III

Thanks @Mahmoud Ben Romdhane 
I already read this article before. But this time I read it carefully, doing everything exactly as in the article and removing any configuration that I used to have in the past. And it works! 
The only additional change that I had to do in my case, was to change reset mode to "software system reset".