Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32 C3 Super Mini + GC9A01 = Blank Screen / Guru Meditation Error #3454

Open
TzOk83 opened this issue Aug 21, 2024 · 2 comments
Open

ESP32 C3 Super Mini + GC9A01 = Blank Screen / Guru Meditation Error #3454

TzOk83 opened this issue Aug 21, 2024 · 2 comments

Comments

@TzOk83
Copy link

TzOk83 commented Aug 21, 2024

A description of the problem and the conditions that cause it to occur
I can't make TFT eSPI to work with ESP32 C3 Super Mini with GC9A01 display. The same HW setup works with Adafruit GC9A01 library. At the same time, when using ESP-WROOM-32 Dev Board (ESP32-D0WDQ6), everything works fine (of course I need to change PIN mappings).

IDE (e.g. Arduino or PlatformIO)
Arduino IDE

TFT_eSPI library version (try the latest, the problem may have been resolved!) from the Manage Libraries... menu
2.5.43

Board package version (e.g. 2.0.3) available from the Boards Manager... menu
3.0.3

Procesor, e.g RP2040, ESP32 S3 etc
ESP32 C3

TFT driver (e.g. ILI9341), a link to the vendors product web page is useful too.
GC9A01

Interface type (SPI or parallel)
SPI

TFT to processor connections used
SDA (MISO) - 6
SCLK (SCK) - 4
CS - 10
DC - 9
RST - 8

Setup file

#define USER_SETUP_INFO "User_Setup"

#define GC9A01_DRIVER

#define TFT_WIDTH  240 // ST7789 240 x 240 and 240 x 320
#define TFT_HEIGHT 240 // GC9A01 240 x 240

#define TFT_MOSI 6 
#define TFT_SCLK 4
#define TFT_CS   10
#define TFT_DC   9
#define TFT_RST  8

#define LOAD_GLCD
#define LOAD_FONT2 
#define LOAD_FONT4
#define LOAD_FONT6 
#define LOAD_FONT7
#define LOAD_FONT8

#define LOAD_GFXFF

#define SMOOTH_FONT

#define SPI_FREQUENCY 40000000
#define SPI_READ_FREQUENCY 6000000

Serial output

ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x40048b82
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5820,len:0x458
load:0x403cc710,len:0x814
load:0x403ce710,len:0x2880
entry 0x403cc710


TFT_eSPI library test!
Guru Meditation Error: Core  0 panic'ed (Store access fault). Exception was unhandled.

Core  0 register dump:
(...)
Rebooting...
@TzOk83 TzOk83 changed the title ESP32 C3 Super Mini + GC9A01 = Blank Screen ESP32 C3 Super Mini + GC9A01 = Blank Screen / Guru Meditation Error Aug 21, 2024
@TzOk83
Copy link
Author

TzOk83 commented Aug 21, 2024

I have also tested another config

#define TFT_CS   7
#define TFT_MOSI 6
#define TFT_MISO 5
#define TFT_SCLK 4
#define TFT_DC   8
#define TFT_RST  10

and ESP32 v3.0.4 from Espressif GitHub.

No success so far :(

@JimDrewGH
Copy link

Roll your board package back to v2.0.14 (or earlier) and it will likely work. There is a thread here that has changes to the SPI port usage that will fix this with v2.0.15 and later. Until you fix it, you will need to roll back the core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants