diff --git a/docs/design-documents/platform/crash-reporting/crash_reporting.md b/docs/design-documents/platform/crash-reporting/crash_reporting.md index 05fa7b1b06..fc856c7aee 100644 --- a/docs/design-documents/platform/crash-reporting/crash_reporting.md +++ b/docs/design-documents/platform/crash-reporting/crash_reporting.md @@ -133,12 +133,19 @@ mbed_error_status_t mbed_get_reboot_fault_context (mbed_fault_context_t *fault_c ``` The below API can be called by application to reset the error context captured in the Crash-Report RAM. -The function should MBED_ERROR_NOT_FOUND if there is no error context currently stored. +The function should return MBED_ERROR_NOT_FOUND if there is no error context currently stored. ```C //Reset the reboot error context mbed_error_status_t mbed_reset_reboot_error_info() ``` +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. +The function should return MBED_ERROR_NOT_FOUND if there is no error context currently stored. +```C +//Reset the reboot error context +mbed_error_status_t mbed_reset_reboot_count() +``` + ### Mechanism to report the error data after reboot 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.