2020-12-23 07:05 AM
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)
2020-12-23 09:57 AM
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.
2020-12-28 12:29 AM
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.