2024-01-29 04:07 PM
Hello, STM32 community,
I am currently working on a project using the STM32H755ZI-Q Nucleo board, and I've encountered a perplexing issue with the M4 core during debugging. I have written a basic code to toggle two onboard LEDs, and while the code seems to work as expected, the M4 core gets stuck at "Waiting for Debugger Connection" during debugging. Strangely, I can still add breakpoints in the M4 code and pause the LED toggling successfully. The project files are attached. Please can someone help me with resolving the debugging issue for M4? If you find this post irrelevant feel free to delete it.
Solutions I tried:
Snaps from my Cube IDE:
Solved! Go to Solution.
2024-03-16 06:55 AM - edited 2024-03-16 06:57 AM
Hello,
Not easy to determine the source of the error but from the project you've already posted at the beginning:
I see two issues:
1- You need to set "Download" in CM4 debug configuration as following:
2- You need to set the reset behavior at least with: Connect under reset:
PS:
1- debugging Dual core is a bit tricky mainly when CM4 is using low power mode:
HAL_PWREx_EnterSTOPMode(PWR_MAINREGULATOR_ON, PWR_STOPENTRY_WFE, PWR_D2_DOMAIN);
So if you need to debug CM4 side without issue, comment this line.
2- You can use this example for your reference: https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/NUCLEO-H745ZI-Q/Examples/GPIO/GPIO_EXTI
2024-02-01 12:01 PM
Any Help?
2024-02-01 12:34 PM - edited 2024-02-01 12:34 PM
Hello @shubham_patayane and welcome to the Community :)
Did you used the debugger pins for other purpose? Make sure that your debug pins are Free.
I advise you check this article: How to solve debugger connection issues?
Check also this AN4989 (in sections: 9 Dual-Core microcontrollers debugging, 3. Low-power case) and the AN5361 which contains a checklist helping to avoid the most debug problems.
2024-02-07 04:26 PM - edited 2024-02-07 04:38 PM
@Imen.D Tried it all today. But getting the same prob! Left the M7 core running and tried to open the debugger for M4 but it's showing the same error. Is there any other thing I should try? And it sometimes comes and pops up this page (screenshot 2).
2024-03-16 06:20 AM
@Imen.D Any help regarding this new error? M7 core works fine but I am not getting any response from M4.
2024-03-16 06:55 AM - edited 2024-03-16 06:57 AM
Hello,
Not easy to determine the source of the error but from the project you've already posted at the beginning:
I see two issues:
1- You need to set "Download" in CM4 debug configuration as following:
2- You need to set the reset behavior at least with: Connect under reset:
PS:
1- debugging Dual core is a bit tricky mainly when CM4 is using low power mode:
HAL_PWREx_EnterSTOPMode(PWR_MAINREGULATOR_ON, PWR_STOPENTRY_WFE, PWR_D2_DOMAIN);
So if you need to debug CM4 side without issue, comment this line.
2- You can use this example for your reference: https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/NUCLEO-H745ZI-Q/Examples/GPIO/GPIO_EXTI
2024-03-16 01:27 PM - edited 2024-03-16 01:28 PM
Thanks this works. @SofLit