I’ve been working with the UART device recently, attempting to create a few higher-level interfacing functions for common tasks like changing baud settings and performing reads, etc (cribbed heavily from the UARTClass.* files in the Arduino package).
I have a few things to finish up but am far enough along that I should be able to write string output at selected baud rates. My working branch on GitHub: https://github.com/dgrubb/freedom-e-sdk/tree/uart_development/software/demo_uart
The problem I’m having is that, when I attempt to write out a string, anything after the 10th byte turns into Authentic Frontier Gibberish. To verify I’ve attached a second USB-TTL serial adapter directly to the header I/O pins and tried a few different baud rates but get the same result. In either case, I can interspace write(STDOUT_FILENO, …) and those strings are successfully printed, so I suspect I’m omitting something really obvious when I’m putting data into the TX FIFO.