Cortex_M_SVD.Debug

Entities

Simple Types

Record Types

Subtypes

Variables

Description

------------- Registers -- -------------

DCRSR_HALTED_Field

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;
Enumeration Literal
Register_0
Register_1
Register_2
Register_3
Register_4
Register_5
Register_6
Register_7
Register_8
Register_9
Register_10
Register_11
Register_12
Current_Sp
Link_Rregister
Debug_Return_Address
XPsr
Msp
Psp
Control_Faultmask_Basepri_Primask

DCRSR_Register

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;
Record fields
HALTED

unspecified

Reserved_5_15

Write-only.

REGWnR

unspecified

Reserved_17_31

DCRSR_REGWnR_Field

type DCRSR_REGWnR_Field is
  (
   Read,
   Write)
  with Size => 1;
Enumeration Literal
Read
Write

Debug_Periph

Debug_Periph : aliased Debug_Peripheral
  with Import, Address => Debug_Base;

Debug_Peripheral

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;
Record fields
DFSR

Debug Halting Control and Status Register

DHCSR

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.

DCRSR

Debug Core Register Data Register

DCRDR

Debug Exception and Monitor Control Register

DEMCR

DEMCR_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;
Record fields
VC_CORERESET

unspecified

Reserved_1_3

unspecified

VC_MMERR

unspecified

VC_NOCPERR

unspecified

VC_CHKERR

unspecified

VC_STATERR

unspecified

VC_BUSERR

unspecified

VC_INTERR

unspecified

VC_HARDERR

unspecified

Reserved_11_15

unspecified

MON_EN

unspecified

MON_PEND

unspecified

MON_STEP

unspecified

MON_REQ

unspecified

Reserved_20_23

unspecified

TRCENA

unspecified

Reserved_25_31

DFSR_Register

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;
Record fields
HALTED

BKPT instruction executed or breakpoint match in FPB.

BKPT

Data Watchpoint and Trace trap. Indicates that the core halted due to at least one DWT trap event.

DWTTRAP

Vector catch triggered. Corresponding FSR will contain the primary cause of the exception.

VCATCH

An asynchronous exception generated due to the assertion of EDBGRQ.

EXTERNAL

unspecified

Reserved_5_31

DHCSR_Cluster

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;
Record fields
Discriminent
Read
Write

DHCSR_Disc

type DHCSR_Disc is
  (
   Mode_1,
   Mode_2);
Enumeration Literal
Mode_1
Mode_2

Read_DHCSR_Register

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;
Record fields
C_DEBUGGEN

Read-only.

C_HALT

Read-only.

C_STEP

Read-only.

C_MASKINTS

unspecified

Reserved_4_4

Read-only.

C_SNAPSTALL

unspecified

Reserved_6_15

Read-only.

S_REGRDY

Read-only.

S_HALT

Read-only.

S_SLEEP

Read-only.

S_LOCKUP

unspecified

Reserved_20_23

Read-only.

S_RETIRE_ST

Read-only.

S_RESET_ST

unspecified

Reserved_26_31

Write_DHCSR_Register

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;
Record fields
C_DEBUGGEN

Write-only.

C_HALT

Write-only.

C_STEP

Write-only.

C_MASKINTS

unspecified

Reserved_4_4

Write-only.

C_SNAPSTALL

unspecified

Reserved_6_15

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.

S_RESET_ST

Write_DHCSR_S_RESET_ST_Field

subtype Write_DHCSR_S_RESET_ST_Field is HAL.UInt16;