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
Hi @Goliath86 this two functions are not enabled by default if you need to use them you have to rebuild libmbed.a and enable MBED_CONF_PLATFORM_ERROR_HIST_ENABLED
Hi,
how can I access the functions mbed_get_error_hist_count() and mbed_get_error_hist_info()? I can't compile if I use it
This is the function I use to try to get the errors history:
void getErrorInfoFromHist() { mbed_error_ctx hist_error_ctx; int numEntriesInHist = mbed_get_error_hist_count(); for (int i = 0; i < numEntriesInHist; i++) { mbed_get_error_hist_info(i, &hist_error_ctx); printf(MBED_GET_ERROR_CODE(hist_error_ctx.error_status)); } mbed_clear_all_errors(); }
But when I compile I get:
undefined reference to mbed_get_error_hist_count
undefined reference to mbed_get_error_hist_info
Thank you
The text was updated successfully, but these errors were encountered: