Hi,
I am trying to get uart messages with interrupt. I have seen examples with interrupts however, these examples take the message one byte at a time. I wonder if there is a way to get whole bytes at once.
For example: if I send a message to the board with size 5, ISR should get 5 bytes at once. After that, if I send 47 bytes as an example, ISR should get 47 bytes at once.
Thank you.
Hi @afa25
In the UART chapter of the S32K1 and S32K3 reference manuals, you can find that most family variants have a FIFO that supports 4 words, and some instances support 16.
In other words, the maximum number of characters you could receive per interrupt is the total size of the FIFO.
I can suggest using the UART with DMA together to handle a more significant amount of data.
B.R.
VaneB
Hi @afa25
Unfortunately, we do not have LPUART DMA examples or training material.
However, there is a LpuartFlexio_Uart_Ip_Example RTD example that can be modified.
Thank you!
I will try it.