guru meditation while connecting to a Parallel TFT

daslolo
Posts: 4
Joined: Thu Apr 26, 2018 4:02 am

guru meditation while connecting to a Parallel TFT

Postby daslolo » Thu Apr 26, 2018 4:08 am

I am trying to connect this screen to the esp32 WROOM devboard. No luck so far.
This is the error for TFT_eSPI when TFT_graphictest_one_lib runs

Code: Select all

// Parallel bus is only supported on ESP32
// Use ESP32 Parallel interface instead of SPI
#define ESP32_PARALLEL

// Only define one driver, the other ones must be commented out
#define ILI9488_DRIVER

// ##################################################################################
//
// Section 1. Define the pins that are used to interface with the display here
//
// ##################################################################################

// ESP32 pins used
//#define TFT_CS   33  // Chip select control pin
//#define TFT_DC   15  // Data Command control pin - use a pin in the range 0-31
//#define TFT_RST  32  // Reset pin
//
//#define TFT_WR    4  // Write strobe control pin - use a pin in the range 0-31
//#define TFT_RD    2
//
//#define TFT_D0   12  // Must use pins in the range 0-31 for the data bus
//#define TFT_D1   13  // so a single register write sets/clears all bits
//#define TFT_D2   26
//#define TFT_D3   10
//#define TFT_D4   17
//#define TFT_D5   16
//#define TFT_D6   27
//#define TFT_D7   14

#define TFT_CS   9  // Chip select control pin
#define TFT_DC   7  // Data Command control pin - use a pin in the range 0-31
#define TFT_RST  8  // Reset pin

#define TFT_WR    26  // Write strobe control pin - use a pin in the range 0-31
#define TFT_RD    24

#define TFT_D0   14  // Must use pins in the range 0-31 for the data bus
#define TFT_D1   16  // so a single register write sets/clears all bits
#define TFT_D2   11
#define TFT_D3   10
#define TFT_D4   31
#define TFT_D5   30
#define TFT_D6   29
#define TFT_D7   28

etc...
error:

Code: Select all

Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Register dump:
PC      : 0x400d6a4b  PS      : 0x00060530  A0      : 0x800d1991  A1      : 0x3ffe3b30  
A2      : 0x3ffe3b58  A3      : 0x0000000a  A4      : 0x3ff49058  A5      : 0x00000000  
A6      : 0xf0014c00  A7      : 0xff000000  A8      : 0x00000002  A9      : 0x00000000  
A10     : 0x00000000  A11     : 0x00000000  A12     : 0x000000ff  A13     : 0x0000ff00  
A14     : 0x00ff0000  A15     : 0xff000000  SAR     : 0x0000000a  EXCCAUSE: 0x00000000  
EXCVADDR: 0x00000000  LBEG    : 0x400d2cc4  LEND    : 0x400d2d32  LCOUNT  : 0x00000000  

Backtrace: 0x400d6a4b:0x3ffe3b30 0x400d198e:0x3ffe3b50 0x400d2d59:0x3ffe3b90 0x400d1465:0x3ffe3bc0 0x400d8cff:0x3ffe3be0 0x400826ad:0x3ffe3c00 0x4008286d:0x3ffe3c30 0x400788a6:0x3ffe3c50 0x4007890d:0x3ffe3c80 0x40078a52:0x3ffe3cb0 0x40078b7a:0x3ffe3e70 0x40007c31:0x3ffe3eb0 0x4000073d:0x3ffe3f20

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x12 (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:956
load:0x40078000,len:0
load:0x40078000,len:13076
entry 0x40078a58
user code done

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: guru meditation while connecting to a Parallel TFT

Postby kolban » Mon Apr 30, 2018 4:14 am

I'm not very experienced with ESP32 Arduino ... however when I have worked with it and obtained exceptions, I have found the following article / instructions extremely valuable for finding the underlying cause of an exception:

https://github.com/me-no-dev/EspExceptionDecoder
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

daslolo
Posts: 4
Joined: Thu Apr 26, 2018 4:02 am

Re: guru meditation while connecting to a Parallel TFT

Postby daslolo » Thu May 03, 2018 8:45 am

thanks Kolban I will use it

Who is online

Users browsing this forum: Bing [Bot] and 117 guests