]> granicus.if.org Git - esp-idf/commit
bugfix(uart): workaround for uart fifo reset issue
authorWangjialin <wangjialin@espressif.com>
Tue, 7 Nov 2017 10:19:23 +0000 (18:19 +0800)
committerWangjialin <wangjialin@espressif.com>
Mon, 13 Nov 2017 07:23:00 +0000 (15:23 +0800)
commit4052803e161ba06d1cae8d36bc66dde15b3fc8c7
treed3691e123d840864229310895d18e8a3260a745e
parent0ee9d93e5837d1846c6a61ff6c4c3ae2f3f5c704
bugfix(uart): workaround for uart fifo reset issue

Reported from github:
https://github.com/espressif/esp-idf/issues/1219
https://github.com/espressif/esp-idf/issues/1202

After providing a simple code to digital team, they confirmed that this is a hardware bug.

Root cause:
The fifo reset signal is incorrectly connected
If we want to reset tx fifo of UART2, we have to set txfifo_rst bit of both UART1 and UART2
If we want to reset rx fifo of UART2, we have to set rxfifo_rst bit of both UART1 and UART2

Workaround:
we don't use fifo rst bit in driver.

Documentation:
Digital team would update TRM and give more explanation about this issue.
components/driver/uart.c