ESP-IDF v5.3 UART glitch (IDFGH-13373) #14285
Labels
Resolution: NA
Issue resolution is unavailable
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
v5.3
Espressif SoC revision.
ESP32
Operating System used.
macOS
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
Custom board
Power Supply used.
External 3.3V
What is the expected behavior?
uart_driver_install(UART_NUM_1, UART_RX_BUF_SIZE * 2, 0, 0, NULL, intr_alloc_flags);
uart_param_config(UART_NUM_1, &uart_config);
uart_disable_tx_intr(UART_NUM_1);
uart_set_line_inverse(UART_NUM_1,UART_SIGNAL_TXD_INV); // inverse TX
uart_set_pin(UART_NUM_1, UART_GPIO_TX, UART_GPIO_RX, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE);
What is the actual behavior?
The uart_set_pin function does not take into account the set inversion of the tx and rx pins. This causes a glitch (splash) to occur during initialization.
esp-idf/components/esp_driver_uart/src/uart.c
Line 743 in 41dd1a3
Also, for the rx pin, it is necessary to have GPIO_PULLUP_ONLY or GPIO_PULLDOWN_ONLY set depending on the inversion.
esp-idf/components/esp_driver_uart/src/uart.c
Line 760 in 41dd1a3
Steps to reproduce.
...
Debug Logs.
No response
More Information.
No response
The text was updated successfully, but these errors were encountered: