cancel
Showing results for 
Search instead for 
Did you mean: 

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

cbcooper
Senior

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?

 

6 REPLIES 6
cbcooper
Senior

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

cbcooper
Senior

ping

Amel NASRI
ST Employee

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.

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"


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

As I said in my initial post "I've got GDB servers running on ports 61238 (CM4) and 61234 (CM7) and then running two instances of GDB (one for each server)."  To be precise, I'm running ST-LINK_gdbserver and arm-none-eabi-gdb (manually, from the command line)