ESP32 ST7789 TFT 240x240

dalohar
Posts: 33
Joined: Tue Jul 28, 2020 6:42 am

ESP32 ST7789 TFT 240x240

Postby dalohar » Thu Jun 02, 2022 6:25 am

HI,

Greetings!

I am using Waveshare 1.54 inch TFT Display https://www.waveshare.com/1.54inch-lcd-module.htm along with ESP32.
It has ST7789 driver and I am getting below error.
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.

Core 0 register dump:
PC : 0x4d4310d3 PS : 0x00060330 A0 : 0x800d7164 A1 : 0x3ffb5fe0
A2 : 0x3ffb2ce8 A3 : 0x3f473f94 A4 : 0x3f4030d0 A5 : 0x4d4310d3
A6 : 0x400d6f40 A7 : 0x400d6ccc A8 : 0x800d67a2 A9 : 0x3ffb5f90
0x400d6f40: lcd_st7789_draw_bitmap at ../esp-iot-solution/components/display/screen/controller_driver/st7789/st7789.c:317

0x400d6ccc: lcd_st7789_get_info at ../esp-iot-solution/components/display/screen/controller_driver/st7789/st7789.c:259

A10 : 0x3ffaffd8 A11 : 0x3ffb5fe0 A12 : 0x00000001 A13 : 0x00000311
A14 : 0x3f473f94 A15 : 0x0000004d SAR : 0x00000004 EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xfffffffd


Backtrace:0x4d4310d0:0x3ffb5fe0 |<-CORRUPTED
Pin configuration is:
BOARD_LCD_SPI_HOST 1
BOARD_LCD_SPI_CLOCK_FREQ 20000000
BOARD_LCD_SPI_MISO_PIN -1
BOARD_LCD_SPI_MOSI_PIN 23
BOARD_LCD_SPI_CLK_PIN 19
BOARD_LCD_SPI_CS_PIN 22
BOARD_LCD_SPI_DC_PIN 21
BOARD_LCD_SPI_RESET_PIN 18
BOARD_LCD_SPI_BL_PIN 25

Can somebody please help me on this to resolve it? or to understand me where am I going wrong.

Regards,

Dinesh

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 ST7789 TFT 240x240

Postby ESP_Sprite » Fri Jun 03, 2022 3:00 am

What ESP32 hardware are you using? Are you sure there's nothing shorting the pins the ESP32 flash is on with any of your LCD pins?

dalohar
Posts: 33
Joined: Tue Jul 28, 2020 6:42 am

Re: ESP32 ST7789 TFT 240x240

Postby dalohar » Fri Jun 03, 2022 5:21 am

ESP_Sprite wrote:
Fri Jun 03, 2022 3:00 am
What ESP32 hardware are you using? Are you sure there's nothing shorting the pins the ESP32 flash is on with any of your LCD pins?
I am using NodeMCU ESP32 https://esphome.io/devices/nodemcu_esp32.html and I think I am not shorting any flash pins with LCD pins.

Please guide further.

Regards,

Dinesh

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 ST7789 TFT 240x240

Postby ESP_Sprite » Fri Jun 03, 2022 9:56 am

Does it crash like that even without anything connected to the pins of the devboard?

Who is online

Users browsing this forum: No registered users and 50 guests