Echo Tail
STM32 UART Losing Characters Debug
Symptom
Keys typed one at a time echo. At full speed, a line echoes only its first characters. The tail never appears. The registers and bit fields are on the Datasheet tab.
Circuit
Pass condition
The whole line echoes and every character lands in the log chip. LOGGED:<n> follows once each character is stored.
Notes
An operator types at 9600 baud (BRR = 0x683) for as long as the board runs. Each write to the log chip is one byte and takes 5 ms, with no ready sign. On this bench only I2C1 needs its clock enabled, and the program enables it. Your program is built and run at -O0, then at -O2. Both must pass.