Hello Max,
Thanks for this, I now have a display working….big step forward!
I removed my example project from the platformio IDE and left the T-Display-S3-main in the workspace.
In the platformio.ini file I un-commented various examples to test and directed the Switch PlatformIO Project Environment to match accordingly after I’d saved the platformio.ini file.
Examples, Arduino_GFX PDQgraphistest, Arduino_GFXDemo, tft, TFT_Rainbow, ImageScroll, PokerS3 all work fine.
However, even though PCBClock builds and downloads correctly it doesn’t seem to work and remains elusive? The screen still has the last example/displays the last downloaded file?
[platformio]
; default_envs = Arduino_GFX_PDQgraphicstest
; default_envs = Arduino_GFXDemo
;;default_envs = factory
; default_envs = Sleep
;; default_envs = lv_demos
; default_envs = nes
; default_envs = sd
; default_envs = tft
; default_envs = TFT_Rainbow
; default_envs = touch_test
; default_envs = usb_hid_pad
; default_envs = ota
; default_envs = SerialExample
; default_envs = T-Display-S3-MIDI
;; default_envs = T-Display-S3-Piano
; default_envs = ImageScroll
; default_envs = GetBatteryVoltage
; default_envs = PokerS3
default_envs = PCBClock
; default_envs = WIFI_Audio_I2S
; default_envs = CapacitiveTouch
src_dir = examples/${platformio.default_envs}
boards_dir = ./boards
Here is the Upload output:
Processing PCBClock (platform: espressif32@6.5.0; board: lilygo-t-displays3; framework: arduino)
Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/lilygo-t-displays3.html
PLATFORM: Espressif 32 (6.5.0) > T-DisplayS3
HARDWARE: ESP32S3 240MHz, 320KB RAM, 16MB Flash
DEBUG: Current (esp-builtin) 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.20014.231204 (2.0.14)
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)
tool-openocd-esp32 @ 2.1100.20220706 (11.0)
toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
Converting PCBClock.ino
LDF: Library Dependency Finder →
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 40 compatible libraries
Scanning dependencies…
Dependency Graph
|-- TFT_eSPI @ 2.5.43
|-- WiFi @ 2.0.0
Building in release mode
Compiling .pio\build\PCBClock\src\PCBClock.ino.cpp.o
Retrieving maximum program size .pio\build\PCBClock\firmware.elf
Checking size .pio\build\PCBClock\firmware.elf
Advanced Memory Usage is available via “PlatformIO Home > Project Inspect”
RAM: [= ] 14.5% (used 47424 bytes from 327680 bytes)
Flash: [===== ] 48.1% (used 3153193 bytes from 6553600 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: COM10
Uploading .pio\build\PCBClock\firmware.bin
esptool.py v4.5.1
Serial port COM10
Connecting…
Chip is ESP32-S3 (revision v0.2)
Features: WiFi, BLE
Crystal is 40MHz
MAC: e0:72:a1:a1:09:3c
Uploading stub…
Running stub…
Stub running…
Changing baud rate to 921600
Changed.
Configuring flash size…
Flash will be erased from 0x00000000 to 0x00003fff…
Flash will be erased from 0x00008000 to 0x00008fff…
Flash will be erased from 0x0000e000 to 0x0000ffff…
Flash will be erased from 0x00010000 to 0x00311fff…
Compressed 15104 bytes to 10401…
Writing at 0x00000000… (100 %)
Wrote 15104 bytes (10401 compressed) at 0x00000000 in 0.3 seconds (effective 396.7 kbit/s)…
Hash of data verified.
Compressed 3072 bytes to 146…
Writing at 0x00008000… (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.1 seconds (effective 332.5 kbit/s)…
Hash of data verified.
Compressed 8192 bytes to 47…
Writing at 0x0000e000… (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 510.5 kbit/s)…
Hash of data verified.
Compressed 3153552 bytes to 1386190…
Writing at 0x00010000… (1 %)
Writing at 0x0001ba4f… (2 %)
Writing at 0x00024631… (3 %)
Writing at 0x0002fb7c… (4 %)
Writing at 0x0003a814… (5 %)
Writing at 0x00042edb… (7 %)
Writing at 0x0004f54d… (8 %)
Writing at 0x0005875c… (9 %)
Writing at 0x00063d66… (10 %)
Writing at 0x0006e9ec… (11 %)
Writing at 0x00076b7a… (12 %)
Writing at 0x00081afc… (14 %)
Writing at 0x0008c830… (15 %)
Writing at 0x00096863… (16 %)
Writing at 0x000a2c71… (17 %)
Writing at 0x000aa675… (18 %)
Writing at 0x000b5a6d… (20 %)
Writing at 0x000c0739… (21 %)
Writing at 0x000c90fd… (22 %)
Writing at 0x000d5ece… (23 %)
Writing at 0x000de6c5… (24 %)
Writing at 0x000e9b61… (25 %)
Writing at 0x000f4890… (27 %)
Writing at 0x000fcdbc… (28 %)
Writing at 0x0010922c… (29 %)
Writing at 0x001123b9… (30 %)
Writing at 0x0011da4b… (31 %)
Writing at 0x001287b9… (32 %)
Writing at 0x00130ad8… (34 %)
Writing at 0x0013c570… (35 %)
Writing at 0x0014733f… (36 %)
Writing at 0x00153335… (37 %)
Writing at 0x0015e78b… (38 %)
Writing at 0x001678f2… (40 %)
Writing at 0x001753da… (41 %)
Writing at 0x0017e3c4… (42 %)
Writing at 0x0018a370… (43 %)
Writing at 0x00195618… (44 %)
Writing at 0x0019f834… (45 %)
Writing at 0x001acca5… (47 %)
Writing at 0x001b51b9… (48 %)
Writing at 0x001c1468… (49 %)
Writing at 0x001cc147… (50 %)
Writing at 0x001d8238… (51 %)
Writing at 0x001e34a9… (52 %)
Writing at 0x001ec689… (54 %)
Writing at 0x001fa8c2… (55 %)
Writing at 0x0020357f… (56 %)
Writing at 0x0020ef26… (57 %)
Writing at 0x0021a3bf… (58 %)
Writing at 0x0022539b… (60 %)
Writing at 0x00231db8… (61 %)
Writing at 0x0023ac84… (62 %)
Writing at 0x00247bd8… (63 %)
Writing at 0x00251d35… (64 %)
Writing at 0x0025e161… (65 %)
Writing at 0x0026942c… (67 %)
Writing at 0x0027416c… (68 %)
Writing at 0x0027ed98… (69 %)
Writing at 0x00284952… (70 %)
Writing at 0x0028a058… (71 %)
Writing at 0x0028fb63… (72 %)
Writing at 0x002950bd… (74 %)
Writing at 0x0029a263… (75 %)
Writing at 0x0029f24f… (76 %)
Writing at 0x002a407d… (77 %)
Writing at 0x002a8fd3… (78 %)
Writing at 0x002adef1… (80 %)
Writing at 0x002b317f… (81 %)
Writing at 0x002b81c6… (82 %)
Writing at 0x002bda08… (83 %)
Writing at 0x002c3139… (84 %)
Writing at 0x002c7e60… (85 %)
Writing at 0x002ccf77… (87 %)
Writing at 0x002d1e90… (88 %)
Writing at 0x002d737c… (89 %)
Writing at 0x002dc7dc… (90 %)
Writing at 0x002e214c… (91 %)
Writing at 0x002e7a22… (92 %)
Writing at 0x002ed167… (94 %)
Writing at 0x002f56de… (95 %)
Writing at 0x002fc5c3… (96 %)
Writing at 0x003031fe… (97 %)
Writing at 0x00308ce2… (98 %)
Writing at 0x0030e523… (100 %)
Wrote 3153552 bytes (1386190 compressed) at 0x00010000 in 25.9 seconds (effective 973.3 kbit/s)…
Hash of data verified.
Leaving…
Hard resetting via RTS pin…
======================================================== [SUCCESS] Took 41.54 seconds ========================================================
Environment Status Duration
PCBClock SUCCESS 00:00:41.544
======================================================== 1 succeeded in 00:00:41.544 =======================================================
If I then choose an alternative example like ImageScroll, it works perfectly.
Any suggestions why?
Regards,
Degs