Hi there,
I am running ESP32_TFT_library tft_demo.c on M5Stack. I managed to compile without any errors and flashed to M5Stack. Also, makefs. However, the M5Stack does not display anything, but blank. What is going wrong? what display type should I set? It is the default type, DEFAULT_DISP_TYPE DISP_TYPE_ILI9341. Very appreciate your response. Thank you
-MONITOR
--- idf_monitor on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
[0m
I�ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x17 (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:0x3fff0018,len:4
load:0x3fff001c,len:5632
ho 0 tail 12 room 4
load:0x40078000,len:0
load:0x40078000,len:13912
entry 0x40078fd8
I (30) boot: ESP-IDF ca3faa6 2nd stage bootloader
I (30) boot: compile time 23:44:16
I (30) boot: Enabling RNG early entropy source...
I (35) boot: SPI Speed : 40MHz
I (39) boot: SPI Mode : DIO
I (43) boot: SPI Flash Size : 4MB
I (47) boot: Partition Table:
I (51) boot: ## Label Usage Type ST Offset Length
I (58) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (65) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (73) boot: 2 factory factory app 00 00 00010000 00100000
I (80) boot: 3 storage Unknown data 01 82 00180000 00100000
I (88) boot: End of partition table
I (92) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x15158 ( 86360) map
I (131) esp_image: segment 1: paddr=0x00025180 vaddr=0x3ffb0000 size=0x060e0 ( 24800) load
I (141) esp_image: segment 2: paddr=0x0002b268 vaddr=0x40080000 size=0x00400 ( 1024) load
0x40080000: _iram_start at /home/esp32/esp/esp-idf/components/freertos/./xtensa_vectors.S:1685
I (142) esp_image: segment 3: paddr=0x0002b670 vaddr=0x40080400 size=0x049a0 ( 18848) load
I (157) esp_image: segment 4: paddr=0x00030018 vaddr=0x400d0018 size=0x65d64 (417124) map
0x400d0018: _stext at ??:?
I (302) esp_image: segment 5: paddr=0x00095d84 vaddr=0x40084da0 size=0x0ba9c ( 47772) load
0x40084da0: vfs_spiffs_unlink at /home/esp32/esp/ESP32_TFT_library/components/spiffs/./spiffs_vfs.c:97
I (322) esp_image: segment 6: paddr=0x000a1828 vaddr=0x400c0000 size=0x00000 ( 0) load
I (333) boot: Loaded app from partition at offset 0x10000
I (333) boot: Disabling RNG early entropy source...
I (334) cpu_start: Pro cpu up.
I (338) cpu_start: Starting app cpu, entry point is 0x400810b8
0x400810b8: call_start_cpu1 at /home/esp32/esp/esp-idf/components/esp32/./cpu_start.c:215
I (0) cpu_start: App cpu up.
I (348) heap_init: Initializing. RAM available for dynamic allocation:
I (355) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (361) heap_init: At 3FFBBF18 len 000240E8 (144 KiB): DRAM
I (367) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (374) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (380) heap_init: At 4009083C len 0000F7C4 (61 KiB): IRAM
I (386) cpu_start: Pro cpu start user code
I (180) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
==============================
TFT display DEMO, LoBo 11/2017
==============================
Pins used: miso=19, mosi=23, 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 26666666
---------------------
Graphics demo started
---------------------
I (3322) [TFT Demo]: Time is not set yet. Connecting to WiFi and getting time over NTP.
I (3334) wifi: wifi firmware version: ebd3e5d
I (3335) wifi: config NVS flash: enabled
I (3335) wifi: config nano formating: disabled
I (3335) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (3345) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (3368) wifi: Init dynamic tx buffer num: 32
I (3368) wifi: Init data frame dynamic rx buffer num: 32
I (3368) wifi: Init management frame dynamic rx buffer num: 32
I (3372) wifi: wifi driver task: 3ffc4428, prio:23, stack:4096
I (3377) wifi: Init static rx buffer num: 10
I (3381) wifi: Init dynamic rx buffer num: 32
I (3386) wifi: wifi power manager task: 0x3ffc9068 prio: 21 stack: 2560
I (3392) [TFT Demo]: Setting WiFi configuration SSID WIKI2GHz4...
I (3456) phy: phy_version: 383.0, 79a622c, Jan 30 2018, 15:38:06, 0, 0
I (3458) wifi: mode : sta (30:ae:a4:4f:ae:c0)
I (4669) wifi: n:10 0, o:1 0, ap:255 255, sta:10 0, prof:1
I (5327) wifi: state: init -> auth (b0)
I (5330) wifi: state: auth -> assoc (0)
I (5335) wifi: state: assoc -> run (10)
I (6140) wifi: connected with WIKI2GHz4, channel 10
I (7333) event: sta ip: 192.168.1.130, mask: 255.255.255.0, gw: 192.168.1.1
I (7334) [TFT Demo]: Initializing SNTP
I (7840) [TFT Demo]: System time is set.
I (7840) wifi: state: run -> init (0)
I (7841) wifi: n:10 0, o:10 0, ap:255 255, sta:10 0, prof:1
I (7873) wifi: flush txq
I (7873) wifi: stop sw txq
I (7873) wifi: lmac stop hw txq
E (7874) wifi: esp_wifi_connect 839 wifi not start
I (9970) [SPIFFS]: Registering SPIFFS file system
I (9970) [SPIFFS]: Mounting SPIFFS files system
I (9971) [SPIFFS]: Start address: 0x180000; Size 1024 KB
I (9976) [SPIFFS]: Work buffer: 2048 B
I (9981) [SPIFFS]: FDS buffer: 384 B
I (9985) [SPIFFS]: Cache size: 2048 B
I (10029) [SPIFFS]: Mounted
==========================================
Display: ILI9341: PORTRAIT 240,320 Color
Clear screen time: 61 ms
Send color buffer time: 229 us (240 pixels)
ESP32_TFT_library on M5Stack
Re: ESP32_TFT_library on M5Stack
Resolved.
In make menuconfig, users need to set M5Stack under TFT Display DEMO Configuration --->
In make menuconfig, users need to set M5Stack under TFT Display DEMO Configuration --->
Re: ESP32_TFT_library on M5Stack
However, the demo is running now except image display are blank. Had anyone the similar experience?
Re: ESP32_TFT_library on M5Stack
I'm using the same library with the WROVER board and the demo seems to work fine. For some reason when I use it in my program I can draw lines but the screen clear doesn't work.
John A
John A
Re: ESP32_TFT_library on M5Stack
The image display has been resolved. It was due to multiple reasons:
1. The required images need to be uploaded separately. Read the given instructions.
2. The setting of the image partition in Make menuconfig is wrong. See the corrected value, https://github.com/loboris/ESP32_TFT_library/issues/24
3. The source code does not actually show all the images. It shows only one. Hence, if you need to see all of them, you will need to modify the source code.
Hope these help.
1. The required images need to be uploaded separately. Read the given instructions.
2. The setting of the image partition in Make menuconfig is wrong. See the corrected value, https://github.com/loboris/ESP32_TFT_library/issues/24
3. The source code does not actually show all the images. It shows only one. Hence, if you need to see all of them, you will need to modify the source code.
Hope these help.
Who is online
Users browsing this forum: No registered users and 270 guests