Hi. After doing a fresh install of VSCode and reinstalling PlatformIO, I am still unable to flash my Adafruit ESP32-S3 TFT Feather consistently or at all. At first it was issues with the chip not responding, or some error to do with the packet transfers, but it now has ultimately ended up with a COM port issue that I have no idea how to even begin to fix.
I get the following error:
A fatal error occurred: Could not open COM6, the port doesn't exist
*** [upload] Error 2
The thing that confuses me is that I am able to recognize the microcontroller through Device Manager, and through PlatformIO itself as being on the same COM port.
I am unable to interface with the microcontroller through PuTTY and get this:
Here are the contents of my .ini file:
[env:adafruit_feather_esp32s3_tft]
platform = espressif32
board = adafruit_feather_esp32s3_tft
framework = arduino
lib_deps =
adafruit/Adafruit BNO055@^1.6.1
moononournation/GFX Library for Arduino@^1.3.8
adafruit/Adafruit MLX90393@^2.0.3
adafruit/Adafruit ST7735 and ST7789 Library@^1.10.3
And here is what the entire terminal says for when I fail to upload to the ESP32 S3 TFT Feather:
Processing adafruit_feather_esp32s3_tft (platform: espressif32; board: adafruit_feather_esp32s3_tft; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/adafruit_feather_esp32s3_tft.html
PLATFORM: Espressif 32 (6.4.0) > Adafruit Feather ESP32-S3 TFT
HARDWARE: ESP32S3 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, 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.20011.230801 (2.0.11)
- tool-esptoolpy @ 1.40501.0 (4.5.1)
- tool-mkfatfs @ 2.0.1
- tool-mklittlefs @ 1.203.210628 (2.3)
- tool-mkspiffs @ 2.230.0 (2.30)
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
- toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
Warning! An extra UF2 bootloader image is already added!
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 42 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Adafruit BNO055 @ 1.6.1
|-- GFX Library for Arduino @ 1.3.8
|-- Adafruit MLX90393 @ 2.0.3
|-- Adafruit ST7735 and ST7789 Library @ 1.10.3
|-- Adafruit GFX Library @ 1.11.9
|-- Adafruit Unified Sensor @ 1.1.13
|-- SPI @ 2.0.0
|-- Wire @ 2.0.0
Building in release mode
Retrieving maximum program size .pio\build\adafruit_feather_esp32s3_tft\firmware.elf
Checking size .pio\build\adafruit_feather_esp32s3_tft\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 9.4% (used 30684 bytes from 327680 bytes)
Flash: [== ] 21.0% (used 302837 bytes from 1441792 bytes)
Configuring upload protocol...
AVAILABLE: cmsis-dap, esp-bridge, esp-builtin, 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...
Auto-detected: COM6
Forcing reset using 1200bps open/close on port COM6
Waiting for the new upload port...
Uploading .pio\build\adafruit_feather_esp32s3_tft\firmware.bin
esptool.py v4.5.1
Serial port COM6
A fatal error occurred: Could not open COM6, the port doesn't exist
*** [upload] Error 2
Update: 4:03AM 10/15/23
Serial is working? There is no longer an issue with connecting to the microcontroller through PuTTY. However, the “COM port existing” issue still persists.