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,

    Finally i have tested your project and its working fine, triggering interrupts according to the data buffer size and timeout delay,

    but it working only one direction, means if i send any data to uart port through my terminal software its receiving and i can see the data also, but when i add uart tx function then also its not sending data to uart port from my microcontroller, i have tried both uart_tx() or z_impl_uart_tx() but no use
    NOTE: i did not enabled console also, Im using uart_2 for my uart communication

    Please help me to understand

    Best Regards

    Rajender

Children
No Data
Related