Receivd corrupt data on 52833dk with lpuart sample

Hi,

I am running the lpuart sample to connect nrf9160dk <-> nrf52833dk.

The only change in source is added code to print out the data received from RX.

And I enalbe the console log and NRF_SW_LPUART_INT_DRIVEN, here is the proj.conf:

CONFIG_NRF_SW_LPUART=y

# CONFIG_USE_SEGGER_RTT=n
CONFIG_LOG=y
CONFIG_NO_OPTIMIZATIONS=y
CONFIG_ASSERT=y

# Comment this section for debugging
# CONFIG_CONSOLE=n
# CONFIG_UART_CONSOLE=n

# Uncomment to use lpuart using interrupt driven API
CONFIG_NRF_SW_LPUART_INT_DRIVEN=y

When running the sample, everything looks fine on 9160 side. 

I can see the char 0xFF sent by uart_poll_out() and {1, 2, 3, 4, 5} sent by uart_fifo_fill().

read 1 bytes
  - byte 0: ff
read 5 bytes
  - byte 0: 01
  - byte 1: 02
  - byte 2: 03
  - byte 3: 04
  - byte 4: 05

But on the 52833 side, the received data is corrupted.

read 1 bytes
  - byte 0: fe
read 2 bytes
  - byte 0: 20
  - byte 1: 80
read 1 bytes
  - byte 0: ff
(... not repeated same data, randomly ...)

I use LA to check the data on the 52833 RX pin, it looks fine. The 9160 did send the correct data.



Any advice is appreciated, thanks.

Parents Reply Children
No Data
Related