------------- Registers -- -------------
type DCRSR_HALTED_Field is
(
Register_0,
Register_1,
Register_2,
Register_3,
Register_4,
Register_5,
Register_6,
Register_7,
…,
Control_Faultmask_Basepri_Primask)
with Size => 5;
type DCRSR_Register is record
HALTED : DCRSR_HALTED_Field := Cortex_M_SVD.Debug.Register_0;
Reserved_5_15 : HAL.UInt11 := 16#0#;
REGWnR : DCRSR_REGWnR_Field := Cortex_M_SVD.Debug.Read;
Reserved_17_31 : HAL.UInt15 := 16#0#;
end record;
unspecified
Write-only.
unspecified
type DCRSR_REGWnR_Field is
(
Read,
Write)
with Size => 1;
Debug_Periph : aliased Debug_Peripheral
with Import, Address => Debug_Base;
type Debug_Peripheral is record
DFSR : aliased DFSR_Register;
DHCSR : aliased DHCSR_Cluster;
DCRSR : aliased DCRSR_Register;
DCRDR : aliased HAL.UInt32;
DEMCR : aliased DEMCR_Register;
end record;
Debug Halting Control and Status Register
Debug Core Register Selector Register: The DCRSR write-only register generates a handshake to the core to transfer the selected register to/from the DCRDR. The DHCSR S_REGRDY bit is cleared when the DCRSR is written, and remains clear until the core transaction completes. This register is only accessible from Debug state.
Debug Core Register Data Register
Debug Exception and Monitor Control Register
type DEMCR_Register is record
VC_CORERESET : Boolean := False;
Reserved_1_3 : HAL.UInt3 := 16#0#;
VC_MMERR : Boolean := False;
VC_NOCPERR : Boolean := False;
VC_CHKERR : Boolean := False;
VC_STATERR : Boolean := False;
VC_BUSERR : Boolean := False;
VC_INTERR : Boolean := False;
VC_HARDERR : Boolean := False;
Reserved_11_15 : HAL.UInt5 := 16#0#;
MON_EN : Boolean := False;
MON_PEND : Boolean := False;
MON_STEP : Boolean := False;
MON_REQ : Boolean := False;
Reserved_20_23 : HAL.UInt4 := 16#0#;
TRCENA : Boolean := False;
Reserved_25_31 : HAL.UInt7 := 16#0#;
end record;
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
type DFSR_Register is record
HALTED : Boolean := False;
BKPT : Boolean := False;
DWTTRAP : Boolean := False;
VCATCH : Boolean := False;
EXTERNAL : Boolean := False;
Reserved_5_31 : HAL.UInt27 := 16#0#;
end record;
BKPT instruction executed or breakpoint match in FPB.
Data Watchpoint and Trace trap. Indicates that the core halted due to at least one DWT trap event.
Vector catch triggered. Corresponding FSR will contain the primary cause of the exception.
An asynchronous exception generated due to the assertion of EDBGRQ.
unspecified
type DHCSR_Cluster
(Discriminent : DHCSR_Disc := Mode_1)
is record
case Discriminent is
when Mode_1 =>
Read : aliased Read_DHCSR_Register;
when Mode_2 =>
Write : aliased Write_DHCSR_Register;
end case;
end record;
type DHCSR_Disc is
(
Mode_1,
Mode_2);
type Read_DHCSR_Register is record
C_DEBUGGEN : Boolean;
C_HALT : Boolean;
C_STEP : Boolean;
C_MASKINTS : Boolean;
Reserved_4_4 : HAL.Bit;
C_SNAPSTALL : Boolean;
Reserved_6_15 : HAL.UInt10;
S_REGRDY : Boolean;
S_HALT : Boolean;
S_SLEEP : Boolean;
S_LOCKUP : Boolean;
Reserved_20_23 : HAL.UInt4;
S_RETIRE_ST : Boolean;
S_RESET_ST : Boolean;
Reserved_26_31 : HAL.UInt6;
end record;
Read-only.
Read-only.
Read-only.
unspecified
Read-only.
unspecified
Read-only.
Read-only.
Read-only.
Read-only.
unspecified
Read-only.
Read-only.
unspecified
type Write_DHCSR_Register is record
C_DEBUGGEN : Boolean := False;
C_HALT : Boolean := False;
C_STEP : Boolean := False;
C_MASKINTS : Boolean := False;
Reserved_4_4 : HAL.Bit := 16#0#;
C_SNAPSTALL : Boolean := False;
Reserved_6_15 : HAL.UInt10 := 16#0#;
S_RESET_ST : Write_DHCSR_S_RESET_ST_Field := 16#0#;
end record;
Write-only.
Write-only.
Write-only.
unspecified
Write-only.
unspecified
Write-only. Debug Key. The value 0xA05F must be written to enable write accesses to bits [15:0], otherwise the write access will be ignored. Read behavior of bits [31:16] is as listed below.
subtype Write_DHCSR_S_RESET_ST_Field is HAL.UInt16;