Why uart1,uart2 not working in esp32?

I have an ESP32 module, I try to test three uart.

uart0 is working but not working uart1,uart2.

the code iam tested for uart2 is below.

could you please tell me how to solve this issue?
Thanks.

#include <HardwareSerial.h>
HardwareSerial uart1(1);
HardwareSerial uart2(2);


void setup() {
  
  Serial.begin(115200);
  uart1.begin(115200, SERIAL_8N1, 9, 10);   //Baud rate, parity mode, RX, TX
  uart2.begin(115200, SERIAL_8N1, 16, 17);
}

void loop() {
  //
     if(uart2.available())                   //if user typed something through the USB...
      {
    
    char c = uart2.read();
    uart2.print(c);
    }
}
HardwareSerial uart1(1);
HardwareSerial uart2(2);

Have you tried to use Serial1 and Serial2 instead of instantiating duplicate objects?