I use stm32f407 to communicat with rs485.
I use DMA to transmit data. For controllig dirction pin, I check the USART_FLAG_TC. Whet it is set, I will push Dirction pin low and clear the USART_FLAG_TC by writing with 0. But it dosent clear. I must clear again. Other side, if using delay about 1us befor clearing that flag, it will be clear.
Does anybody have idea?