Upload problem arduino nano esp32

And you configured USB CDC in the menuconfig per this?