STM32H7B3: Taking a FrameBuffer and sending it over USART3 to a computer
Hi, I'm currently programming an STM32 H7B3I-EVAL. There are two things I'd like to do: find and extract a FrameBuffer, and send that data to my computer via a debug port. I would just like to make sure that I'm developing this correctly, because I feel like I may be confusing myself by working too low-level or jumping into too many rabbit holes...
Regarding the first part - extracting a FrameBuffer - I've used CubeMX to set the FrameBuffer dimensions to 800x480 (the size of the LCD on the evaluation kit), single buffer, RGB565, and the memory address to 0xC0000000.
All I need to do to access this in C++ is to set a pointer to that address for an array of 800x480 uint16s (since it's 16bpp), correct?
Regarding the second part - sending the data to the computer - I've used CubeMX to set pins PB10 and PB11 to USART3_TX and RX, respectively. I did this because USART3 is designated as the virtual COM port connected to CN21, a microUSB port.
However, the actual communication confuses me a bit... the reference sheet for the board does not specify what the initial register values are, so I'm unsure which of the USART control register bits I actually need to change to enable USART communication to the computer. I do know that the base address for USART3 is 0x40004800, and that there is a transmitter enable bit in USART_CR1, but I'm unsure what to change aside from that.
Furthermore, I'm not sure what would be used to read the incoming information from the evaluation kit on my computer. I'm also unsure about potential settings I'd need to process the incoming data correctly; for example, baud rate, parity bits, etc. This is also an issue since, again, I don't know the initial register settings, so I don't know if the evaluation kit starts as FIFO-enabled, even/odd parity, baud rate, etc.
I'm mainly confused about the communication here and I'm wondering if I'm on the wrong track or if there's a simpler tool for this.
Thanks!
