WeMos D1 R32 not able to upload a simple code

hi i got new "WeMos D1 R32"
i have installed the the board manger url also
"http://arduino.esp8266.com/stable/package_esp8266com_index.json,https://arduino.esp8266.com/stable/package_esp8266com_index.json,https://dl.espressif.com/dl/package_esp32_index.json"

then i have selected the "ESP32 Dev Module"
and then code compiles fine but while uploading it breaking up
with below errors on console
can any one help me on this
i am using macbook pro other nodemcu is working fine but this new one is having issues

esptool.py v3.0-dev
Serial port /dev/cu.usbserial-1410
Connecting.....
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 9c:9c:1f:e3:8f:80
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...

A fatal error occurred: Timed out waiting for packet header
A fatal error occurred: Timed out waiting for packet header

i was able to solve this i have documented for future in the below link