ESP32 and GC9A01 IPS LCD 240x240 = watchdog reset #403
Replies: 3 comments 2 replies
-
for the 2.8" lilygo T--RGB i use at least as a tarting point |
Beta Was this translation helpful? Give feedback.
-
I see that you are using a S3 ESP32. Mine is just a regular ESP32, hence the data bus would be different too |
Beta Was this translation helpful? Give feedback.
-
Those are the settings given by the Arduino IDE for an ESP32 Dev Board This is the whole source code I'm using ` #include <Arduino_GFX_Library.h> #define GFX_BL DF_GFX_BL // default backlight pin, you may replace DF_GFX_BL to actual backlight pin /* More dev device declaration: https://github.com/moononournation/Arduino_GFX/wiki/Dev-Device-Declaration */ /* More data bus class: https://github.com/moononournation/Arduino_GFX/wiki/Data-Bus-Class */ /* More display class: https://github.com/moononournation/Arduino_GFX/wiki/Display-Class */ #endif /* !defined(DISPLAY_DEV_KIT) /
void setup(void) #ifdef GFX_EXTRA_PRE_INIT // Init Display Serial.println("Hello World!"); delay(5000); // 5 seconds void loop() delay(1000); // 1 second In the serial monitor I can see that Arduino_GFX Hello World example is printed out and afterwards the watchdog hits. I also gave it a try and changed the display class to
still bootloop. Henche I would assume that the problem lies within the SPI definition in combination with the ESP32. So next try, this time using the HSPI instead of VSPI.
same reusult. Something is broken with the ESP32SPI class and I don't know what it could be |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have been trying to use the Arduino_GFX library on an ESP32 to run one of those round 240x240 LCD screens with the GC9A01 chipset. But I all can archive is a permanent boot loop, with the watchdog as the reset source.
The ESP32 board is an AZ Delivery Wroom32. According to their manual, this should be an Wroom 32 chipset. They also recommend to select ESP32 Dev Board in the Arduino IDE as Target. After some testing I have stripped down the Hello World example to the point where on the screen color is set to black. Still the bootloop occours. Hmm, maybe wrong board definition then? So I tested some other ESP32 Targets as well. Same result, all lead to an bootloop.
Does anybody know what I have might been doing wrong?
The only changes I made to the Hello World example are changeing Date Bus and Chip to my chipset. Selecting ESP32 Dev Boad and target and let the Arduino IDE compile everything. All bibs, board definitions and the IDE are up to date.
Arduino_DataBus bus = new Arduino_ESP32SPI(27 / DC /, 5 / CS /, 18 / SCK /, 23 / MOSI /, GFX_NOT_DEFINED / MISO /, VSPI / spi_num */);
Arduino_GFX gfx = new Arduino_GC9A01( bus, 7 / RST /, 0 / rotation /, true / IPS */);
Beta Was this translation helpful? Give feedback.
All reactions