STM32H747 dual core debug using Keil and STLink

Hi everyone,

I have a multiprokect workspace in Keil uVision 5.43, for the STM32h747. I have some projects that have the double configuration CM4/CM7, a project for the CM4 and a project for the CM7.
Following the Application Note, I can debug easily the CM7 core and, opening a second uVision instance, I can see the real time value of global variables of the CM4 core. (I use the STLINK-V3SET)

But, most of the times, breakpoints on the CM4 core are not hit, also if I can see through the log that the code has been executed.

Someone have some hint?
I can share projects debug configuration if needed.

Thanks,

regards

Arianna

  • The way using .cprj in that application note (apnt_338) is a bit outdated. I’ve attached an dual-core example, which works fine on my side, from the STM32H747I-EVAL_BSP pack for your reference. I would highly recommend trying it out and exploring how it works, then migrating your own example into this project environment.

    Please note that in this example, the CM7 core boots the CM4 core based on one of the startup files system_stm32h7xx_dualcore_boot_cm4_cm7.c. As a result, when debugging the CM4 core, you need to attach the debug session using the connection mode “without stop”.

    I hope this helps!

    DualCore.zip