SWV ITM Data Console on Dual Core M7 & M4 of STM32H755
I'm working on my first development projects on the STM32H755, which has two M7 and M4 cores. I need to display the printout on the ITM console while debugging. For example:
The main.c file of M7 has the following code:
.....
while(1) {
printf("Welcome Cortex-M7\n");
HAL_Delay(2000); }
.....The same is true in the main.c file of M4 with the following code:
.....
while(1) {
printf("Welcome Cortex-M4\n");
HAL_Delay(1000);}
.....Before debugging, I configured the ITM console with SWV on the STM32CubeIDE environment, following the YouTube video:
https://www.youtube.com/watch?v=Zwylu6ma9gU
https://www.youtube.com/watch?v=k3mXhPZSasw
Then I enabled SWD to both the M7 and M4 cores in the Debugger option with the same clock frequency (64.0 MHz), port 0 for the M7 and port 3 for the M4.
Based on this configuration, during debugging, I see the "Welcome Cortex-M7" character printed, so debugging for the M7 is working correctly. However, I don't see the "Welcome Cortex-M4" character printed on either port 0 or port 4. The SWD of M4 has the same configuration as the M7.
What's wrong?
Thanks for your support.
