Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How multi core - Newb questions
#1
I have managed to create new project from scratch for stm32h7, got both of them working. Now i want to setup simultaneous debugging for both cores. Please guide me in setting up the CM4 project to debug and how to do simultaneous debugging?
Reply
#2
  • Launch EBlink either from the context menu or via CLI. Note that it will start two GDB server instances on different ports (e.g., 2331 and 2332).
  • Launch EmBitz for the CM7 core and configure Remote Debugging to "localhost" on port 2331. Make sure to add "reset" under Reset → Remote Commands.
  • Launch another instance of EmBitz for the CM4 core and configure Remote Debugging to "localhost" on port 2332, again adding "reset" under Reset → Remote Commands.
  • You can now debug the two cores independently, as if they were separate MCUs.
  • If necessary, configure a trigger cell to reset both cores simultaneously (come back if you need help with this) or add extra reset commands in the reset script hook.

Note: I usually run it without synchronizing resets.


Example: https://www.embitz.org/downloads/stm32h7...master.zip

   
Reply
#3
(26-11-2025, 10:45 AM)embitz Wrote:
  • Launch EBlink either from the context menu or via CLI. Note that it will start two GDB server instances on different ports (e.g., 2331 and 2332).
  • Launch EmBitz for the CM7 core and configure Remote Debugging to "localhost" on port 2331. Make sure to add "reset" under Reset → Remote Commands.
  • Launch another instance of EmBitz for the CM4 core and configure Remote Debugging to "localhost" on port 2332, again adding "reset" under Reset → Remote Commands.
  • You can now debug the two cores independently, as if they were separate MCUs.
  • If necessary, configure a trigger cell to reset both cores simultaneously (come back if you need help with this) or add extra reset commands in the reset script hook.

Note: I usually run it without synchronizing resets.


Example: https://www.embitz.org/downloads/stm32h7...master.zip
Thank you admin for this guide, exactly what i wanted.  Big Grin Big Grin Big Grin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)