78
11100B–ATARM–31-Jul-12
SAM4S Series [Preliminary]
• A fault occurs and the handler for that fault is not enabled.
If a bus fault occurs during a stack push when entering a bus fault handler, the bus fault does not
escalate to a hard fault. This means that if a corrupted stack causes a fault, the fault handler
executes even though the stack push for the handler failed. The fault handler operates but the
stack contents are corrupted.
Note:
Only Reset and NMI can preempt the fixed priority hard fault. A hard fault can preempt any excep-
tion other than Reset, NMI, or another hard fault.
Fault Status Registers and Fault Address Registers
The fault status registers indicate the cause of a fault. For bus faults and memory management
faults, the fault address register indicates the address accessed by the operation that caused
the fault, as shown in
Lockup
The processor enters a lockup state if a hard fault occurs when executing the NMI or hard fault
handlers. When the processor is in lockup state, it does not execute any instructions. The pro-
cessor remains in lockup state until either:
• it is reset
• an NMI occurs
• it is halted by a debugger.
Note:
If the lockup state occurs from the NMI handler, a subsequent NMI does not cause the processor
to leave the lockup state.
Table 11-12. Fault Status and Fault Address Registers
Handler
Status Register
Name
Address
Register Name
Register Description
Hard fault
SCB_HFSR
-
Memory
management fault
MMFSR
SCB_MMFAR
“MMFSR: Memory Management Fault
Status Subregister”
“MemManage Fault Address Register”
Bus fault
BFSR
SCB_BFAR
“BFSR: Bus Fault Status Subregister”
Usage fault
UFSR
-
Summary of Contents for SAM4S Series
Page 44: ...44 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 412: ...412 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 1105: ...1105 11100B ATARM 31 Jul 12 SAM4S Series Preliminary ...
Page 1143: ...1143 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 4 64 lead LQFP Package Drawing ...
Page 1145: ...1145 11100B ATARM 31 Jul 12 SAM4S Series Preliminary Figure 43 5 64 lead QFN Package Drawing ...