cancel
Showing results for 
Search instead for 
Did you mean: 

Trace debug (SWO) on STM32H745 with IAR or without IAR

FraN
Associate

hi, I have already seen many things on the SWO Trace for STM32H745XI but I can't find something detailed to configure on IAR environment and make it work. Can someone tell me the registers to be set and various tricks to use this type of debugging?

(printf or ITM)

2 REPLIES 2

The old ST-LINK Utilities had a SWV console, one was recently added to Cube STM32 Programmer

The SWV / ITM interface routines are not IAR specific, how you plumb them into the printf/putchar type interfaces will likely be covered in generic "retargeting" documentation.

For SWV to work both sides need a clear and consistent understanding of the clocking speeds of the core, and the debug interface.

Code to bring up the H7 SWV has been covered here before, at least from the CM7 side.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

thanks for the time dedicated to me.

I understand, but I would like to ask you, if possible, an explicit code or a detailed procedure to do a good debug with this CPU. I need to activate and use Trace SWO or ETM mode on STM32H745XI.

thanks in advance for the help.