Create new project and paste the following code:
esp32-examples/tinygo-examples/Hello World/hello-world/main.go
Lines 1 to 14 in 4c30ecf
Run command tinygo flash -target=esp32-coreboard-v2 -port=/dev/ttyACM0 .
to flash the program into your ESP32.
You must hold the BOOT button while flashing.
Now you can connect with serial console with baud rate 9600.