PlatformIO Community

ESP32-Thing uploading

I am compiling and linking, but does not upload code to the ESP32-Thing.
Where do I tell the PlatformIO to go out and find the COM4 port ??

I have allowed Win10 to configure the FTDI chip on the board and I replaced the driver with WINUSB via Zadig-2.5.

Got to be some thing i missed.

Please show your platformio.ini file and the full output of building and uploading.

Thank You,

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter, extra scripting
;   Upload options: custom port, speed and extra flags
;   Library options: dependencies, extra library storages
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html
[env:esp32dev]
platform = espressif32
framework = arduino
board = esp32dev
monitor_speed = 115200
[env:esp wrover kit]
platform = espressif32
framework = arduino
board = esp-wrover-kit
monitor_speed = 115200
[env:espea32]
platform = espressif32
framework = arduino
board = espea32
monitor_speed = 115200
[env:esp320]
platform = espressif32
framework = arduino
board = esp320
monitor_speed = 115200
Processing esp32dev (platform: espressif32; framework: arduino; board: esp32dev)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 1.12.4 > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 3.10004.200129 (1.0.4)
 - tool-esptoolpy 1.20600.0 (2.6.0)
 - toolchain-xtensa32 2.50200.80 (5.2.0)
Converting WiFiScan.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 26 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <WiFi> 1.0
Building in debug mode
Compiling .pio\build\esp32dev\src\WiFiScan.ino.cpp.o
Linking .pio\build\esp32dev\firmware.elf
Building .pio\build\esp32dev\firmware.bin
Retrieving maximum program size .pio\build\esp32dev\firmware.elf
Checking size .pio\build\esp32dev\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]  11.9% (used 39016 bytes from 327680 bytes)
Flash: [=====     ]  51.7% (used 677554 bytes from 1310720 bytes)
esptool.py v2.6
========================= [SUCCESS] Took 4.92 seconds =========================

Environment     Status    Duration
--------------  --------  ------------
esp32dev        SUCCESS   00:00:04.919
esp wrover kit  IGNORED
espea32         IGNORED
esp320          IGNORED
========================= 1 succeeded in 00:00:04.919 =========================
Reading symbols from c:\Users\donvu\Documents\PlatformIO\Projects\200728-165651-arduino-wifiscan\.pio\build\esp32dev\firmware.elf...
done.
PlatformIO Unified Debugger -> http://bit.ly/pio-debug
PlatformIO: debug_tool = esp-prog
PlatformIO: Initializing remote target...
Open On-Chip Debugger  v0.10.0-esp32-20190708 (2019-07-08-11:04)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
none separate
adapter speed: 20000 kHz
Info : Configured 2 cores
esp32 interrupt mask on
Info : tcl server disabled
Info : telnet server disabled
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description '*', serial '*' at bus location '*'

Warn : Flash driver of esp32.flash does not support free_driver_priv()
Warn : Flash driver of irom does not support free_driver_priv()
Warn : Flash driver of drom does not support free_driver_priv()
.pioinit:11: Error in sourced command file:
Remote communication error.  Target disconnected.: No error.

OpenOCD still can’t find the USB device. Can you check in the Windows device manager for your now replaced WinUSB device what VID and PID it has?

COM4_VID-PID

After ZADIG:ZADIG_COM4_VID-PID

So you have a PID of 6015 and thus not the expected PID of 6010.

Which exact FTDI chip are you working with?

Since you told PIO to use

board = esp-wrover-kit

it’ll be expecting a FT2232HL.

Yes, I agree.
But where do I change the default that was created for me ??

The ESP32-Thing uses an FT231XS FTDI chip.

Okay wait I think I’m getting at what is going on here.

You are attempting to upload via UART anyways right, not via JTAG?

But you are not pressing the “Upload” button in PlatformIO but the Debug -> Start Debugging button?

Ding, Ding, Ding You are correct !!

Where is the “upload” button ??

OK, I found the “upload” button at the bottom of the screen !

Now I get :slight_smile:> Executing task: C:\Users\donvu.platformio\penv\Scripts\platformio.exe run --target upload <

Processing esp32dev (platform: espressif32; framework: arduino; board: esp32dev)

PackageManager: Installing tool-mkspiffs @ ~2.230.0
tool-mkspiffs @ 2.230.0 has been successfully installed!
Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 1.12.4 > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:

  • framework-arduinoespressif32 3.10004.200129 (1.0.4)
  • tool-esptoolpy 1.20600.0 (2.6.0)
  • tool-mkspiffs 2.230.0 (2.30)
  • toolchain-xtensa32 2.50200.80 (5.2.0)
    Converting WiFiScan.ino
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 26 compatible libraries
    Scanning dependencies…
    Dependency Graph
    |-- 1.0
    Building in release mode
    Compiling .pio\build\esp32dev\src\WiFiScan.ino.cpp.o
    Compiling .pio\build\esp32dev\lib4cf\WiFi\ETH.cpp.o
    Compiling .pio\build\esp32dev\lib4cf\WiFi\WiFi.cpp.o
    Compiling .pio\build\esp32dev\lib4cf\WiFi\WiFiAP.cpp.o
    Compiling .pio\build\esp32dev\lib4cf\WiFi\WiFiClient.cpp.o
    Compiling .pio\build\esp32dev\lib4cf\WiFi\WiFiGeneric.cpp.o
    Compiling .pio\build\esp32dev\lib4cf\WiFi\WiFiMulti.cpp.o
    Compiling .pio\build\esp32dev\lib4cf\WiFi\WiFiSTA.cpp.o
    Compiling .pio\build\esp32dev\lib4cf\WiFi\WiFiScan.cpp.o
    Compiling .pio\build\esp32dev\lib4cf\WiFi\WiFiServer.cpp.o
    Compiling .pio\build\esp32dev\lib4cf\WiFi\WiFiUdp.cpp.o
    Archiving .pio\build\esp32dev\lib4cf\libWiFi.a
    Linking .pio\build\esp32dev\firmware.elf
    Building .pio\build\esp32dev\firmware.bin
    Retrieving maximum program size .pio\build\esp32dev\firmware.elf
    Checking size .pio\build\esp32dev\firmware.elf
    Advanced Memory Usage is available via “PlatformIO Home > Project Inspect”
    RAM: [= ] 11.8% (used 38696 bytes from 327680 bytes)
    Flash: [===== ] 47.7% (used 625406 bytes from 1310720 bytes)
    esptool.py v2.6
    Configuring upload protocol…
    AVAILABLE: esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
    CURRENT: upload_protocol = esptool
    Looking for upload port…
    Error: Please specify upload_port for environment or use global --upload-port option.
    For some development platforms it can be a USB flash drive (i.e. /media//)
    *** [upload] Explicit exit, status 1
    ================================================================================================== [FAILED] Took 8.03 seconds ==================================================================================================

Processing esp wrover kit (platform: espressif32; framework: arduino; board: esp-wrover-kit)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp-wrover-kit.html
PLATFORM: Espressif 32 1.12.4 > Espressif ESP-WROVER-KIT
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (ftdi) On-board (ftdi) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:

  • framework-arduinoespressif32 3.10004.200129 (1.0.4)
  • tool-esptoolpy 1.20600.0 (2.6.0)
  • tool-mkspiffs 2.230.0 (2.30)
  • toolchain-xtensa32 2.50200.80 (5.2.0)
    Converting WiFiScan.ino
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 26 compatible libraries
    Scanning dependencies…
    Dependency Graph
    |-- 1.0
    Building in release mode
    Compiling .pio\build\esp wrover kit\src\WiFiScan.ino.cpp.o
    Generating partitions .pio\build\esp wrover kit\partitions.bin
    Compiling .pio\build\esp wrover kit\lib4cf\WiFi\ETH.cpp.o
    Compiling .pio\build\esp wrover kit\lib4cf\WiFi\WiFi.cpp.o
    Compiling .pio\build\esp wrover kit\lib4cf\WiFi\WiFiAP.cpp.o
    Compiling .pio\build\esp wrover kit\lib4cf\WiFi\WiFiClient.cpp.o
    Compiling .pio\build\esp wrover kit\lib4cf\WiFi\WiFiGeneric.cpp.o
    Compiling .pio\build\esp wrover kit\lib4cf\WiFi\WiFiMulti.cpp.o
    Compiling .pio\build\esp wrover kit\lib4cf\WiFi\WiFiSTA.cpp.o
    Compiling .pio\build\esp wrover kit\lib4cf\WiFi\WiFiScan.cpp.o
    Compiling .pio\build\esp wrover kit\lib4cf\WiFi\WiFiServer.cpp.o
    Compiling .pio\build\esp wrover kit\lib4cf\WiFi\WiFiUdp.cpp.o
    Archiving .pio\build\esp wrover kit\libFrameworkArduinoVariant.a
    Compiling .pio\build\esp wrover kit\FrameworkArduino\Esp.cpp.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\FunctionalInterrupt.cpp.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\HardwareSerial.cpp.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\IPAddress.cpp.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\IPv6Address.cpp.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\MD5Builder.cpp.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\Print.cpp.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\Stream.cpp.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\StreamString.cpp.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\WMath.cpp.o
    Archiving .pio\build\esp wrover kit\lib4cf\libWiFi.a
    Compiling .pio\build\esp wrover kit\FrameworkArduino\WString.cpp.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\base64.cpp.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\cbuf.cpp.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-adc.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-bt.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-cpu.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-dac.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-gpio.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-i2c.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-ledc.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-matrix.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-misc.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-psram.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-rmt.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-sigmadelta.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-spi.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-time.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-timer.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-touch.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\esp32-hal-uart.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\libb64\cdecode.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\libb64\cencode.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\main.cpp.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\stdlib_noniso.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\wiring_pulse.c.o
    Compiling .pio\build\esp wrover kit\FrameworkArduino\wiring_shift.c.o
    Archiving .pio\build\esp wrover kit\libFrameworkArduino.a
    Linking .pio\build\esp wrover kit\firmware.elf
    Building .pio\build\esp wrover kit\firmware.bin
    Retrieving maximum program size .pio\build\esp wrover kit\firmware.elf
    Checking size .pio\build\esp wrover kit\firmware.elf
    Advanced Memory Usage is available via “PlatformIO Home > Project Inspect”
    RAM: [= ] 11.8% (used 38696 bytes from 327680 bytes)
    Flash: [===== ] 47.7% (used 625406 bytes from 1310720 bytes)
    esptool.py v2.6
    Configuring upload protocol…
    AVAILABLE: esp-prog, espota, esptool, ftdi, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
    CURRENT: upload_protocol = esptool
    Looking for upload port…
    Error: Please specify upload_port for environment or use global --upload-port option.
    For some development platforms it can be a USB flash drive (i.e. /media//)
    *** [upload] Explicit exit, status 1
    ================================================================================================== [FAILED] Took 10.69 seconds ==================================================================================================

Processing espea32 (platform: espressif32; framework: arduino; board: espea32)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/espea32.html
PLATFORM: Espressif 32 1.12.4 > April Brother ESPea32
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:

  • framework-arduinoespressif32 3.10004.200129 (1.0.4)
  • tool-esptoolpy 1.20600.0 (2.6.0)
  • tool-mkspiffs 2.230.0 (2.30)
  • toolchain-xtensa32 2.50200.80 (5.2.0)
    Converting WiFiScan.ino
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 26 compatible libraries
    Scanning dependencies…
    Dependency Graph
    |-- 1.0
    Building in release mode
    Compiling .pio\build\espea32\src\WiFiScan.ino.cpp.o
    Generating partitions .pio\build\espea32\partitions.bin
    Compiling .pio\build\espea32\lib4cf\WiFi\ETH.cpp.o
    Compiling .pio\build\espea32\lib4cf\WiFi\WiFi.cpp.o
    Compiling .pio\build\espea32\lib4cf\WiFi\WiFiAP.cpp.o
    Compiling .pio\build\espea32\lib4cf\WiFi\WiFiClient.cpp.o
    Compiling .pio\build\espea32\lib4cf\WiFi\WiFiGeneric.cpp.o
    Compiling .pio\build\espea32\lib4cf\WiFi\WiFiMulti.cpp.o
    Compiling .pio\build\espea32\lib4cf\WiFi\WiFiSTA.cpp.o
    Compiling .pio\build\espea32\lib4cf\WiFi\WiFiScan.cpp.o
    Compiling .pio\build\espea32\lib4cf\WiFi\WiFiServer.cpp.o
    Compiling .pio\build\espea32\lib4cf\WiFi\WiFiUdp.cpp.o
    Archiving .pio\build\espea32\libFrameworkArduinoVariant.a
    Compiling .pio\build\espea32\FrameworkArduino\Esp.cpp.o
    Compiling .pio\build\espea32\FrameworkArduino\FunctionalInterrupt.cpp.o
    Compiling .pio\build\espea32\FrameworkArduino\HardwareSerial.cpp.o
    Compiling .pio\build\espea32\FrameworkArduino\IPAddress.cpp.o
    Compiling .pio\build\espea32\FrameworkArduino\IPv6Address.cpp.o
    Compiling .pio\build\espea32\FrameworkArduino\MD5Builder.cpp.o
    Compiling .pio\build\espea32\FrameworkArduino\Print.cpp.o
    Compiling .pio\build\espea32\FrameworkArduino\Stream.cpp.o
    Archiving .pio\build\espea32\lib4cf\libWiFi.a
    Compiling .pio\build\espea32\FrameworkArduino\StreamString.cpp.o
    Compiling .pio\build\espea32\FrameworkArduino\WMath.cpp.o
    Compiling .pio\build\espea32\FrameworkArduino\WString.cpp.o
    Compiling .pio\build\espea32\FrameworkArduino\base64.cpp.o
    Compiling .pio\build\espea32\FrameworkArduino\cbuf.cpp.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-adc.c.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-bt.c.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-cpu.c.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-dac.c.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-gpio.c.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-i2c.c.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-ledc.c.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-matrix.c.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-misc.c.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-psram.c.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-rmt.c.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-sigmadelta.c.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-spi.c.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-time.c.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-timer.c.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-touch.c.o
    Compiling .pio\build\espea32\FrameworkArduino\esp32-hal-uart.c.o
    Compiling .pio\build\espea32\FrameworkArduino\libb64\cdecode.c.o
    Compiling .pio\build\espea32\FrameworkArduino\libb64\cencode.c.o
    Compiling .pio\build\espea32\FrameworkArduino\main.cpp.o
    Compiling .pio\build\espea32\FrameworkArduino\stdlib_noniso.c.o
    Compiling .pio\build\espea32\FrameworkArduino\wiring_pulse.c.o
    Compiling .pio\build\espea32\FrameworkArduino\wiring_shift.c.o
    Archiving .pio\build\espea32\libFrameworkArduino.a
    Linking .pio\build\espea32\firmware.elf
    Building .pio\build\espea32\firmware.bin
    Retrieving maximum program size .pio\build\espea32\firmware.elf
    Checking size .pio\build\espea32\firmware.elf
    Advanced Memory Usage is available via “PlatformIO Home > Project Inspect”
    RAM: [= ] 11.8% (used 38696 bytes from 327680 bytes)
    Flash: [===== ] 47.7% (used 625406 bytes from 1310720 bytes)
    esptool.py v2.6
    Configuring upload protocol…
    AVAILABLE: esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
    CURRENT: upload_protocol = esptool
    Looking for upload port…
    Error: Please specify upload_port for environment or use global --upload-port option.
    For some development platforms it can be a USB flash drive (i.e. /media//)
    *** [upload] Explicit exit, status 1
    ================================================================================================== [FAILED] Took 11.49 seconds ==================================================================================================

Processing esp320 (platform: espressif32; framework: arduino; board: esp320)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp320.html
PLATFORM: Espressif 32 1.12.4 > Electronic SweetPeas ESP320
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:

  • framework-arduinoespressif32 3.10004.200129 (1.0.4)
  • tool-esptoolpy 1.20600.0 (2.6.0)
  • tool-mkspiffs 2.230.0 (2.30)
  • toolchain-xtensa32 2.50200.80 (5.2.0)
    Converting WiFiScan.ino
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 26 compatible libraries
    Scanning dependencies…
    Dependency Graph
    |-- 1.0
    Building in release mode
    Compiling .pio\build\esp320\src\WiFiScan.ino.cpp.o
    Generating partitions .pio\build\esp320\partitions.bin
    Compiling .pio\build\esp320\lib4cf\WiFi\ETH.cpp.o
    Compiling .pio\build\esp320\lib4cf\WiFi\WiFi.cpp.o
    Compiling .pio\build\esp320\lib4cf\WiFi\WiFiAP.cpp.o
    Compiling .pio\build\esp320\lib4cf\WiFi\WiFiClient.cpp.o
    Compiling .pio\build\esp320\lib4cf\WiFi\WiFiGeneric.cpp.o
    Compiling .pio\build\esp320\lib4cf\WiFi\WiFiMulti.cpp.o
    Compiling .pio\build\esp320\lib4cf\WiFi\WiFiSTA.cpp.o
    Compiling .pio\build\esp320\lib4cf\WiFi\WiFiScan.cpp.o
    Compiling .pio\build\esp320\lib4cf\WiFi\WiFiServer.cpp.o
    Compiling .pio\build\esp320\lib4cf\WiFi\WiFiUdp.cpp.o
    Archiving .pio\build\esp320\libFrameworkArduinoVariant.a
    Compiling .pio\build\esp320\FrameworkArduino\Esp.cpp.o
    Compiling .pio\build\esp320\FrameworkArduino\FunctionalInterrupt.cpp.o
    Compiling .pio\build\esp320\FrameworkArduino\HardwareSerial.cpp.o
    Compiling .pio\build\esp320\FrameworkArduino\IPAddress.cpp.o
    Compiling .pio\build\esp320\FrameworkArduino\IPv6Address.cpp.o
    Compiling .pio\build\esp320\FrameworkArduino\MD5Builder.cpp.o
    Compiling .pio\build\esp320\FrameworkArduino\Print.cpp.o
    Archiving .pio\build\esp320\lib4cf\libWiFi.a
    Compiling .pio\build\esp320\FrameworkArduino\Stream.cpp.o
    Compiling .pio\build\esp320\FrameworkArduino\StreamString.cpp.o
    Compiling .pio\build\esp320\FrameworkArduino\WMath.cpp.o
    Compiling .pio\build\esp320\FrameworkArduino\WString.cpp.o
    Compiling .pio\build\esp320\FrameworkArduino\base64.cpp.o
    Compiling .pio\build\esp320\FrameworkArduino\cbuf.cpp.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-adc.c.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-bt.c.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-cpu.c.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-dac.c.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-gpio.c.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-i2c.c.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-ledc.c.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-matrix.c.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-misc.c.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-psram.c.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-rmt.c.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-sigmadelta.c.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-spi.c.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-time.c.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-timer.c.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-touch.c.o
    Compiling .pio\build\esp320\FrameworkArduino\esp32-hal-uart.c.o
    Compiling .pio\build\esp320\FrameworkArduino\libb64\cdecode.c.o
    Compiling .pio\build\esp320\FrameworkArduino\libb64\cencode.c.o
    Compiling .pio\build\esp320\FrameworkArduino\main.cpp.o
    Compiling .pio\build\esp320\FrameworkArduino\stdlib_noniso.c.o
    Compiling .pio\build\esp320\FrameworkArduino\wiring_pulse.c.o
    Compiling .pio\build\esp320\FrameworkArduino\wiring_shift.c.o
    Archiving .pio\build\esp320\libFrameworkArduino.a
    Linking .pio\build\esp320\firmware.elf
    Building .pio\build\esp320\firmware.bin
    Retrieving maximum program size .pio\build\esp320\firmware.elf
    Checking size .pio\build\esp320\firmware.elf
    Advanced Memory Usage is available via “PlatformIO Home > Project Inspect”
    RAM: [= ] 11.8% (used 38696 bytes from 327680 bytes)
    Flash: [===== ] 47.7% (used 625406 bytes from 1310720 bytes)
    esptool.py v2.6
    Configuring upload protocol…
    AVAILABLE: esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
    CURRENT: upload_protocol = esptool
    Error: Please specify upload_port for environment or use global --upload-port option.
    Looking for upload port…
    For some development platforms it can be a USB flash drive (i.e. /media//)
    *** [upload] Explicit exit, status 1
    ================================================================================================== [FAILED] Took 11.35 seconds ==================================================================================================

Environment Status Duration


esp32dev FAILED 00:00:08.032
esp wrover kit FAILED 00:00:10.687
espea32 FAILED 00:00:11.493
esp320 FAILED 00:00:11.354
============================================================================================= 4 failed, 0 succeeded in 00:00:41.566 =============================================================================================
The terminal process “C:\Users\donvu.platformio\penv\Scripts\platformio.exe ‘run’, ‘–target’, ‘upload’” terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

Hm it should have autodetected the COM port. Is no device connected?

Ah, also remove the Zadig for the COM ports, that’s only needed for JTAG uploads (I think by replugging the device). Then it should work.

You can always manually specifify upload_port = COM23 or whatever port you have.

Where do I put " upload_port = COM4" ??

Also where do I find the instructions that says where I should have put it ??

I added these lines to platformio.ini:
[env:esp32dev]
platform = espressif32
framework = arduino
board = esp32dev
monitor_speed = 115200
upload_port = COM4

Executing task: C:\Users\donvu.platformio\penv\Scripts\platformio.exe run <

Processing esp32dev (platform: espressif32; framework: arduino; board: esp32dev)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 1.12.4 > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:

  • framework-arduinoespressif32 3.10004.200129 (1.0.4)
  • tool-esptoolpy 1.20600.0 (2.6.0)
  • toolchain-xtensa32 2.50200.80 (5.2.0)
    Converting WiFiScan.ino
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 26 compatible libraries
    Scanning dependencies…
    Dependency Graph
    |-- 1.0
    Building in release mode
    Compiling .pio\build\esp32dev\src\WiFiScan.ino.cpp.o
    Linking .pio\build\esp32dev\firmware.elf
    Building .pio\build\esp32dev\firmware.bin
    Retrieving maximum program size .pio\build\esp32dev\firmware.elf
    Checking size .pio\build\esp32dev\firmware.elf
    Advanced Memory Usage is available via “PlatformIO Home > Project Inspect”
    RAM: [= ] 11.8% (used 38696 bytes from 327680 bytes)
    Flash: [===== ] 47.7% (used 625406 bytes from 1310720 bytes)
    esptool.py v2.6
    ================================================================================================== [SUCCESS] Took 4.77 seconds ==================================================================================================

Terminal will be reused by tasks, press any key to close it.

The ESP32-Thing board was not programmed. :frowning:

EDIT: I restarted my computer and reloading VSC, works now.

Thank You for your hand holding.

As always the docs.platformio.org/, specifically https://docs.platformio.org/en/latest/projectconf/section_env_upload.html#upload-port in your case.

Seems like a restart was needed to get back to stock drivers.