I have a working project that works with the UART in DMA mode (both Tx and Rx channels) without flow control.
When I have added the flow control to the uart (CSL_UART_AFE, CSL_UART_RTS options) , the Rx channel stopped generating DMA events (The Tx channel works fine).
I can see that the data arrives ok because I can read it from the uart FIFO. But no dma event is generated.
In conclusion the only change made is enablign the AFE, and after I made it, the DMA Rx channel stopped working.
Any ideas ?
Thanks.
My uart setup is :
const CSL_UartSetup uartSetup = { /* Input clock freq in MHz */ DSP_SYSTEM_CLOCK_MHZ*1000L*1000L, /* Baud rate */
230400, /* Word length of 8 */ CSL_UART_WORD8, /* To generate 1 stop bit */ 0, /* Disable the parity */ CSL_UART_DISABLE_PARITY, /* Enable trigger 14 fifo */ CSL_UART_FIFO_DMA1_ENABLE_TRIG14, /* Loop Back enable */ CSL_UART_NO_LOOPBACK, #ifdef AUX_UART_FLOW_CONTROL_ENABLED /* No auto flow control*/ CSL_UART_AFE /* No RTS */ CSL_UART_RTS #endif #ifndef AUX_UART_FLOW_CONTROL_ENABLED /* No auto flow control*/ CSL_UART_NO_AFE , /* No RTS */ CSL_UART_NO_RTS #endif };