Orbcode Trace functions library
|
Modules | |
Data Watchpoint & Trace Unit | |
Use DWT to perform PC sampling and trace memory accesses. | |
Instrumentation Trace Macrocell | |
Configure ITM for passthrough of DWT messages and user-defined output through stimulus ports. | |
Trace Port Interface Unit | |
Configure how trace data is transmitted from MCU. | |
This library provides set of low-level functions for setting up tracing components of ARM Cortex-M microcontrollers directly with code.
Header files included in this library depend on CMSIS core_cmXX.h
header files providing necessary type definitions and macros. They are however dependant on vendor specific information and cannot be used standalone (e.g. IRQn_Type
is required to be defined before including core_cmXX.h
). Therefore CMSIS headers are not included in this library and it is up to user to ensure proper include order:
Before trace components can be used, they need to be configured which invovles:
Once trace components are configured they can be used during normal program operations (e.g. outputing data via ITM stimulus ports) or will automatically output data (like DWT PC sampling, watchpoints or ETM instruction trace).
Refer to individual modules for details how to configure and use each component.