console_getline to read data continously without delays.

Hi
I'm working with nrf5340 dk. I have a serial app (on windows) that is doing serial write continuously to the nrf5340 dk but it is not capturing all the data that I'm sending. I need an approach to continuously receive data over serial communication. Which method or function will be best for it. I was tried using the uart_poll_in() but I'm not able to implement it properly. suggest me some examples if available.

Parents Reply
  • Hi,

    I am sorry for the incorrect link, I have updated the post. What I wanted to point to a was these configuration options:

    CONFIG_UART_1_NRF_HW_ASYNC=y
    CONFIG_UART_1_NRF_HW_ASYNC_TIMER=1

    For reference, if you use another UART instance and have another timer instance available, you adjust the numbers accordingly, for instance it could be like this instead:

    CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
    CONFIG_UART_0_NRF_HW_ASYNC=y

Children
No Data
Related