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

Guru Meditation Error on tft.begin() (ESP32-S3 dev module) #3289

Open
HSBallina opened this issue Apr 18, 2024 · 1 comment
Open

Guru Meditation Error on tft.begin() (ESP32-S3 dev module) #3289

HSBallina opened this issue Apr 18, 2024 · 1 comment

Comments

@HSBallina
Copy link

HSBallina commented Apr 18, 2024

I'm having issues with my ESP32-S3 module crashing and rebooting on tft.begin() (or on tft.init()). The following output repeats over and over in the monitor:

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x2b (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x4bc
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a0c
entry 0x403c98d0
E (99) esp_core_dump_flash: Core dump data check failed:
Calculated checksum='db82bb1c'
Image checksum='ffffffff'
Guru Meditation Error: Core  1 panic'ed (StoreProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x4200289b  PS      : 0x00060a30  A0      : 0x82002928  A1      : 0x3fcebd80  
A2      : 0x00000010  A3      : 0x00000000  A4      : 0x60004000  A5      : 0x00000015  
A6      : 0x000000ff  A7      : 0x00000001  A8      : 0x08000000  A9      : 0x3fcebd50  
A10     : 0x3fc952b0  A11     : 0x00000001  A12     : 0xffffffff  A13     : 0x00000010  
A14     : 0x00000000  A15     : 0x3fc91d98  SAR     : 0x00000010  EXCCAUSE: 0x0000001d  
EXCVADDR: 0x00000010  LBEG    : 0x42004dec  LEND    : 0x42004e4f  LCOUNT  : 0x00000003  


Backtrace: 0x42002898:0x3fcebd80 0x42002925:0x3fcebdb0 0x42002930:0x3fcebdd0 0x4200184d:0x3fcebdf0 0x420058da:0x3fcebe20

Using the EspExceptionDecoder to decode the dump (only works in Arduino 1.8.19) with the ELF file from the build gives this:

PC: 0x4200289b: TFT_eSPI::writecommand(unsigned char) at C:\Users\stompp\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp line 81
EXCVADDR: 0x00000010

Decoding stack results
0x42002898: TFT_eSPI::writecommand(unsigned char) at C:\Users\stompp\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp line 81
0x42002925: TFT_eSPI::init(unsigned char) at C:\Users\stompp\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp line 692
0x42002930: TFT_eSPI::begin(unsigned char) at C:\Users\stompp\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp line 603
0x4200184d: setup() at C:\DEV\ESP32\minimal_tft/minimal_tft.ino line 7
0x420058da: loopTask(void*) at C:\Users\stompp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.15\cores\esp32\main.cpp line 42

I've minimized the code to the following:

#include <SPI.h>
#include <TFT_eSPI.h>

TFT_eSPI tft = TFT_eSPI();
void setup() {
  Serial.begin(115200);
  tft.begin();
}

void loop() {
}

My setup is the following:
IDE: Arduino 1.8.19 & 2.3.2
TFT_eSPI version: 2.5.43
Board package version: 2.0.15
Processor: ESP32-S3
TFT driver: GC9A01
Interface: SPI

The setup file is a copy of 46 with a different MOSI pin. It's added to the User_Setup_Select.h file and the User_Setup.h is set to use the GC9A01 driver.

@dbtronics
Copy link

Please refer to this link: #3304 (comment)

Revert your ESP32 board package to 2.0.14 will solve this issue.

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