2024-09-20 06:48 AM
Hi everyone,
I'm facing an issue with debugging STM32 projects in STM32CubeIDE. I'm using a MacBook Pro with an M3 ARM CPU and debugging an STM32 project using the ST-Link GDB server. When I manually run the ST-Link GDB server from the terminal with the appropriate command, everything works fine. However, when I attempt to start the debugging session directly from the Debug button in STM32CubeIDE, it doesn't work.
When I run the following command in the external terminal, the GDB server starts properly, and I'm able to debug the application. I use then remote GDB server (localhost with default port)
This starts the GDB server and loads my application without any issues.
However, when I click the Debug button in STM32CubeIDE to launch the debugging session, it fails to work. The exact behavior is that the IDE either does not start the GDB server correctly or there’s a mismatch in the way the debugger is configured internally. I've tried the following approaches:
Any advice on how to resolve this issue so I can debug directly from STM32CubeIDE would be greatly appreciated!
Thanks in advance for your help.
Best regards,
Solved! Go to Solution.
2024-09-20 07:36 AM
2024-09-20 07:36 AM
2024-09-25 06:17 AM
Hello @Bouzid-s
First thanks for posting.
As @Andrew Neil asked, are you using the macOS 15?
Also could you provide the complete debug log?
BR,
Semer.
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.
2024-09-25 07:56 AM
Yes. Thanks ! Runing CubeIDE as sudoer should solve my problem for now.
2024-09-29 04:24 PM
Try what emrys57 did on this link:
and it seems to work the debug session, so check it out!
Kind regards