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_S3 : my GIF stay dead #2

Closed
gfranju opened this issue Jul 29, 2024 · 12 comments
Closed

ESP32_S3 : my GIF stay dead #2

gfranju opened this issue Jul 29, 2024 · 12 comments

Comments

@gfranju
Copy link

gfranju commented Jul 29, 2024

Hello,

Thank you for your work.
Everything works with an regular ESP32.
On the other hand, I'm tearing my hair out with an ESP32S3, whatever the model: I have two of them and they both refuse to display anything (ESP32-S3 2.4G Module Wifi pour Arduino ESP IDF ESP32-S3-WROOM-1 N8R2 N16R8 44Pin Type-C 8M PSRAM and WEACTSTUDIO ESP32_S3B)

weact_ESP32-S3-B_Core_pinout
jp

I tried with a GCGC9A01 screen.
I've tried several configurations of the users file but nothing works: the screen is powered but always remains black.
Thank you for your help....

                // Typical board default pins - change to match your board

#define TFT_CS 34 // 10 or 34 (FSPI CS0)
#define TFT_MOSI 35 // 11 or 35 (FSPI D)
#define TFT_SCLK 36 // 12 or 36 (FSPI CLK)
#define TFT_MISO 37 // 13 or 37 (FSPI Q)

/*

  • in NodeMCU ESP-S3-12K-Kit, GPIO 6 and 7 are connected to LEDs,
  • so re-allocate to GPIO 15 and 16.
    */
    // Use pins in range 0-31
    #define TFT_DC 16 //7
    #define TFT_RST 15 //6
@thelastoutpostworkshop
Copy link
Owner

The pinout for the WeAct Studio, there is no pin 34. Also when PSRAM is enable on an ESP32, some pins becomes unavailable. On my board, these are pins 35,36 and 37, see here : https://github.com/atomic14/esp32-s3-pinouts.
I think it is the same for all ESP32-S3 boards.
If you look at my video, I use these pins :
image

@gfranju
Copy link
Author

gfranju commented Jul 30, 2024

Thank you very much for your reply.
But sadly....If I choose your pin numbers, it still doesn't work.
One detail puzzles me, the screen is still on...and even the reset doesn't do anything.
Note that says the weactstudio ESP32-S3 I don't have pin 23...I replaced it with 11 in the user file.

@thelastoutpostworkshop
Copy link
Owner

Which configuration file are you using to configure the TFtT_espi library ?
Attach the content of that file, so I can take a look.
What is the version of the TFT_eSPI library you are using and the version of the AnimatedGIF library ?
What is the board you select in the Arduino IDE ? and what is the version of the Espressif boards that you have installed ?
When you press the reset button, do you see anything on the serial Monitor ?

I know it's a lot of questions, but I ma trying to narrow down the problem

@gfranju
Copy link
Author

gfranju commented Jul 31, 2024 via email

@thelastoutpostworkshop
Copy link
Owner

In user_setup_select.h Instead of using #include <User_Setup.h>
Comment it and uncomment this line
//#include <User_Setups/Setup200_GC9A01.h> // Setup file for ESP32 and GC9A01 240 x 240 TFT
Put your pins definitions in <User_Setups/Setup200_GC9A01.h>

Are you able to run any Test and diagnostics sketch in the examples of the TFT_eSPI library ?

@gfranju
Copy link
Author

gfranju commented Aug 1, 2024 via email

@thelastoutpostworkshop
Copy link
Owner

You should be able to use any free pins on an ESP32, for the SPI bus, including the S3.
Make sure in your board manager to use the latest version of the Espressif Arduino Core, it is 3.0.3 :
image

If it's still not working try with version 2.0.17, TFT_eSPI has some bug for version 3 with some boars, it make it reset

@gfranju
Copy link
Author

gfranju commented Aug 1, 2024

I do have version 3.0.3
As I still wasn't getting any results, I removed version 3.0.3 to install version 2.0.17 but same result.
I tried with other pins then came back to your configuration:

SDA 23 (no pin 23 on ESP32S3 so I chose 11)
SCL 18
CS 15
DC 2
RST 4

No results.
I then changed ESP32S3...another one.
Same result.

The screen is on but remains black.
RST button have effect on serial monitor.
On the serial monitor, I have :

Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x2b (SPI_FAST_FLASH_BOOT)
Saved PC:0x42028d92
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x4bc
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a0c
entry 0x403c98d0
Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.

Core 1 register dump:
PC : 0x42002bcf PS : 0x00060a30 A0 : 0x82002ca4 A1 : 0x3fcebf10
A2 : 0x00000010 A3 : 0x00000000 A4 : 0x60004000 A5 : 0x00000008
A6 : 0x000000ff A7 : 0x00000001 A8 : 0x08000000 A9 : 0x3fcebee0
A10 : 0x3fc9b2f8 A11 : 0x00000001 A12 : 0xffffffff A13 : 0x00000010
A14 : 0x00000000 A15 : 0x3fc91d98 SAR : 0x00000010 EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000010 LBEG : 0x42006cb8 LEND : 0x42006d1b LCOUNT : 0x00000000

Backtrace: 0x42002bcc:0x3fcebf10 0x42002ca1:0x3fcebf40 0x42002cac:0x3fcebf60 0x42001ad2:0x3fcebf80 0x42007a9a:0x3fcebfb0

ELF file SHA256: f71c03144df197dc

@gfranju
Copy link
Author

gfranju commented Aug 1, 2024

There's something I don't understand about what the serial monitor displays.
I never see the message ""Successfully opened GIF; Canvas size...." it loops all the time with this message:

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x42010078
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x4bc
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a0c
entry 0x403c98d0
Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.

Core 1 register dump:
PC : 0x42002bcf PS : 0x00060a30 A0 : 0x82002ca4 A1 : 0x3fcebe80
A2 : 0x00000010 A3 : 0x00000000 A4 : 0x60004000 A5 : 0x0000000b
A6: 0x000000ff A7: 0x00000001 A8: 0x08000000 A9: 0x3fcebe50
A10: 0x3fc9b2f8 A11: 0x00000001 A12: 0xffffffff A13: 0x00000100
A14 : 0x00000000 A15 : 0x3fc91d98 SAR : 0x00000010 EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000010 LBEG: 0x42006cb8 LEND: 0x42006d1b LCOUNT: 0x00000000

Backtrace: 0x42002bcc:0x3fcebe80 0x42002ca1:0x3fcebeb0 0x42002cac:0x3fcebed0 0x42001ad2:0x3fcebef0 0x42007a9a:0x3fcebf20

ELF file SHA256: bdc22d35ceeea40d

With ESP32, on serial monitor.....there is : Successfully opened GIF; Canvas size = 240 x 240

@thelastoutpostworkshop
Copy link
Owner

On the Serial monitor we see that the ESP32-S3 is crashing:
Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.

This is a known problem of the TFT_eSPI library : Bodmer/TFT_eSPI#3332

There is two things you can do, with v3.0.3 add this line in your setup for the screen:
#define USE_HSPI_PORT
And retry,

If it does not work, try version 2.0.14 of the TFT_eSPI library

@gfranju
Copy link
Author

gfranju commented Aug 1, 2024

It works !!!!!!!
I removed ESP32 then installed version 2.0.14 and version 2.5.0 TFT eSPI.
I added the line :
#define USE_HSPI_PORT
For pin numbers :
#define TFT_CS 10 (I don't have pin 34 on the ESP32S3 weact)
#define TFT_MOSI 35
#define TFT_SCLK 36
#define TFT_DC 7
#define TFT_RST 6

Thank you very much...
I couldn't have done it without your help.

@thelastoutpostworkshop
Copy link
Owner

Glad it works now.
If you want to try another library that works well with animated GIF and created by the same guy, see my tutorial here : https://youtu.be/omUWkUqFYrQ

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