Orbcode Trace functions library
|
DWT configuration. More...
#include <dwt.h>
Public Attributes | |
bool | FoldedInstructionCounterEvent |
Enable folded instruction event counter. | |
bool | LSUCounterEvent |
Enable load/store event counter. | |
bool | SleepCounterEvent |
Enable sleep event counter. | |
bool | ExceptionOverheadCounterEvent |
Enable exception overhead counter event. | |
bool | CPICounterEvent |
Enable Cycles-per-Instruction counter event. | |
bool | ExceptionTrace |
Enable exception entry/exit trace. More... | |
bool | PCSampling |
Enable PC sampling. More... | |
DWTSyncTap | SyncTap |
Specifies interval for ITM synchronization and timestamp packets. | |
DWTCycleTap | CycleTap |
Specifies divider for counter used in PC sampling and event counters. | |
uint8_t | SamplingPrescaler |
Defines prescaler for PC sampling. More... | |
DWT configuration.
Check with vendor documetation which capabilities are available.
See ARMv7-M Architecture Reference Manual, section C1.8.7 "Control register, DWT_CTRL" for details
bool DWTOptions::ExceptionTrace |
Enable exception entry/exit trace.
Generates packet for each exception entry and exit
bool DWTOptions::PCSampling |
Enable PC sampling.
Periodically generates packet with current program counter. Interval defined by DWTOptions::CycleTap
uint8_t DWTOptions::SamplingPrescaler |
Defines prescaler for PC sampling.
Range: 1 - 16
\(Frequency = \frac{POSTCNTClockRate}{SamplingPrescaler}\)