Skip to content

Commit a87043f

Browse files
committed
Add function to reset the reboot count
1 parent 3ffa78e commit a87043f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/design-documents/platform/crash-reporting/crash_reporting.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,19 @@ mbed_error_status_t mbed_get_reboot_fault_context (mbed_fault_context_t *fault_c
133133
```
134134

135135
The below API can be called by application to reset the error context captured in the Crash-Report RAM.
136-
The function should MBED_ERROR_NOT_FOUND if there is no error context currently stored.
136+
The function should return MBED_ERROR_NOT_FOUND if there is no error context currently stored.
137137
```C
138138
//Reset the reboot error context
139139
mbed_error_status_t mbed_reset_reboot_error_info()
140140
```
141141

142+
The below API can be called by application to reset(to be set to 0) the error reboot count captured in the Crash-Report RAM.
143+
The function should return MBED_ERROR_NOT_FOUND if there is no error context currently stored.
144+
```C
145+
//Reset the reboot error context
146+
mbed_error_status_t mbed_reset_reboot_count()
147+
```
148+
142149
### Mechanism to report the error data after reboot
143150

144151
MbedOS initialization sequence should check if the reboot is caused by a fatal error and should report the same to the application using callback mechanism. The system may also print this to terminal if enabled.

0 commit comments

Comments
 (0)