Hello,
im using nrf52840 with sd140 and sdk17.0.1
in my project i have implemented a libuarte communication that works well usually, but rarely, and usually after days of running i get this error:
NRF_LIBUARTE_ASYNC_EVT_OVERRUN_ERROR
i do nothing to handle this error and continue regularly and after this i start getting jumbled strings from the libuarte.
meaning if i send something like this:
"
123456789
123456789
123456789
123456789
abcdefghijklmnopqrstvuwxyz
"
i might get something like this:
"
123456789\n
123456789\n
123456789\n
123456789\n
abcdefghijklm123456789\n
nopqrstvuwxyz
"
i have seen a similar question in the following link:
and it ended up in saying that it got resolved somehow with the timers, which i kind of suspected, but still don't know how to resolve.
i init the libuarte by:
NRF_LIBUARTE_ASYNC_DEFINE(xxxxx_libuarte0, 0, 1, 2, NRF_LIBUARTE_PERIPHERAL_NOT_USED, ATCMD_LIBUARTE0_RX_BUF_SIZE, ATCMD_LIBUARTE0_RX_BUF_CNT); // using uart0 ; TIMER1; RTC2
this problem is very rare which makes it difficult to debug.
please advise,
Regards,
Roy Barak
TechPack Lab