This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

app_error_handler_bare with NRF_SUCCESS

Hi i am debugging my code and i don't understand why i end up in a "fatal error" even if my function is returning NRF_SUCCESS.

My errors are so defined: 

and in my debug window i have: 

Where i can see that the nrfx_twim_init is successful. When i enter in the APP_CHECK_ERROR, however, i have the problem, arriving at:

and 

arriving at the NVIC_SystemReset() of the app_error_weak.c file.

I have commented the  NRF_BREAKPOINT_COND and added DEBUG in my preprocessor symbols, as suggested in other posts.

I am a novice in debugging and i cannot understan if the error is about the APP_ERROR_CHECK or i am missing something? 

thanks in advance,

polimarte

Related