Skip to content

Commit cbd784f

Browse files
author
Amanda Butler
authored
Merge pull request #793 from SenRamakri/sen_CrashDocUpdate
Fault handler doc update
2 parents 609bf84 + 648e7ac commit cbd784f

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

docs/tutorials/debug/debug_fault_exception.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ 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 the Mbed OS error handler when an exception happens and prints out the error information, as well.
19+
20+
Please see the [Error API reference](/docs/development/apis/error-handling.html) for more about error information.
1921

2022
```
2123
++ MbedOS Fault Handler ++
@@ -54,18 +56,18 @@ Mode : Thread - Processor mode at the time of exception
5456
Priv : Privileged - Privilege level at the time of exception
5557
Stack: PSP - Stack pointer in use at the time of exception
5658
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-
6859
-- MbedOS Fault Handler --
60+
61+
62+
++ MbedOS Error Info ++
63+
Error Status: 0x80FF013D Code: 317 Module: 255
64+
Error Message: Fault exception
65+
Location: 0x5B25
66+
Error Value: 0x5946
67+
Current Thread: Id: 0x20001E80 Entry: 0x5D05 StackSize: 0x1000 StackMem: 0x20000E80 SP: 0x2002FF90
68+
For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x80FF013D
69+
-- MbedOS Error Info --
70+
6971
```
7072

7173
### Analyzing crash dump

0 commit comments

Comments
 (0)