Source Viewer
QT
RACE
-
U
SER
M
ANUAL
© 2018 PDQLogic Ltd.
QTrace User Manual Rev 1.01
Page 19
Figure 16 Source view bookmark list
The following features are not specifically related to the source viewer but their settings are accessed
via tabs in the Settings / Status window in the source viewer and so are detailed here.
3.3
ITM debugging
The trace interface allows a very convenient, low overhead, way of passing debug data from a target
application to the QTrace Analyser for viewing in a debug window. This is achieved in the firmware
simply writing bytes to a specific memory location, effectively creating a debug channel. It is possible to
redirect the output of standard
printf
style library functions to this channel by implementing a custom
_write() function. This is typically implemented as a stub function in a file usually named syscalls.c. For
further details of writing to the ITM debug port, refer to the example C code installed with the QTrace
Analyser here:
C:\Users\Public\PDQLogic\QTraceAnalyser\Firmware\Examples\ITM
The ITM debug window is shown / hidden by from the menu option
View
ITM Viewer…
or via the
toolbar:
The debug window below shows output from the STM32-Eval demonstrator detailed in Appendix B: