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

unrecognisable issue #19

Open
sujay119 opened this issue Jan 14, 2025 · 17 comments
Open

unrecognisable issue #19

sujay119 opened this issue Jan 14, 2025 · 17 comments

Comments

@sujay119
Copy link

Hi ,
I’m new to the ESP32 world, and I recently got a LilyGo T-Display S3 Pro board to create a photo viewer that reads images from an SD card.

Initially, I uploaded a simple SD card reading code, and it worked fine. However, after that, the board started showing errors, and now it won’t start at all.

If I try uploading another code, it throws GPIO errors.
If I fix those, it says the T-Display S3 Pro setup is not selected, even though I selected it in the configuration.
I’m stuck and don’t know how to proceed. Any help would be appreciated!

Here’s what I’ve tried so far:

Ensured the correct board is selected in the Arduino IDE.
Verified the User_Setup_Select.h file in the TFT_eSPI library to confirm the correct setup is uncommented.
Reinstalled the drivers and libraries.
My Setup:
Board: LilyGo T-Display S3 Pro
IDE: Arduino IDE

CODE:
#include <TFT_eSPI.h>
#include <SD.h>

#define SD_CS 5 // Adjust to your SD card CS pin

TFT_eSPI tft = TFT_eSPI();

void setup() {
Serial.begin(115200);

// Initialize TFT display
tft.begin();
tft.setRotation(1);
tft.fillScreen(TFT_BLACK);

// Initialize SD card
if (!SD.begin(SD_CS)) {
tft.fillScreen(TFT_RED);
tft.setTextColor(TFT_WHITE, TFT_BLACK);
tft.drawString("SD Init Failed!", 10, 10);
while (true);
}

tft.setTextColor(TFT_WHITE, TFT_BLACK);
tft.drawString("SD Initialized!", 10, 10);

// Test: List files on the SD card
File root = SD.open("/");
tft.drawString("Files on SD:", 10, 30);
int y = 50;
while (true) {
File file = root.openNextFile();
if (!file) break;
tft.drawString(file.name(), 10, y);
y += 20;
file.close();
}
}

void loop() {}
AFTER THIS IT STARTED

@sujay119
Copy link
Author

can you guys please help

@sujay119
Copy link
Author

and if you can provide skype or discord to chat live

@lewisxhe
Copy link
Contributor

Delete all libraries and re-copy the copy provided by this repository. Do not upgrade the library version.

@sujay119
Copy link
Author

Delete all libraries and re-copy the copy provided by this repository. Do not upgrade the library version.

ok

@sujay119
Copy link
Author

In file included from c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.h:97,
from c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:16:
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c: In function 'void dc_callback(spi_transaction_t*)':
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:203:22: error: 'GPIO' was not declared in this scope
203 | #define DC_D GPIO.out_w1ts = (1 << TFT_DC)//;GPIO.out_w1ts = (1 << TFT_DC)
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c:816:28: note: in expansion of macro 'DC_D'
816 | if ((bool)spi_tx->user) {DC_D;}
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:202:22: error: 'GPIO' was not declared in this scope
202 | #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c:817:9: note: in expansion of macro 'DC_C'
817 | else {DC_C;}
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::begin_tft_write()':
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:239:22: error: 'GPIO' was not declared in this scope
239 | #define CS_L GPIO.out1_w1tc.val = (1 << (TFT_CS - 32)); GPIO.out1_w1tc.val = (1 << (TFT_CS - 32))
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:80:5: note: in expansion of macro 'CS_L'
80 | CS_L;
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::begin_nin_write()':
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:239:22: error: 'GPIO' was not declared in this scope
239 | #define CS_L GPIO.out1_w1tc.val = (1 << (TFT_CS - 32)); GPIO.out1_w1tc.val = (1 << (TFT_CS - 32))
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:92:5: note: in expansion of macro 'CS_L'
92 | CS_L;
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::end_tft_write()':
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:240:22: error: 'GPIO' was not declared in this scope
240 | #define CS_H GPIO.out1_w1ts.val = (1 << (TFT_CS - 32))//;GPIO.out1_w1ts.val = (1 << (TFT_CS - 32))
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:106:7: note: in expansion of macro 'CS_H'
106 | CS_H;
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::end_nin_write()':
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:240:22: error: 'GPIO' was not declared in this scope
240 | #define CS_H GPIO.out1_w1ts.val = (1 << (TFT_CS - 32))//;GPIO.out1_w1ts.val = (1 << (TFT_CS - 32))
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:121:7: note: in expansion of macro 'CS_H'
121 | CS_H;
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::begin_tft_read()':
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:239:22: error: 'GPIO' was not declared in this scope
239 | #define CS_L GPIO.out1_w1tc.val = (1 << (TFT_CS - 32)); GPIO.out1_w1tc.val = (1 << (TFT_CS - 32))
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:141:5: note: in expansion of macro 'CS_L'
141 | CS_L;
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::end_tft_read()':
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:240:22: error: 'GPIO' was not declared in this scope
240 | #define CS_H GPIO.out1_w1ts.val = (1 << (TFT_CS - 32))//;GPIO.out1_w1ts.val = (1 << (TFT_CS - 32))
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:161:7: note: in expansion of macro 'CS_H'
161 | CS_H;
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::writecommand(uint8_t)':
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:202:22: error: 'GPIO' was not declared in this scope
202 | #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:984:3: note: in expansion of macro 'DC_C'
984 | DC_C;
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::writedata(uint8_t)':
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:203:22: error: 'GPIO' was not declared in this scope
203 | #define DC_D GPIO.out_w1ts = (1 << TFT_DC)//;GPIO.out_w1ts = (1 << TFT_DC)
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:1047:3: note: in expansion of macro 'DC_D'
1047 | DC_D; // Play safe, but should already be in data mode
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'uint8_t TFT_eSPI::readcommand8(uint8_t, uint8_t)':
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:202:22: error: 'GPIO' was not declared in this scope
202 | #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:1084:3: note: in expansion of macro 'DC_C'
1084 | DC_C; tft_Write_8(0xD9);
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual uint16_t TFT_eSPI::readPixel(int32_t, int32_t)':
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:240:22: error: 'GPIO' was not declared in this scope
240 | #define CS_H GPIO.out1_w1ts.val = (1 << (TFT_CS - 32))//;GPIO.out1_w1ts.val = (1 << (TFT_CS - 32))
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:1247:3: note: in expansion of macro 'CS_H'
1247 | CS_H;
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::readRectRGB(int32_t, int32_t, int32_t, int32_t, uint8_t*)':
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:240:22: error: 'GPIO' was not declared in this scope
240 | #define CS_H GPIO.out1_w1ts.val = (1 << (TFT_CS - 32))//;GPIO.out1_w1ts.val = (1 << (TFT_CS - 32))
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:2257:3: note: in expansion of macro 'CS_H'
2257 | CS_H;
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::setWindow(int32_t, int32_t, int32_t, int32_t)':
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:202:22: error: 'GPIO' was not declared in this scope
202 | #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3480:5: note: in expansion of macro 'DC_C'
3480 | DC_C; tft_Write_8(TFT_CASET);
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::readAddrWindow(int32_t, int32_t, int32_t, int32_t)':
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:202:22: error: 'GPIO' was not declared in this scope
202 | #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3556:3: note: in expansion of macro 'DC_C'
3556 | DC_C; tft_Write_8(TFT_CASET);
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::drawPixel(int32_t, int32_t, uint32_t)':
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:202:22: error: 'GPIO' was not declared in this scope
202 | #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3756:7: note: in expansion of macro 'DC_C'
3756 | DC_C; tft_Write_8(TFT_CASET);
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:202:22: error: 'GPIO' was not declared in this scope
202 | #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3763:7: note: in expansion of macro 'DC_C'
3763 | DC_C; tft_Write_8(TFT_PASET);
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:202:22: error: 'GPIO' was not declared in this scope
202 | #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
| ^~~~
c:\Users\v.sujay\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3769:3: note: in expansion of macro 'DC_C'
3769 | DC_C; tft_Write_8(TFT_RAMWR);
| ^~~~

exit status 1

Compilation error: exit status 1

@sujay119
Copy link
Author

this gave this error

@sujay119
Copy link
Author

what should i do

@lewisxhe
Copy link
Contributor

Arduino ESP core must use 2.0.14

lewisxhe added a commit that referenced this issue Jan 14, 2025
@lewisxhe
Copy link
Contributor

image

@sujay119
Copy link
Author

Sketch uses 322865 bytes (10%) of program storage space. Maximum is 3145728 bytes.
Global variables use 19984 bytes (6%) of dynamic memory, leaving 307696 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port COM7
Connecting....

A serial exception error occurred: Write timeout
Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Failed uploading: uploading error: exit status 1

@sujay119
Copy link
Author

again error

@lewisxhe
Copy link
Contributor

image

@sujay119
Copy link
Author

i uploaded the adjust backlight code and the display shows nothing

WhatsApp.Video.2024-12-26.at.19.58.39_475948d3.mp4

@sujay119
Copy link
Author

and if i upload another code it says
Invalid FQBN: getting build properties for board esp32:esp32:esp32s3: invalid option 'ZigbeeMode'

Compilation error: Invalid FQBN: getting build properties for board esp32:esp32:esp32s3: invalid option 'ZigbeeMode'

@lewisxhe
Copy link
Contributor

What system do you use? If it is Windows, then go to this path, delete the esp32 folder, and then reinstall it C:\Users\YourNmae\AppData\Local\Arduino15\packages

@sujay119
Copy link
Author

thank you so much man really got tensed actually working on project
can i ask you questions tomorrow at this time if i account any error

@lewisxhe
Copy link
Contributor

I'll reply when I see it.

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