Skip to main content
Associate
October 24, 2026
Question

The TXTF flag switches to '1' when data transmission is not yet complete.

I performed two transmission operations, each consisting of 70,000 bytes, with `CR2->TSIZE` set to `0xfffc` and `CR2->TSER` set to `0x1174`. The first transmission proceeded normally, and the code functioned correctly. However, during the second transmission, the `SR->TXTF` flag switched to '1' while the `CTSIZE` value remained very large—meaning only 2 bytes were actually transmitted. Furthermore, the `TXPIE` flag was cleared, even though `CR2->TSIZE` was `0xfffc` and `CR2->TSER` was `0x1174`. While the first transmission worked as expected, the second one failed.