9 years, 10 months ago.

Is there a an RX Buffer?

I am trying to receive 5 bytes from a device but after I use getc to read the first byte the serial becomes unreadable. Is the buffer only one byte? Do I need to turn on the buffer or make it bigger? I am using a Nucleo F401RE and serial 6.

Question relating to:

Hi Taylor, I have the same problem, how did you fix it?

posted by Rafael Chelim 21 May 2015

1 Answer

9 years, 10 months ago.

Serial uses no buffer except the hardware buffer. BufferedSerial (search for it) does implement a buffer.

I don't know how much of a hardware buffer the F401 has, but it shouldn't matter as long as you can handle the incoming bytes faster than new ones arrive.