Skip to content

Commit e84e56b

Browse files
SenRamakri0xc0170
authored andcommitted
Add Error Decoding URL in error report
1 parent 56117a8 commit e84e56b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

platform/mbed_error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ static void print_error_report(mbed_error_ctx *ctx, const char *error_msg)
389389
threads = (osRtxThread_t *)&osRtxInfo.thread.idle;
390390
print_threads_info(threads);
391391
#endif
392-
392+
mbed_error_printf(MBED_CONF_PLATFORM_ERROR_DECODE_HTTP_URL_STR, ctx->error_status);
393393
mbed_error_printf("\n-- MbedOS Error Info --\n");
394394
}
395395
#endif //ifndef NDEBUG

platform/mbed_lib.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
"macro_name": "MBED_MEM_TRACING_ENABLED",
7070
"help": "Enable tracing of each memory call by invoking a callback on each memory operation. See mbed_mem_trace.h in the HAL API for more information",
7171
"value": false
72+
},
73+
"error-decode-http-url-str": {
74+
"help": "HTTP URL string for ARM Mbed-OS Error Decode microsite",
75+
"value": "\"\\nFor more info, visit: https:/\\/armmbed.github.io/mbedos-error/?error=0x%08X\""
7276
}
7377
},
7478
"target_overrides": {

0 commit comments

Comments
 (0)