stm32h7 dual core debugging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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?
- Labels:
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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:
- Unable to connect to STM32H7 devices - STMicroelectronics Community
- AN5286 STM32H7x5/x7 dual-core microcontroller debugging (In order to debug only CM4, please follow the described steps on "CM4-project configuration")
- AN5361 Getting started with projects based on dual-core STM32H7 microcontrollers in STM32CubeIDE
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-22 2:10 AM
Hi and thanks.
Is there a reason why the default project from the IDE putting the cm4 into sleep mode?
In there any downside to comment these lines (in cm4 and also in cm7 too)
Regarding the AN5361, it's answering on how to program the cm4 with the cm7 together
But it's still does not solve my issue - To get a BP in the code of the c4 before the main loop wo commenting out the low power modes.
