2018-05-09 05:49 AM
Try to send 16 bytes via USART1.
ISR has reset value (0xnnnn n0C0) before sending first byte. Write bytes into TDR like this: USART1->TDR = *bufptr++;ISR bits TXE and TC get cleared as expected (0xnnnn n000) after first byte.
But neither TXE not TC get set again !?!So cannot send the remaining 14 bytes...What can cause this?2018-05-15 09:46 AM
Transmitter and/or UART not enabled?
Handshake enabled and active?
Read out and check/post other UART registers content.
JW
2018-05-15 03:23 PM
Provide an example that illustrates the problem fully. If you are probing the USART registers in the debugger, stop doing so.
Check for error flagging.