SPIFF issue with TFT library

alok_esp32
Posts: 4
Joined: Sat Apr 13, 2019 11:29 pm

SPIFF issue with TFT library

Postby alok_esp32 » Sat Mar 07, 2020 3:08 pm

Hi, I am new to ESP32 so may be its my lack of info but I see the below issue when flashing the SPIFFS. Can you share any pointeres

I am using ESP32 Wrover kit and trying to get TFT library working. I am using library - https://github.com/loboris/ESP32_TFT_library and it woks great except I cant read image from SPIFFS and bootloader fails when when I try to flash the SPIFFS image ESP32 bootloader fails. Any idea what I may be missing
Thanks

After I apply following two changes on latest code the library works great & I can see all these test screens on TFT builtin panel

zoon81@0ee6fd1
https://www.bountysource.com/issues/573 ... es-ili9341
and chage the SPI flash size from 2MB to 4MB under menuconfig


Next I attempted to display jpeg/bmp by building a SPIFFS
However whenever I perform

Code: Select all

make copyfs
(or flash fs) to flash a SPIFFS I see following exceptions and failures

rst:0x3 (SW_RESET),boot:0x3e (SPI_FAST_FLASH_BOOT)^M
configsip: 0, SPIWP:0xee^M
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00^M
mode:DIO, clock div:2^M
load:0x3fff0030,len:4^M
load:0x3fff0034,len:7148^M
load:0x40078000,len:14996^M
load:0x40080400,len:4432^M
entry 0x400806e8^M
^[[0;32mI (56) boot: ESP-IDF v4.2-dev-459-ge36516372-dirty 2nd stage bootloader^[[0m^M
^[[0;32mI (56) boot: compile time 08:34:36^[[0m^M
^[[0;32mI (58) boot: chip revision: 1^[[0m^M
^[[0;32mI (62) boot_comm: chip revision: 1, min. bootloader chip revision: 0^[[0m^M
^[[0;32mI (76) boot.esp32: SPI Speed : 40MHz^[[0m^M
^[[0;32mI (76) boot.esp32: SPI Mode : DIO^[[0m^M
^[[0;32mI (78) boot.esp32: SPI Flash Size : 4MB^[[0m^M
^[[0;32mI (83) boot: Enabling RNG early entropy source...^[[0m^M
^[[0;32mI (88) boot: Partition Table:^[[0m^M
^[[0;32mI (92) boot: ## Label Usage Type ST Offset Length^[[0m^M
^[[0;32mI (99) boot: 0 nvs WiFi data 01 02 00009000 00006000^[[0m^M
^[[0;32mI (106) boot: 1 phy_init RF data 01 01 0000f000 00001000^[[0m^M
^[[0;32mI (114) boot: 2 factory factory app 00 00 00010000 00100000^[[0m^M
^[[0;32mI (122) boot: 3 storage Unknown data 01 82 00180000 00100000^[[0m^M
^[[0;32mI (129) boot: End of partition table^[[0m^M
^[[0;32mI (133) boot_comm: chip revision: 1, min. application chip revision: 0^[[0m^M
^[[0;32mI (141) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x0ab58 ( 43864) map^[[0m^M
^[[0;32mI (165) esp_image: segment 1: paddr=0x0001ab80 vaddr=0x3ffb0000 size=0x050f4 ( 20724) load^[[0m^M
^[[0;32mI (174) esp_image: segment 2: paddr=0x0001fc7c vaddr=0x40080000 size=0x0039c ( 924) load^[[0m^M
^[[0;32mI (175) esp_image: segment 3: paddr=0x00020020 vaddr=0x400d0020 size=0x24f40 (151360) map^[[0m^M
^[[0;31mE (235) esp_image: invalid segment length 0xeb7596c0^[[0m^M
**^[[0;31mE (235) boot: Factory app partition is not bootable^[[0m^M
^[[0;31mE (235) boot: No bootable app partitions in the partition table^[[0m^M**

Horst Schlawutzke
Posts: 3
Joined: Mon Nov 25, 2019 2:39 pm

Re: SPIFF issue with TFT library

Postby Horst Schlawutzke » Sun May 24, 2020 11:22 am

same problem here.
reconfigured it w/o change.
then it magically worked.

for your reference, my boot sequence:

Code: Select all

rst:0x1 (POWERON_RESET),boot:0x1f (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:1
load:0x3fff0018,len:4
load:0x3fff001c,len:6796
load:0x40078000,len:12448
load:0x40080400,len:7368
entry 0x40080784
I (28) boot: ESP-IDF v3.3 2nd stage bootloader
I (28) boot: compile time 12:54:10
I (29) boot: Enabling RNG early entropy source...
I (33) qio_mode: Enabling default flash chip QIO
I (38) boot: SPI Speed      : 80MHz
I (42) boot: SPI Mode       : QOUT
I (46) boot: SPI Flash Size : 4MB
I (50) boot: Partition Table:
I (54) boot: ## Label            Usage          Type ST Offset   Length
I (61) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (69) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (76) boot:  2 factory          factory app      00 00 00010000 00100000
I (84) boot:  3 storage          Unknown data     01 82 00180000 00100000
I (91) boot: End of partition table
I (95) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x0f28c ( 62092) map
I (121) esp_image: segment 1: paddr=0x0001f2b4 vaddr=0x3ffb0000 size=0x00d5c (  3420) load
I (123) esp_image: segment 2: paddr=0x00020018 vaddr=0x400d0018 size=0x21e6c (138860) map
0x400d0018: _flash_cache_start at ??:?

I (166) esp_image: segment 3: paddr=0x00041e8c vaddr=0x3ffb0d5c size=0x040ac ( 16556) load
I (171) esp_image: segment 4: paddr=0x00045f40 vaddr=0x40080000 size=0x00400 (  1024) load
0x40080000: _WindowOverflow4 at C:/msys32/home/F70/esp/esp-idf/components/freertos/xtensa_vectors.S:1779

I (173) esp_image: segment 5: paddr=0x00046348 vaddr=0x40080400 size=0x0ac84 ( 44164) load
I (204) boot: Loaded app from partition at offset 0x10000
I (204) boot: Disabling RNG early entropy source...

Who is online

Users browsing this forum: Baidu [Spider] and 116 guests