Skip to content

Commit a98d02d

Browse files
committed
Fault handler doc update
1 parent 6313f89 commit a98d02d

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

docs/tutorials/debug/debug_fault_exception.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ Please look at the **Technical Reference Manual** and **Arm Architecture Referen
1515

1616
For example, Cortex-M0/M0+ processors (or any ARMv6M processors) do not have MemManage, BusFault and UsageFault exceptions implemented. In those cases, all exceptions are reported as HardFault exception. For ARMv7M processors, MemManage, BusFault and UsageFault exceptions trigger only if they are enabled in System Handler Control and State Register (**SHCSR**).
1717

18-
Below is an example of the crash dump (with a description of registers) that the Mbed OS fault exception handler generates.
18+
Below is an example of the crash dump (with a description of registers) that the Mbed OS fault exception handler generates. Note that the system also invokes Mbed-OS error handler when an exception happens, and prints out the error info as well.
19+
See [Error](https://os.mbed.com/docs/latest/apis/error-handling.html) documentation for more info on error info.
1920

2021
```
2122
++ MbedOS Fault Handler ++
@@ -54,18 +55,18 @@ Mode : Thread - Processor mode at the time of exception
5455
Priv : Privileged - Privilege level at the time of exception
5556
Stack: PSP - Stack pointer in use at the time of exception
5657
57-
Thread Info:
58-
Current:
59-
State: 00000002 EntryFn: 00002595 Stack Size: 00001000 Mem: 20001EA0 SP: 20002E60
60-
Next:
61-
State: 00000002 EntryFn: 00002595 Stack Size: 00001000 Mem: 20001EA0 SP: 20002E60
62-
Wait Threads:
63-
State: 00000083 EntryFn: 00004205 Stack Size: 00000300 Mem: 20000E18 SP: 200010B0
64-
Delay Threads:
65-
Idle Thread:
66-
State: 00000001 EntryFn: 00002715 Stack Size: 00000200 Mem: 20001118 SP: 200012D8
67-
6858
-- MbedOS Fault Handler --
59+
60+
61+
++ MbedOS Error Info ++
62+
Error Status: 0x80FF013D Code: 317 Module: 255
63+
Error Message: Fault exception
64+
Location: 0x5B25
65+
Error Value: 0x5946
66+
Current Thread: Id: 0x20001E80 Entry: 0x5D05 StackSize: 0x1000 StackMem: 0x20000E80 SP: 0x2002FF90
67+
For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x80FF013D
68+
-- MbedOS Error Info --
69+
6970
```
7071

7172
### Analyzing crash dump

0 commit comments

Comments
 (0)