NUS UART RX Data Loss Solutions and Tips

Hey everyone, I’ve been working on a project with the NCS v2.7.0 and ran into an issue where the UART RX couldn’t receive all the data. It was pretty frustrating, especially when sending 240-byte packets every 100ms. Sometimes, I’d lose a few bytes here and there, which really threw off my project timeline. :frowning:

I started by looking through some threads and found a couple of suggestions that seemed promising. One was modifying the peripheral and central UART configurations based on a previous thread about NUS throughput. Another was adding specific UART settings like CONFIG_UART_0_NRF_HW_ASYNC=y and CONFIG_UART_0_NRF_HW_ASYNC_TIMER=1. I attached my updated projects for reference, but I’m still not entirely sure if I’ve got everything right. :thinking:

After a few tweaks, things started working more smoothly, though I’m still testing to see if the data loss is completely resolved. If anyone has other tips or has faced similar issues, I’d love to hear your experiences! Let’s keep the brainstorming going and help each other out. :grinning:

Cheers,
[Your Name]