STM32L476rg UART RX missing data. Continue receiving data until "OK" or "ERROR" encountered.
I am trying to receive some uart input from data that is an unknown size. I should end on \r\n or on an OK or ERROR received. The issue I am having with interrupts(HAL_Receive_IT()) is obviously losing too much data. I have also tried to implement this with DMA and a buffer but could not get it working. I have looked at some of the other solutions posted as well (one by user Tesla Delorean in 2018 on streaming uart data from a different module) and another from an ST employee here: https://github.com/MaJerle/stm32-usart-uart-dma-rx-tx/blob/master/projects/usart_rx_idle_line_irq_L4/Src/main.c
I do not want to use any RTOS though. Is there some really simple example of just getting the uart data and outputting it to console on another uart? Or can someone guide me on how to do this/ tell me the best/better way ? Just reading 1 byte and interrupting each time is too slow and missing too much data.
Thank you.
