2025-01-12 11:29 PM - last edited on 2025-01-13 12:24 AM by Imen.D
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?
2025-01-13 12:22 AM - edited 2025-01-13 12:22 AM
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: