How to setup USART to read unknown string lengths.
I'm using a NUCLEO-L053R8 board. I have tried a variety of USART settings including interrupt and DMA, but cannot reliably read unknown string lengths (at 115200 baud).
I want to read either until a certain character is seen, or for a specific period of time.
However, by using the Arduino IDE and running the NUCLEO as an Arduino, I have no problem using the 'serial.read()' function to accomplish the task.
What kind of magic is under the hood in the Arduino code?