Hi,
We are using bl-653,
we wanted to enable UART-1, for bl-653 we wrote overlay & configurations mentioned below:
&uart1 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
status = "okay";
tx-pin = <15>;
rx-pin = <24>;
label = "UART_1";
};
configurations enabled for UART:
CONFIG_UART_0_INTERRUPT_DRIVEN=n
CONFIG_UART_0_ASYNC=y
CONFIG_UART_1_ASYNC=y
CONFIG_UART_1_INTERRUPT_DRIVEN=n
CONFIG_UART_ASYNC_API=y
CONFIG_SERIAL=y
We are able to bind the device configured – UART-1, also we are able to receive the accurate data in rx buffer which is sent from terminal, but we are not able to get exact length of received data, we are using this implementation for rx_index = evt->data.rx.len; but length is not accurate, can you please help if there procedure needs to be followed to clear rx_buffer and rx_index once we recieve data in one instance? we can observe the buffer is not getting cleared and there is mismatch in rx_index
Thank you,