I create a S32K144 project with MCAL based on SDK(PlatformSDK_S32K1_2021_08_S32K144_M4F), and I want to receive and send message via Uart. It could send message out, but when I try to receive uart message via the function Std_ReturnType Uart_AsyncReceive(uint8 Channel, uint8* Buffer, uint32 BufferSize), it could not work well, especially when the BufferSize is not equal to the number of byte that the slave answers. In this case, the Uart_AsyncReceive return the uart receive is ongoing and I have to abort receive otherwise it could not send any message out again.
I want to know is there any better way to deal with the case that we don't know the answer length before we send the ask command?
