Skip to main content
Senior
June 5, 2025
Question

Can't set breakpoint on CM4 in two-core setup

  • June 5, 2025
  • 3 replies
  • 471 views

We've got a STM32H747IGT6 which is the two-core version (one M4, one M7).  I've got GDB servers running on ports 61238 (CM4) and 61234 (CM7) and then running two instances of GDB (one for each server).  

GDB says it's happily connected, and I can load code and inspect memory on both cores but when I set a breakpoint on the M4, gdb says "Note: automatically using hardware breakpoints for read-only addresses." and the breakpoint never fires.  On the M7, gdb doesn't give that same warning and breakpoints actually work.

Is this a known limitation of the M4, or is it something I've got set up wrong?

 

3 replies

cbcooperAuthor
Senior
June 5, 2025

(note - this is an inherited project and it's not using STM32CubeIDE)

cbcooperAuthor
Senior
June 12, 2025

ping

Amel NASRI
Technical Moderator
July 4, 2025

Hi @cbcooper ,

Please ensure that you follow the steps described in the Debugging section of AN5361 Getting started with projects based on dual-core STM32H7 microcontrollers in STM32CubeIDE.

-Amel

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.
cbcooperAuthor
Senior
July 10, 2025

The Debugging section of AN5361 tells how to set up debugging "in STM32CubeIDE" and as I said previously, "this is an inherited project and it's not using STM32CubeIDE"

mƎALLEm
Technical Moderator
July 10, 2025

@cbcooper wrote:

"this is an inherited project and it's not using STM32CubeIDE"


So, what are you using then?

"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."