PlatformIO Community

SPIFFS Not Recognized

In short, I just tested my TTGO T-Display using PlatformIO as IDE.
I cloned the source code from here and added platformio.ini, run the menuconfig for TTGO, so it becomes like this

Here’s the partitions_example.csv

# Name,   Type, SubType, Offset,  Size, Flags
# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
nvs,      data, nvs,     0x9000,  0x6000,
phy_init, data, phy,     0xf000,  0x1000,
factory,  app,  factory, 0x10000, 1M,
spiffs,  data, spiffs,  0x180000, 2M, 

The menuconfig resulted in this sdkconfig.esp32dev

#
# TFT SPIFFS
#
CONFIG_SPIFFS_BASE_ADDR=1572864
CONFIG_SPIFFS_SIZE=2097152
CONFIG_SPIFFS_LOG_BLOCK_SIZE=8192
CONFIG_SPIFFS_LOG_PAGE_SIZE=256
# end of TFT SPIFFS

What bothers me is that it is not recognizing the SPIFFS and formatting the location

---------------------
Graphics demo started
---------------------


␛[0;32mI (2594) [SPIFFS]: Registering SPIFFS file system␛[0m
␛[0;32mI (2594) [SPIFFS]: Mounting SPIFFS files system␛[0m
␛[0;32mI (2594) [SPIFFS]: Start address: 0x180000; Size 2048 KB␛[0m
␛[0;32mI (2600) [SPIFFS]:   Work buffer: 2048 B␛[0m
␛[0;32mI (2604) [SPIFFS]:    FDS buffer: 384 B␛[0m
␛[0;32mI (2609) [SPIFFS]:    Cache size: 2048 B␛[0m
␛[0;33mW (2624) [SPIFFS]: No file system detected, formating...␛[0m

Although the partition table looks correct to me

␛[0;32mI (59) boot: Partition Table:␛[0m
␛[0;32mI (62) boot: ## Label            Usage          Type ST Offset   Length␛[0m  
␛[0;32mI (70) boot:  0 nvs              WiFi data        01 02 00009000 00006000␛[0m
␛[0;32mI (77) boot:  1 phy_init         RF data          01 01 0000f000 00001000␛[0m
␛[0;32mI (85) boot:  2 factory          factory app      00 00 00010000 00100000␛[0m
␛[0;32mI (92) boot:  3 spiffs           Unknown data     01 82 00180000 00200000␛[0m
␛[0;32mI (100) boot: End of partition table␛[0m

What’s wrong with my config?

Nope, PlatformIO has a bug that leads to the SPIFFS not being recognized here. Exactly as discussed per ESP32 Spiffs upload - application can't recognize uploaded SPIFFS image - #2 by maxgerhardt and https://github.com/platformio/platform-espressif32/issues/627.

Is it the same? He’s specified the correct offset in his csv file

Hmm you are indeed correct – PlatformIO should be correctly flashing SPIFFS to 0x180000 when the offset information is present. I would have to check that in the verbose output.

If you try to compile/run the basic spiffs example here, does it work?

i’ll check that when i have time, later. thanks, guys, for responding

If you try to compile/run the basic spiffs example here, does it work?

Seems to work:

legacy Click
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at http://bit.ly/pio-monitor-filters
--- Miniterm on COM4  115200,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:7136
load:0x40078000,len:14292
ho 0 tail 12 room 4
load:0x40080400,len:3688
entry 0x40080678
␛[0;32mI (29) boot: ESP-IDF 4.3.0 2nd stage bootloader␛[0m
␛[0;32mI (29) boot: compile time 19:50:59␛[0m
␛[0;32mI (29) boot: chip revision: 3␛[0m
␛[0;32mI (32) boot_comm: chip revision: 3, min. bootloader chip revision: 0␛[0m
␛[0;32mI (39) boot.esp32: SPI Speed      : 40MHz␛[0m
␛[0;32mI (44) boot.esp32: SPI Mode       : DIO␛[0m
␛[0;32mI (48) boot.esp32: SPI Flash Size : 4MB␛[0m
␛[0;32mI (53) boot: Enabling RNG early entropy source...␛[0m
␛[0;32mI (58) boot: Partition Table:␛[0m
␛[0;32mI (62) boot: ## Label            Usage          Type ST Offset   Length␛[0m
␛[0;32mI (69) boot:  0 nvs              WiFi data        01 02 00009000 00006000␛[0m
␛[0;32mI (76) boot:  1 phy_init         RF data          01 01 0000f000 00001000␛[0m
␛[0;32mI (84) boot:  2 factory          factory app      00 00 00010000 00100000␛[0m
␛[0;32mI (91) boot:  3 spiffs           Unknown data     01 82 00110000 000f0000␛[0m
␛[0;32mI (99) boot: End of partition table␛[0m
␛[0;32mI (103) boot_comm: chip revision: 3, min. application chip revision: 0␛[0m
␛[0;32mI (110) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=07210h ( 29200) map␛[0m
␛[0;32mI (130) esp_image: segment 1: paddr=00017238 vaddr=3ffb0000 size=02c1ch ( 11292) load␛[0m
␛[0;32mI (135) esp_image: segment 2: paddr=00019e5c vaddr=40080000 size=061bch ( 25020) load␛[0m
␛[0;32mI (146) esp_image: segment 3: paddr=00020020 vaddr=400d0020 size=18f40h (102208) map␛[0m
␛[0;32mI (185) esp_image: segment 4: paddr=00038f68 vaddr=400861bc size=052d8h ( 21208) load␛[0m
␛[0;32mI (194) esp_image: segment 5: paddr=0003e248 vaddr=50000000 size=00010h (    16) load␛[0m
␛[0;32mI (201) boot: Loaded app from partition at offset 0x10000␛[0m
␛[0;32mI (201) boot: Disabling RNG early entropy source...␛[0m
␛[0;32mI (216) cpu_start: Pro cpu up.␛[0m
␛[0;32mI (216) cpu_start: Starting app cpu, entry point is 0x40081034␛[0m
␛[0;32mI (0) cpu_start: App cpu up.␛[0m
␛[0;32mI (230) cpu_start: Pro cpu start user code␛[0m
␛[0;32mI (230) cpu_start: cpu freq: 160000000␛[0m
␛[0;32mI (230) cpu_start: Application information:␛[0m
␛[0;32mI (235) cpu_start: Project name:     spiffs␛[0m
␛[0;32mI (240) cpu_start: App version:      v1.12.4-89-g1e0f147␛[0m
␛[0;32mI (246) cpu_start: Compile time:     Oct 20 2021 19:41:52␛[0m
␛[0;32mI (252) cpu_start: ELF file SHA256:  8fb11d7b7cc54772...␛[0m
␛[0;32mI (258) cpu_start: ESP-IDF:          4.3.0␛[0m
␛[0;32mI (263) heap_init: Initializing. RAM available for dynamic allocation:␛[0m
␛[0;32mI (270) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM␛[0m
␛[0;32mI (276) heap_init: At 3FFB3440 len 0002CBC0 (178 KiB): DRAM␛[0m
␛[0;32mI (282) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM␛[0m
␛[0;32mI (288) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM␛[0m
␛[0;32mI (295) heap_init: At 4008B494 len 00014B6C (82 KiB): IRAM␛[0m
␛[0;32mI (302) spi_flash: detected chip: generic␛[0m
␛[0;32mI (306) spi_flash: flash io: dio␛[0m
␛[0;32mI (311) cpu_start: Starting scheduler on PRO CPU.␛[0m
␛[0;32mI (0) cpu_start: Starting scheduler on APP CPU.␛[0m
␛[0;32mI (320) example: Initializing SPIFFS␛[0m
␛[0;32mI (430) example: Partition size: total: 896321, used: 502␛[0m
␛[0;32mI (430) example: Reading file␛[0m
␛[0;32mI (430) example: Read from file: 'Hello World from SPIFFS.'␛[0m
␛[0;32mI (430) example: SPIFFS unmounted␛[0m

hi, max, here’s some output you may want to see:

Processing esp32dev (platform: espressif32; framework: espidf; board: esp32dev)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.1) > 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-espidf 3.40200.210118 (4.2.0)
 - tool-cmake 3.16.4
 - tool-esptoolpy 1.30100.210531 (3.1.0)
 - tool-idf 1.0.1
 - tool-mconf 1.4060000.20190628 (406.0.0)
 - tool-mkspiffs 2.230.0 (2.30)
 - tool-ninja 1.9.0
 - toolchain-esp32ulp 1.22851.191205 (2.28.51)
 - toolchain-xtensa32 2.80400.210114 (8.4.0)
WARNING: You are using pip version 21.2.4; however, version 21.3 is available.
You should consider upgrading via the 'c:\users\krembuk\.platformio\penv\scripts\python.exe -m pip install --upgrade pip' command.
Reading CMake configuration...
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\esp32dev\app_update\esp_app_desc.o
Archiving .pio\build\esp32dev\esp-idf\app_update\libapp_update.a
Generating project linker script .pio\build\esp32dev\esp32.project.ld
warning: the int symbol SPIFFS_BASE_ADDR (defined at C:/Users/krembuk/Documents/PlatformIO/Projects/TTGO/components/spiffs/Kconfig:3) has a non-int default 0x180000 (undefined)
Linking .pio\build\esp32dev\firmware.elf
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:   [=         ]   7.0% (used 22948 bytes from 327680 bytes)
Flash: [==        ]  23.4% (used 245352 bytes from 1048576 bytes)
Building .pio\build\esp32dev\firmware.bin
esptool.py v3.1
Merged 1 ELF section
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: COM4
Uploading .pio\build\esp32dev\firmware.bin
esptool.py v3.1
Serial port COM4
Connecting.......
Chip is ESP32-D0WDQ6-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 84:cc:a8:60:91:d0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00001000 to 0x00007fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x00010000 to 0x0004bfff...
Compressed 25232 bytes to 15290...
Writing at 0x00001000... (100 %)
Wrote 25232 bytes (15290 compressed) at 0x00001000 in 0.8 seconds (effective 258.6 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 118...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (118 compressed) at 0x00008000 in 0.1 seconds (effective 345.4 kbit/s)...
Hash of data verified.
Compressed 245456 bytes to 142033...
Writing at 0x00010000... (11 %)
Writing at 0x00018f6d... (22 %)
Writing at 0x00021647... (33 %)
Writing at 0x00026abe... (44 %)
Writing at 0x0002c0ab... (55 %)
Writing at 0x000317d9... (66 %)
Writing at 0x0003adf3... (77 %)
Writing at 0x00042762... (88 %)
Writing at 0x00047e4e... (100 %)
Wrote 245456 bytes (142033 compressed) at 0x00010000 in 3.6 seconds (effective 541.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
================================================================================ [SUCCESS] Took 114.72 seconds ================================================================================

Here’s the SPIFFS upload

Processing esp32dev (platform: espressif32; framework: espidf; board: esp32dev)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.1) > 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-espidf 3.40200.210118 (4.2.0)
 - tool-cmake 3.16.4
 - tool-esptoolpy 1.30100.210531 (3.1.0)
 - tool-idf 1.0.1
 - tool-mconf 1.4060000.20190628 (406.0.0)
 - tool-mkspiffs 2.230.0 (2.30)
 - tool-ninja 1.9.0
 - toolchain-esp32ulp 1.22851.191205 (2.28.51)
 - toolchain-xtensa32 2.80400.210114 (8.4.0)
WARNING: You are using pip version 21.2.4; however, version 21.3 is available.
You should consider upgrading via the 'c:\users\krembuk\.platformio\penv\scripts\python.exe -m pip install --upgrade pip' command.
Reading CMake configuration...
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\esp32dev\app_update\esp_app_desc.o
Archiving .pio\build\esp32dev\esp-idf\app_update\libapp_update.a
Generating project linker script .pio\build\esp32dev\esp32.project.ld
warning: the int symbol SPIFFS_BASE_ADDR (defined at C:/Users/krembuk/Documents/PlatformIO/Projects/TTGO/components/spiffs/Kconfig:3) has a non-int default 0x180000 (undefined)
Linking .pio\build\esp32dev\firmware.elf
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:   [=         ]   7.0% (used 22948 bytes from 327680 bytes)
Flash: [==        ]  23.4% (used 245352 bytes from 1048576 bytes)
Building .pio\build\esp32dev\firmware.bin
esptool.py v3.1
Merged 1 ELF section
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: COM4
Uploading .pio\build\esp32dev\firmware.bin
esptool.py v3.1
Serial port COM4
Connecting.......
Chip is ESP32-D0WDQ6-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 84:cc:a8:60:91:d0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00001000 to 0x00007fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x00010000 to 0x0004bfff...
Compressed 25232 bytes to 15290...
Writing at 0x00001000... (100 %)
Wrote 25232 bytes (15290 compressed) at 0x00001000 in 0.8 seconds (effective 258.6 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 118...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (118 compressed) at 0x00008000 in 0.1 seconds (effective 345.4 kbit/s)...
Hash of data verified.
Compressed 245456 bytes to 142033...
Writing at 0x00010000... (11 %)
Writing at 0x00018f6d... (22 %)
Writing at 0x00021647... (33 %)
Writing at 0x00026abe... (44 %)
Writing at 0x0002c0ab... (55 %)
Writing at 0x000317d9... (66 %)
Writing at 0x0003adf3... (77 %)
Writing at 0x00042762... (88 %)
Writing at 0x00047e4e... (100 %)
Wrote 245456 bytes (142033 compressed) at 0x00010000 in 3.6 seconds (effective 541.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
================================================================================ [SUCCESS] Took 114.72 seconds ================================================================================

Okay I think now we’re getting somewhere. The project you reference is 4 years old and somehow has its own SPIFFS component (which is built-in into ESP-IDF nowadays) and it throws at least a warning regarding the flash address. This is also noted in

Interesting, none of the addresses are that of the SPIFFS filesystem. Only bootloader and firmware stuff, but not SPIFFS at the expected 0x180000.

I’ll have a look it at it. Likely the project needs an update to work with current stuff and not with 4 year old stuff. If I look into https://github.com/loboris/ESP32_TFT_library/pulls there are also a lot of pull requests open to update it to newer ESP-IDF versions, but the project seems abandoned since 2018…

Thanks for pointing to this. I didn’t even notice that. I’ll look into it later.

I pasted from the wrong console, but I already edited my post.

The output still showsd the firmware upload, not SPIFFS upload.

Sorry. Here it is…

Processing esp32dev (platform: espressif32; framework: espidf; board: esp32dev)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.1) > 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-espidf 3.40200.210118 (4.2.0)
 - tool-cmake 3.16.4
 - tool-esptoolpy 1.30100.210531 (3.1.0)
 - tool-idf 1.0.1
 - tool-mconf 1.4060000.20190628 (406.0.0)
 - tool-mkspiffs 2.230.0 (2.30)
 - tool-ninja 1.9.0
 - toolchain-esp32ulp 1.22851.191205 (2.28.51)
 - toolchain-xtensa32 2.80400.210114 (8.4.0)
WARNING: You are using pip version 21.2.4; however, version 21.3 is available.
You should consider upgrading via the 'c:\users\krembuk\.platformio\penv\scripts\python.exe -m pip install --upgrade pip' command.
Reading CMake configuration...
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Building SPIFFS image from 'data' directory to .pio\build\esp32dev\spiffs.bin
/fonts/arial_bold.fon
/fonts/BigFont.fon
/fonts/DejaVuSans12.fon
/fonts/DejaVuSans18.fon
/fonts/DejaVuSans24.fon
/fonts/DotMatrix_M.fon
/fonts/Grotesk24x48.fon
/fonts/ocrfont.c
/fonts/Orbitron-Medium.fon
/fonts/SmallFont.fon
/fonts/swiss721_outline.fon
/fonts/Ubuntu.fon
/images/test1.jpg
/images/test2.jpg
/images/test3.jpg
/images/test4.jpg
/images/tiger.bmp
Looking for upload port...
Auto-detected: COM4
Uploading .pio\build\esp32dev\spiffs.bin
esptool.py v3.1
Serial port COM4
Connecting....
Chip is ESP32-D0WDQ6-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 84:cc:a8:60:91:d0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00180000 to 0x0037ffff...
Compressed 2097152 bytes to 723353...
Writing at 0x00180000... (2 %)
Writing at 0x0019cd89... (4 %)
Writing at 0x001a9b84... (6 %)
Writing at 0x001b1d5a... (8 %)
Writing at 0x001ba41b... (11 %)
Writing at 0x001c2598... (13 %)
Writing at 0x001ca8d9... (15 %)
Writing at 0x001d2d72... (17 %)
Writing at 0x001db222... (20 %)
Writing at 0x001e3564... (22 %)
Writing at 0x001eba57... (24 %)
Writing at 0x001f3bb2... (26 %)
Writing at 0x001fc125... (28 %)
Writing at 0x00204866... (31 %)
Writing at 0x0020de4e... (33 %)
Writing at 0x0021726c... (35 %)
Writing at 0x00220284... (37 %)
Writing at 0x00229109... (40 %)
Writing at 0x00231ec2... (42 %)
Writing at 0x0023aa97... (44 %)
Writing at 0x00243619... (46 %)
Writing at 0x0024bfb5... (48 %)
Writing at 0x00254a20... (51 %)
Writing at 0x0025d626... (53 %)
Writing at 0x00266255... (55 %)
Writing at 0x0026ec84... (57 %)
Writing at 0x00277900... (60 %)
Writing at 0x002804b9... (62 %)
Writing at 0x00288d4e... (64 %)
Writing at 0x002914e9... (66 %)
Writing at 0x00299d9d... (68 %)
Writing at 0x002a275a... (71 %)
Writing at 0x002aaf0a... (73 %)
Writing at 0x002b3743... (75 %)
Writing at 0x002bbea3... (77 %)
Writing at 0x002c4810... (80 %)
Writing at 0x002ccf8e... (82 %)
Writing at 0x002d56b1... (84 %)
Writing at 0x002ddfb5... (86 %)
Writing at 0x002e6951... (88 %)
Writing at 0x002ef522... (91 %)
Writing at 0x002f8243... (93 %)
Writing at 0x003012c5... (95 %)
Writing at 0x0030a65b... (97 %)
Writing at 0x00313a00... (100 %)
Wrote 2097152 bytes (723353 compressed) at 0x00180000 in 18.9 seconds (effective 886.6 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
================================================================================ [SUCCESS] Took 32.72 seconds ================================================================================



--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at http://bit.ly/pio-monitor-filters
--- Miniterm on COM4  115200,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:7368
load:0x40078000,len:13212
ho 0 tail 12 room 4
load:0x40080400,len:4568
entry 0x400806f4
␛[0;32mI (29) boot: ESP-IDF 3.40200.210118 2nd stage bootloader␛[0m
␛[0;32mI (29) boot: compile time 14:31:49␛[0m
␛[0;32mI (29) boot: chip revision: 3␛[0m
␛[0;32mI (33) boot_comm: chip revision: 3, min. bootloader chip revision: 0␛[0m
␛[0;32mI (40) boot.esp32: SPI Speed      : 40MHz␛[0m
␛[0;32mI (44) boot.esp32: SPI Mode       : DIO␛[0m
␛[0;32mI (49) boot.esp32: SPI Flash Size : 4MB␛[0m
␛[0;32mI (53) boot: Enabling RNG early entropy source...␛[0m
␛[0;32mI (59) boot: Partition Table:␛[0m
␛[0;32mI (62) boot: ## Label            Usage          Type ST Offset   Length␛[0m  
␛[0;32mI (70) boot:  0 nvs              WiFi data        01 02 00009000 00006000␛[0m
␛[0;32mI (77) boot:  1 phy_init         RF data          01 01 0000f000 00001000␛[0m
␛[0;32mI (85) boot:  2 factory          factory app      00 00 00010000 00100000␛[0m
␛[0;32mI (92) boot:  3 spiffs           Unknown data     01 82 00180000 00200000␛[0m
␛[0;32mI (100) boot: End of partition table␛[0m
␛[0;32mI (104) boot_comm: chip revision: 3, min. application chip revision: 0␛[0m
␛[0;32mI (111) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x0aeb4 ( 44724) map␛[0m
␛[0;32mI (137) esp_image: segment 1: paddr=0x0001aedc vaddr=0x3ffb0000 size=0x05014 ( 20500) load␛[0m
␛[0;32mI (146) esp_image: segment 2: paddr=0x0001fef8 vaddr=0x40080000 size=0x00120 (   288) load␛[0m
␛[0;32mI (146) esp_image: segment 3: paddr=0x00020020 vaddr=0x400d0020 size=0x1fa14 (129556) map␛[0m
␛[0;32mI (202) esp_image: segment 4: paddr=0x0003fa3c vaddr=0x40080120 size=0x0c470 ( 50288) load␛[0m
␛[0;32mI (232) boot: Loaded app from partition at offset 0x10000␛[0m
␛[0;32mI (232) boot: Disabling RNG early entropy source...␛[0m
␛[0;32mI (233) cpu_start: Pro cpu up.␛[0m
␛[0;32mI (236) cpu_start: Application information:␛[0m
␛[0;32mI (241) cpu_start: Project name:     tft_demo␛[0m
␛[0;32mI (246) cpu_start: App version:      ab45223␛[0m
␛[0;32mI (251) cpu_start: Compile time:     Oct 20 2021 19:59:00␛[0m
␛[0;32mI (257) cpu_start: ELF file SHA256:  d2ec59a9e2009ea5...␛[0m
␛[0;32mI (263) cpu_start: ESP-IDF:          3.40200.210118␛[0m
␛[0;32mI (269) cpu_start: Starting app cpu, entry point is 0x4008313c␛[0m
␛[0;32mI (0) cpu_start: App cpu up.␛[0m
␛[0;32mI (279) heap_init: Initializing. RAM available for dynamic allocation:␛[0m
␛[0;32mI (286) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM␛[0m
␛[0;32mI (292) heap_init: At 3FFB59A8 len 0002A658 (169 KiB): DRAM␛[0m
␛[0;32mI (298) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM␛[0m
␛[0;32mI (305) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM␛[0m
␛[0;32mI (311) heap_init: At 4008C590 len 00013A70 (78 KiB): IRAM␛[0m
␛[0;32mI (317) cpu_start: Pro cpu start user code␛[0m
␛[0;32mI (335) spi_flash: detected chip: generic␛[0m
␛[0;32mI (336) spi_flash: flash io: dio␛[0m
␛[0;32mI (336) cpu_start: Starting scheduler on PRO CPU.␛[0m
␛[0;32mI (0) cpu_start: Starting scheduler on APP CPU.␛[0m

==============================
TFT display DEMO, LoBo 11/2017
==============================
Pins used: miso=0, mosi=19, sck=18, cs=5
==============================

SPI: display device added to spi bus (1)
SPI: attached display device, speed=8000000
SPI: bus uses native pins: false
SPI: display init...
OK
SPI: Max rd speed = 1000000
SPI: Changed speed to 20000000

---------------------
Graphics demo started
---------------------


␛[0;32mI (2593) [SPIFFS]: Registering SPIFFS file system␛[0m
␛[0;32mI (2593) [SPIFFS]: Mounting SPIFFS files system␛[0m
␛[0;32mI (2593) [SPIFFS]: Start address: 0x180000; Size 2048 KB␛[0m
␛[0;32mI (2599) [SPIFFS]:   Work buffer: 2048 B␛[0m
␛[0;32mI (2603) [SPIFFS]:    FDS buffer: 384 B␛[0m
␛[0;32mI (2608) [SPIFFS]:    Cache size: 2048 B␛[0m
␛[0;33mW (2623) [SPIFFS]: No file system detected, formating...␛[0m

Yeah PlatformIO definitely writes the SPIFFS to the correct place in flash, yet the SPIFFS component of the project can’t detect it. There might be a mismatch in the expected… data format?

In any case, I just took your GitHub version and rewrote it to use the standard SPIFFS component in ESP-IDF v4.3.0 (latest one, no deliberate downgrading to v4.2.0) and it works just fine regarding the SPIFFS mounting.

---------------------
Graphics demo started
---------------------


SPIFFS mounted successfully!
Partition size: total: 1920401 bytes, used: 773080 bytes

==========================================
Display: ST7789V: PORTRAIT 135,240 Color

       JPG Decode time: 350 ms
    BMP time, scale: 5: 492 ms
    BMP time, scale: 4: 453 ms
...

See https://github.com/krembuk/TTGO-Platformio/pull/1.

I now totally understand why the guy at https://github.com/jeremyjh/ESP32_TFT_library just said

For my own project I ended up using LVGL instead of this library.

PRs aren’t getting accepted into the original library and it’s based on an ancient ESP-IDF version.

Thanks for pinpointing this! I’ll check LVGL, too.