Data Watchpoint Trace
procedure Disable_DWT_Unit
Clears the trace enable bit (TRCENA) in the Debug Exception & Monitor Ctrl (DEMCR) register within the Cortex M Debug peripheral.
function DWT_Reset_Value return UInt32
Returns the value of the DWT.CTRL register as a word, for convenient comparison to the constants above.
function DWT_Unit_Enabled return Boolean
procedure Enable_DWT_Unit
Sets the trace enable bit (TRCENA) in the Debug Exception & Monitor Ctrl (DEMCR) register within the Cortex M Debug peripheral.
Four_Comparators_Watchpoints_And_Triggers : constant UInt32 :=
16#4000_0000#;
1325400064 dec
Four_Comparators_Watchpoints_Only : constant UInt32 :=
16#4F00_0000#;
1325400064 dec
No_DWT_Present : constant UInt32 := 0;
1325400064 dec
One_Comparator_Watchpoints : constant UInt32 :=
16#1F00_0000#;
1325400064 dec
Only_One_Comparator : constant UInt32 :=
16#1000_0000#;
1325400064 dec