When I run the sample, as per serial output everything works... but nothing shows up on the display.
Here is the serial output. The Error happens after some delay... not sure if that's connected.
Code: Select all
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_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:0x3fff0010,len:4
load:0x3fff0014,len:5408
ho 0 tail 12 room 4
load:0x40078000,len:0
load:0x40078000,len:12040
entry 0x40078f30
[0;32mI (47) boot: ESP-IDF v3.0-dev-265-g969f1bb9-dirty 2nd stage bootloader[0m
[0;32mI (48) boot: compile time 17:08:18[0m
[0;32mI (51) boot: Enabling RNG early entropy source...[0m
[0;32mI (67) boot: SPI Speed : 40MHz[0m
[0;32mI (80) boot: SPI Mode : DIO[0m
[0;32mI (92) boot: SPI Flash Size : 4MB[0m
[0;32mI (105) boot: Partition Table:[0m
[0;32mI (116) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (139) boot: 0 nvs WiFi data 01 02 00009000 00006000[0m
[0;32mI (162) boot: 1 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (185) boot: 2 factory factory app 00 00 00010000 00100000[0m
[0;32mI (208) boot: 3 storage Unknown data 01 82 00180000 00100000[0m
[0;32mI (232) boot: End of partition table[0m
[0;32mI (245) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x0dfa8 ( 57256) map[0m
[0;32mI (334) esp_image: segment 1: paddr=0x0001dfd0 vaddr=0x3ffb0000 size=0x02040 ( 8256) load[0m
[0;32mI (344) esp_image: segment 2: paddr=0x00020018 vaddr=0x400d0018 size=0x357ac (219052) map[0m
[0;32mI (587) esp_image: segment 3: paddr=0x000557cc vaddr=0x3ffb2040 size=0x038e0 ( 14560) load[0m
[0;32mI (606) esp_image: segment 4: paddr=0x000590b4 vaddr=0x40080000 size=0x00400 ( 1024) load[0m
[0;32mI (609) esp_image: segment 5: paddr=0x000594bc vaddr=0x40080400 size=0x14d24 ( 85284) load[0m
[0;32mI (744) esp_image: segment 6: paddr=0x0006e1e8 vaddr=0x400c0000 size=0x00000 ( 0) load[0m
[0;32mI (785) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (785) boot: Disabling RNG early entropy source...[0m
[0;32mI (786) cpu_start: Pro cpu up.[0m
[0;32mI (797) cpu_start: Starting app cpu, entry point is 0x40080fcc[0m
[0;32mI (0) cpu_start: App cpu up.[0m
[0;32mI (830) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (851) heap_init: At 3FFAE2A0 len 00001D60 (7 KiB): DRAM[0m
[0;32mI (869) heap_init: At 3FFB93B0 len 00026C50 (155 KiB): DRAM[0m
[0;32mI (888) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM[0m
[0;32mI (908) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m
[0;32mI (928) heap_init: At 40095124 len 0000AEDC (43 KiB): IRAM[0m
[0;32mI (947) cpu_start: Pro cpu start user code[0m
[0;32mI (1008) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (195) cpu_start: Starting scheduler on APP CPU.[0m
==============================
TFT display DEMO, LoBo 07/2017
==============================
SPI: display device added to spi bus (2)
SPI: attached display device, speed=8000000
SPI: bus uses native pins: false
SPI: display init...
OK
SPI: Changed speed to 40000000
---------------------
Graphics demo started
---------------------
[0;32mI (1484) [SPIFFS]: Registering SPIFFS file system[0m
[0;32mI (1485) [SPIFFS]: Mounting SPIFFS files system[0m
[0;32mI (1485) [SPIFFS]: Start address: 0x180000; Size 1024 KB[0m
[0;32mI (1490) [SPIFFS]: Work buffer: 2048 B[0m
[0;32mI (1495) [SPIFFS]: FDS buffer: 384 B[0m
[0;32mI (1499) [SPIFFS]: Cache size: 2048 B[0m
[0;32mI (1548) [SPIFFS]: Mounted[0m
==========================================
Display: ILI9341: PORTRAIT 240,320 Color
Clear screen time: 40 ms
Send color buffer time: 156 us (240 pixels)
// This error happens after some delay though
Guru Meditation Error of type LoadProhibited occurred on core 0. Exception was unhandled.
Register dump:
PC : 0x40002020 PS : 0x00060c30 A0 : 0x800020b8 A1 : 0x3ffbb150
A2 : 0x3ffaf720 A3 : 0x800fc7ce A4 : 0x3ff96458 A5 : 0x00000008
A6 : 0x0000000d A7 : 0x00000008 A8 : 0x8000be99 A9 : 0x3ffbb130
A10 : 0x3ffaf720 A11 : 0x40084a70 A12 : 0x3ffbb1c4 A13 : 0x3ffaf578
A14 : 0x00000068 A15 : 0x00000006 SAR : 0x0000001c EXCCAUSE: 0x0000001c
EXCVADDR: 0x800fc7da LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000
Backtrace: 0x40002020:0x3ffbb150 0x400020b5:0x3ffbb170 0x400fe415:0x3ffbb190 0x400e6009:0x3ffbb2a0 0x400e62fc:0x3ffbb2c0 0x400e650c:0x3ffbb2e0 0x400d1133:0x3ffbb340
CPU halted.
Just to confirm, yes I have set the PINs correctly and not in 'CONFIG_EXAMPLE_ESP_WROVER_KIT' section.
If I change SPI BUS the serial shows 1 instead of 2. But still nothing on the display.
Code: Select all
// ==================================================
// Define which spi bus to use VSPI_HOST or HSPI_HOST
#define SPI_BUS HSPI_HOST //VSPI_HOST
// ==================================================
SPI: display device added to spi bus (1)