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

UARTE configuration with nrf9160 and zephyr

Hi,

we have developed our working UART code according to Zephyr documentation, and its working fine,

we find that this code works with EasyDMA . but my question is my uart2_fifo_callback function is calling for every byte, why its happening like this, please help me to understand?

Note: we are using UART in UARTE_INTERRUPT_DRIVEN mode

and some other doubts are:

1. How we can increase/decide RX FIFO size

2. How we can configure UART so that the Uart_fifo_callback function will be called only once per every communication

3. What is the difference between UARTE_INTERRUPT_DRIVEN and CONFIG_UART_ASYNC_API, can we have interrupt handler even if i use CONFIG_ASYNC_API mode?

Best Regards

Rajener.

Parents Reply
  • Hi Torbjorn,

    I have created your project in my segger embedded studio, but i con not find any configuration in uart_init() or anywhere else,  Where i can configure my UARTE properties(like baud rate, etc.,)

    when i try to build and upload in to my nRF9160 board, its building and uploading fine, but now i can not see the output, i have tried all the baud rates given in my terminal software still no use.

    NOTE: i have changed some code and configs, Please check below-->

    #define UART_BUF_SIZE		10//16
    #define UART_RX_TIMEOUT_MS	500//100

    dev_uart = device_get_binding("UART_2");

    Please help to understand

    Best Regards

    Rajender

Children
No Data
Related