Buffering in STM32F4 uC for UART
I recently got my STM32F407VG uC working with UART4. I can receive a byte and send a byte. Though I have been reading on how to acquire more than one byte at a time. It seems as though people like to use DMA. I am perfectly okay with polling for my experiments and projects.
I have been looking through the UART section of the reference manual. I see a lot of mention of multibuffering with DMA but I cannot seem to find how big the UART buffer is. I am trying to do something similar to what serial LCDs do where they have a command prefix and then an actual command with optional parameters.
In my mind, there would be a buffer of fixed size that would hold these byte command requests from another device transmitting to the uC. I could read each byte command in this buffer one by one and take the correct action for each one. For example, the Arduino I used had a 64 byte ring buffer and grabbing one byte at a time was possible.
Note: I am not a professional firmware programmer or engineer. Just trying to learn something here.
Any hints are appreciated! Thanks for your time!
