HT-CT62, how to upload program over serial?

Hello. I want to use UART and Arduino IDE to upload sketch to ESP32 in HT-CT62. I think the upload is done by grounding D0 and resetting the chip, then the bootloader accepts new sketch over serial.

However, in reference design the D0 pin is reserved for external 32k oscillator, so it cannot be used for uploading. How to upload the sketch from Arduino IDE then? Thank you.