![Texas Instruments SimpleLink MSP432P4 Series Скачать руководство пользователя страница 149](http://html1.mh-extra.com/html/texas-instruments/simplelink-msp432p4-series/simplelink-msp432p4-series_technical-reference-manual_1095579149.webp)
Functional Peripherals Registers
149
SLAU356I – March 2015 – Revised June 2019
Copyright © 2015–2019, Texas Instruments Incorporated
Cortex-M4F Peripherals
2.4.5.11 CFSR Register (Offset = D28h) [reset = 00000000h]
CFSR is shown in
and described in
.
Configurable Fault Status Registers. Use the three Configurable Fault Status Registers to obtain
information about local faults. These registers include: Memory Manage Fault Status Register
(0xE000ED28), Bus Fault Status Register (0xE000ED29), Usage Fault Status Register (0xE000ED2A).
The flags in these registers indicate the causes of local faults. Multiple flags can be set if more than one
fault occurs. These register are read/write-clear. This means that they can be read normally, but writing a
1 to any bit clears that bit.
Figure 2-61. CFSR Register
31
30
29
28
27
26
25
24
RESERVED
DIVBYZERO
UNALIGNED
R/W-0h
R/W-0h
R/W-0h
23
22
21
20
19
18
17
16
RESERVED
NOCP
INVPC
INVSTATE
UNDEFINSTR
R/W-0h
R/W-0h
R/W-0h
R/W-0h
R/W-0h
15
14
13
12
11
10
9
8
BFARVALID
RESERVED
LSPERR
STKERR
UNSTKERR
IMPRECISERR
PRECISERR
IBUSERR
R/W-0h
R/W-0h
R/W-0h
R/W-0h
R/W-0h
R/W-0h
R/W-0h
R/W-0h
7
6
5
4
3
2
1
0
MMARVALID
RESERVED
MLSPERR
MSTKERR
MUNSTKERR
RESERVED
DACCVIOL
IACCVIOL
R/W-0h
R/W-0h
R/W-0h
R/W-0h
R/W-0h
R/W-0h
R/W-0h
R/W-0h
Table 2-69. CFSR Register Field Descriptions
Bit
Field
Type
Reset
Description
31-26
RESERVED
R/W
0h
25
DIVBYZERO
R/W
0h
When DIV_0_TRP (see Configuration Control Register) is enabled
and an SDIV or UDIV instruction is used with a divisor of 0, this fault
occurs The instruction is executed and the return PC points to it. If
DIV_0_TRP is not set, then the divide returns a quotient of 0.
24
UNALIGNED
R/W
0h
When UNALIGN_TRP is enabled (see Configuration Control
Register), and there is an attempt to make an unaligned memory
access, then this fault occurs. Unaligned LDM/STM/LDRD/STRD
instructions always fault irrespective of the setting of
UNALIGN_TRP.
23-20
RESERVED
R/W
0h
19
NOCP
R/W
0h
Attempt to use a coprocessor instruction. The processor does not
support coprocessor instructions.
18
INVPC
R/W
0h
Attempt to load EXC_RETURN into PC illegally. Invalid instruction,
invalid context, invalid value. The return PC points to the instruction
that tried to set the PC.
17
INVSTATE
R/W
0h
Invalid combination of EPSR and instruction, for reasons other than
UNDEFINED instruction. Return PC points to faulting instruction,
with the invalid state.
16
UNDEFINSTR
R/W
0h
The UNDEFINSTR flag is set when the processor attempts to
execute an undefined instruction. This is an instruction that the
processor cannot decode. The return PC points to the undefined
instruction.
15
BFARVALID
R/W
0h
This bit is set if the Bus Fault Address Register (BFAR) contains a
valid address. This is true after a bus fault where the address is
known. Other faults can clear this bit, such as a Mem Manage fault
occurring later. If a Bus fault occurs that is escalated to a Hard Fault
because of priority, the Hard Fault handler must clear this bit. This
prevents problems if returning to a stacked active Bus fault handler
whose BFAR value has been overwritten.
14
RESERVED
R/W
0h