uart_set_pin()
with the same pin for both RX and TX doesn't work! (IDFGH-13954)
#14787
Closed
3 tasks done
Labels
Resolution: NA
Issue resolution is unavailable
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
v5.3.0
Espressif SoC revision.
ESP32-C3 (revision v0.4)
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
PowerShell
Development Kit.
ESP32 C3 Super Mini
Power Supply used.
USB
What is the expected behavior?
Full code demo:
I expected:
to work- but is seems to overwrite the TX output configuration and only the RX pin is configured correctly.
My workaround is to re-write the TX output configuration after the
uart_set_pin(..)
:I think the
uart_set_pin(..)
needs to support this case of a single pin for both TX and RX-(maybe test if
rx_pin == tx_pin
and if so- apply my workaround?)I use it to control some single line smart servo motors with open-drain UART bus...
The ESP32 support this common UART configuration (like RS485),
it also support echo-cancellation (may also be nice to have this functionality..)
What is the actual behavior?
When:
I get:
W UART TEST: No echo
- Bad!When:
or
I get:
I UART TEST: Echo: Test
- Good!Steps to reproduce.
Compile and run the demo code I made with and without the
WORKAROUND
..Debug Logs.
No response
More Information.
No response
The text was updated successfully, but these errors were encountered: