E (191) uart: uart_set_pin(711): rx_io_num error
Posted: Thu Jan 09, 2025 1:08 pm
Hi everyone!
I am a total beginner at ESP32 and I am trying to transmit some data via UART and view it on the logic analyzer. I am using the ESP32-H2-mini-1 board with arduino IDE. Based on the documentation of this board, the UART pins are supposed to be on pin 30 and 31.
When I run the above code, I get the following text in the Serial monitor:
Can anyone please explain to me why the code is not working? Am I selecting the code UART pins? If yes, which pins do I need to select?
I am a total beginner at ESP32 and I am trying to transmit some data via UART and view it on the logic analyzer. I am using the ESP32-H2-mini-1 board with arduino IDE. Based on the documentation of this board, the UART pins are supposed to be on pin 30 and 31.
Code: Select all
// UART port and pins definitions
#define UART_RX 30
#define UART_TX 31
// Create object for UART communication
HardwareSerial radarComm(1); // Using UART0 for communication
void setup()
{
// Initialize UART0 for radar sensor communication
radarComm.begin(9600, SERIAL_8N1, UART_RX, UART_TX);
}
void loop()
{
}
Code: Select all
E (143) uart: uart_set_pin(711): rx_io_num error
E (175) uart: uart_set_pin(710): tx_io_num error