cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H757 SWO Debug Error

CWadd
Associate

I get the following error when trying to debug an STM32H757 with SWO enabled. 

CWadd_0-1730695812762.png

Failed to enable SWV configuration.

Failed to execute MI command:

-data-write-memory 0x5c003010 x 4 0x77

etc...

It would seem the debugger (ST-link v2) is not able to read the SWO and DBGMCU registers.

With the same debug configuration and code, SWO works on H747 hardware, so I'm wondering if there is an SWO difference between these two micros that is not obvious or documented.

Has anyone come across this issue before and has an idea of how to fix it?

Thanks

1 REPLY 1
Imen.D
ST Employee

Hello @CWadd ,

I recommend you follow the steps and tips in this application note AN4989 which help you to overcome some of the most frequent issues faced during debug setting and operation.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen