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?

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

void setup() {
  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();
HardwareSerial uart1(1);
HardwareSerial uart2(2);

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