Can anyone help me get the Atmel ATSAME70 ARM M7 USART receive timeout to work?
My USART is sending and receiving correctly, at 115200 baud. I'm using the ASF library, and set the Rx Timeout as follows:
#define TBUS_RX_TIMEOUT_MS 200
usart_set_rx_timeout(USART0, UART_BAUDRATE * RX_TIMEOUT_MS / 1000);
I verify that the TO value is set correctly in US_RTOR register.
I then start the timeout using this call:
usart_restart_rx_timeout(USART0);
There is no traffic on the serial bus at this point, so I expected the TIMEOUT flag to be set. It never gets set.
Is there anything else required to get the timeout to trigger?