How to output SWO trace?
Hi Karel,
you can switch SWO on with openocd. Make a new cfg file for openocd with a “tpiu config” command. Please read the openocd manual for details on this setting. Add your new cfg file to your launch configuration in eclipse. (see attached picture.) My cfg file looks like this:
# This is an ST NUCLEO F302R8 board with a single STM32F302R8T6 chip.
# http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF260004
source [find interface/stlink-v2-1.cfg ]
transport select hla_swd
source [find ./stm32f3x.cfg ]
reset_config srst_only
tpiu config external uart off 64000000 2000000
Regards,
nevets