Now I can use LIBUARTE to receive data from MCU, but have a trouble: it can't receive a whole packet sometime,and return it with 2 parts.
UARTE : 115200/8/1
receive buffer : 104 bytes * 3
MCU send : 28 bytes a time every 5 seconds;
nrf52810 receive: 80% packets received at a time,rest will break into 2 parts.
Have tried:
1) increase timeout_us to 10000us;
2) decrease speed to NRF_UARTE_BAUDRATE_76800;
I thought it should return a whole packet at a time,that's why I turn to LIBUARTE.
The buffer size/speed/timeout_us should be big enough,what make it interrupt?
The SD task interrupt it?