Cortex_M.DWT

Entities

Constants

Subprograms

Description

Data Watchpoint Trace

Disable_DWT_Unit

procedure Disable_DWT_Unit

Clears the trace enable bit (TRCENA) in the Debug Exception & Monitor Ctrl (DEMCR) register within the Cortex M Debug peripheral.

DWT_Reset_Value

function DWT_Reset_Value return UInt32

Returns the value of the DWT.CTRL register as a word, for convenient comparison to the constants above.

Return Value

DWT_Unit_Enabled

function DWT_Unit_Enabled return Boolean
Return Value

Enable_DWT_Unit

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

Four_Comparators_Watchpoints_And_Triggers : constant UInt32 :=
   16#4000_0000#;

1325400064 dec

Four_Comparators_Watchpoints_Only

Four_Comparators_Watchpoints_Only         : constant UInt32 :=
   16#4F00_0000#;

1325400064 dec

No_DWT_Present

No_DWT_Present                            : constant UInt32 := 0;

1325400064 dec

One_Comparator_Watchpoints

One_Comparator_Watchpoints                : constant UInt32 :=
   16#1F00_0000#;

1325400064 dec

Only_One_Comparator

Only_One_Comparator                       : constant UInt32 :=
   16#1000_0000#;

1325400064 dec