Skip to main content
FraN
Associate
December 23, 2020
Question

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

  • December 23, 2020
  • 1 reply
  • 1405 views

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)

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
December 23, 2020

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 VenmoUp vote any posts that you find helpful, it shows what's working..
FraN
FraNAuthor
Associate
December 28, 2020

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.