Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

UART and Timer conflict

I am using SDK12 with nrf52832.  UART working fine (with FIFO)  and Timer1 also works.

I wanted to set a 1 minute timeout around the UART dialog to handle disconnection etc. 

However, if I enable Timer1 when waiting for a response from the UART the timer responds as expected but the responses from the UART no longer occur.  Specifically, the UART's event handler is no longer called.

This looks like some kind of a conflict but I'm not sure where and why?

Thx.

Parents Reply
  • I can't find the sdk_config.h file for your project. Is it included? Also, can you check your APP_ERROR_CHECK(...)s? Do any of them receive an input that is not NRF_SUCCESS?

     

    You can check this by enabling DEBUG in your preprocessor defines, and then set a breakpoint on line 48 in app_error.c. Check if the breakpoint is hit sometime during debug.

     

    Best regards,

    Edvin

Children
Related