cancel
Showing results for 
Search instead for 
Did you mean: 

stm32h7 dual core debugging

yonatan
Associate II

Hi all.

I am using STM32H747BIT6 with cm4 & cm7 cores but I am struggling with debugging my application.

I started a new STM32 project using the CubeIDE wizard and gave the ioc file to generate simple code.

Then I built the two projects (m4 & m7).

After that I clicked on "Run" to flash the cm7 with its program and then clicked on "Debug" to flash & debug the cm4.

After doing that I was expecting that I could click on "pause" and get the core running the while (1) loop.

However the application is "suspended" at address 0xa05f0000 with SIGTRAP

Even after resetting the HW I always stuck at this address.

Can someone please explain me whats going on here?

And, more important, how to configure the IDE that I can debug the cm4 without any problems?

Yonatan

 

P.S.

I followed the instructions on AN5361 and managed to make it to run

However I still can't set breakpoint on cm4 before the while(1) loop

How can I do that?

1 REPLY 1
Imen.D
ST Employee

Hello @yonatan ,

Is CM4 using Low power mode? if the CM4 is using Low power mode the debug will be lost.

In this case, modify your code to avoid putting the CM4 in Low power mode during debugging.

I advise you to have a look on the FAQ and follow the debugging configurations as described in the application notes: 

 

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen