TTGO T-Beam can't upload Code

Hello , I’m trying since several days to upload Code to my TTGO T-Beam Board. But I don’t have success.
I have searched in this community and also by Google for a solution.

My Setup:
VS-Code/PlatformIO Core 5.2.4 Home 3.4.0
TTGO T-Beam Board T22_V1.1 20210222
T-Beam is connected via USB-Cabel to Computer

My Code is a simple BLINK-Sketch


platform =  espressif32
framework = arduino
board = ttgo-t-beam
monitor_speed = 115200

When I hit the Upload-Button this output appears in Terminal

> Executing task in folder 211219-124948-arduino-blink: C:\Users\georg\.platformio\penv\Scripts\platformio.exe run --target upload <

Processing ttgo-t-beam (platform: espressif32; framework: arduino; board: ttgo-t-beam)

Verbose mode can be enabled via `-v, --verbose` option
PLATFORM: Espressif 32 (3.4.0) > TTGO T-Beam
HARDWARE: ESP32 240MHz, 1.25MB 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)
 - framework-arduinoespressif32 3.10006.210326 (1.0.6)
 - tool-esptoolpy 1.30100.210531 (3.1.0)
 - tool-mkspiffs 2.230.0 (2.30)
 - toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder ->
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 28 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Retrieving maximum program size .pio\build\ttgo-t-beam\firmware.elf
Checking size .pio\build\ttgo-t-beam\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   1.0% (used 13580 bytes from 1310720 bytes)
Flash: [==        ]  20.2% (used 265358 bytes from 1310720 bytes)
Building .pio\build\ttgo-t-beam\firmware.bin
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...
Auto-detected: COM6
Uploading .pio\build\ttgo-t-beam\firmware.bin
======================= [SUCCESS] Took 4.83 seconds  =========================

No error is reported, but I miss a progressindicator for flashing the board

When I use the Arduino-IDE I can upload code (without pressing any button)

Output from Arduino-IDE v3.0-dev
Serial port COM6
Chip is ESP32-D0WDQ6-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 44:17:93:87:8d:30
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds...
Hash of data verified.
Compressed 17120 bytes to 11164...
Writing at 0x00001000... (100 %)
Wrote 17120 bytes (11164 compressed) at 0x00001000 in 1.0 seconds (effective 138.6 kbit/s)...
Hash of data verified.
Compressed 245568 bytes to 125265...
Writing at 0x00010000... (12 %)
Writing at 0x00014000... (25 %)
Writing at 0x00018000... (37 %)
Writing at 0x0001c000... (50 %)
Writing at 0x00020000... (62 %)
Writing at 0x00024000... (75 %)
Writing at 0x00028000... (87 %)
Writing at 0x0002c000... (100 %)
Wrote 245568 bytes (125265 compressed) at 0x00010000 in 11.1 seconds (effective 177.4 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 128...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.0 seconds (effective 1638.4 kbit/s)...
Hash of data verified.

Hard resetting via RTS pin...

Maybe there is only a little part missing in my PlatformIO-Setup, but I am still lost.

Best Regards

Problem solved

At an other Notebook I was able to upload Code to my TTGO T-beam board.

Then I removed at my PC (WIN10) in C:\Users\myName the directory .platformio

and started VS Code again, PlatformIO was installed again and now I can uplaod code to TTGO T-Beam-Board.

Best wishes for the New Year

1 Like