You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
137
137
```C
138
138
//Reset the reboot error context
139
139
mbed_error_status_tmbed_reset_reboot_error_info()
140
140
```
141
141
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_tmbed_reset_reboot_count()
147
+
```
148
+
142
149
### Mechanism to report the error data after reboot
143
150
144
151
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