Hello every one. hope you are doing well.
I'm using i.max8m with M4 core to make an application where A53 share data with M4 by RPMSG. I use the imx_rpmsg_tty.c driver as I want to access the data from/to M4 with the common API, the tty, just like a UART attached.
As the protocol noted, the default payload size is 496 bytes(buffer size 512byte-16byte header size), so in every single transmission transaction the max available data size is 496 bytes. In one side I filled the payload with random byte, from 0x00 to 0xFF, but in the reveive side some data got lossed. But when I send const data, just like 0x55, 0xaa... then no data got lossed. So I suspect that some byte take the same role with the protocol head. Is this possible? If so, how can I avoid this?