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

Cant run the demo code on my T5-S3 4.7 #118

Open
3eppo opened this issue Jun 4, 2024 · 14 comments
Open

Cant run the demo code on my T5-S3 4.7 #118

3eppo opened this issue Jun 4, 2024 · 14 comments
Labels

Comments

@3eppo
Copy link

3eppo commented Jun 4, 2024

Hello,
i recently bought the T5-S3 4.7" (https://de.aliexpress.com/i/1005004647326743.html), but couldn't get it to work:

  • I installed the arduino-esp32 package and updated it to th version 2.0.3
  • I choose ESP32 Dev Module
  • I enabled PSRAM
  • I loaded the demo

The code doesn't compile: `C:\Users\black\AppData\Local\Temp.arduinoIDE-unsaved202454-7196-tmplbp.39ca\demo\demo.ino: In function 'void setup()':
C:\Users\black\AppData\Local\Temp.arduinoIDE-unsaved202454-7196-tmplbp.39ca\demo\demo.ino:109:40: error: invalid conversion from 'int*' to 'int32_t*' {aka 'long int*'} [-fpermissive]
109 | writeln((GFXfont )&FiraSans, buf, &cursor_x, &cursor_y, NULL);
| ^~~~~~~~~
| |
| int

In file included from C:\Users\black\AppData\Local\Temp.arduinoIDE-unsaved202454-7196-tmplbp.39ca\demo\demo.ino:6:
c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src/epd_driver.h:368:64: note: initializing argument 3 of 'void writeln(const GFXfont*, const char*, int32_t*, int32_t*, uint8_t*)'
368 | void writeln(const GFXfont font, const char string, int32_t cursor_x,
| ~~~~~~~~~^~~~~~~~
C:\Users\black\AppData\Local\Temp.arduinoIDE-unsaved202454-7196-tmplbp.39ca\demo\demo.ino:109:51: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int
'} [-fpermissive]
109 | writeln((GFXfont )&FiraSans, buf, &cursor_x, &cursor_y, NULL);
| ^~~~~~~~~
| |
| int

c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src/epd_driver.h:369:23: note: initializing argument 4 of 'void writeln(const GFXfont*, const char*, int32_t*, int32_t*, uint8_t*)'
369 | int32_t cursor_y, uint8_t framebuffer);
| ~~~~~~~~~^~~~~~~~
C:\Users\black\AppData\Local\Temp.arduinoIDE-unsaved202454-7196-tmplbp.39ca\demo\demo.ino:113:44: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int*'} [-fpermissive]
113 | writeln((GFXfont )&FiraSans, string1, &cursor_x, &cursor_y, NULL);
| ^~~~~~~~~
| |
| int

c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src/epd_driver.h:368:64: note: initializing argument 3 of 'void writeln(const GFXfont*, const char*, int32_t*, int32_t*, uint8_t*)'
368 | void writeln(const GFXfont font, const char string, int32_t cursor_x,
| ~~~~~~~~~^~~~~~~~
C:\Users\black\AppData\Local\Temp.arduinoIDE-unsaved202454-7196-tmplbp.39ca\demo\demo.ino:113:55: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int
'} [-fpermissive]
113 | writeln((GFXfont )&FiraSans, string1, &cursor_x, &cursor_y, NULL);
| ^~~~~~~~~
| |
| int

c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src/epd_driver.h:369:23: note: initializing argument 4 of 'void writeln(const GFXfont*, const char*, int32_t*, int32_t*, uint8_t*)'
369 | int32_t cursor_y, uint8_t framebuffer);
| ~~~~~~~~~^~~~~~~~
C:\Users\black\AppData\Local\Temp.arduinoIDE-unsaved202454-7196-tmplbp.39ca\demo\demo.ino:117:44: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int*'} [-fpermissive]
117 | writeln((GFXfont )&FiraSans, string2, &cursor_x, &cursor_y, NULL);
| ^~~~~~~~~
| |
| int

c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src/epd_driver.h:368:64: note: initializing argument 3 of 'void writeln(const GFXfont*, const char*, int32_t*, int32_t*, uint8_t*)'
368 | void writeln(const GFXfont font, const char string, int32_t cursor_x,
| ~~~~~~~~~^~~~~~~~
C:\Users\black\AppData\Local\Temp.arduinoIDE-unsaved202454-7196-tmplbp.39ca\demo\demo.ino:117:55: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int
'} [-fpermissive]
117 | writeln((GFXfont )&FiraSans, string2, &cursor_x, &cursor_y, NULL);
| ^~~~~~~~~
| |
| int

c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src/epd_driver.h:369:23: note: initializing argument 4 of 'void writeln(const GFXfont*, const char*, int32_t*, int32_t*, uint8_t*)'
369 | int32_t cursor_y, uint8_t framebuffer);
| ~~~~~~~~~^~~~~~~~
C:\Users\black\AppData\Local\Temp.arduinoIDE-unsaved202454-7196-tmplbp.39ca\demo\demo.ino:121:44: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int*'} [-fpermissive]
121 | writeln((GFXfont )&FiraSans, string3, &cursor_x, &cursor_y, NULL);
| ^~~~~~~~~
| |
| int

c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src/epd_driver.h:368:64: note: initializing argument 3 of 'void writeln(const GFXfont*, const char*, int32_t*, int32_t*, uint8_t*)'
368 | void writeln(const GFXfont font, const char string, int32_t cursor_x,
| ~~~~~~~~~^~~~~~~~
C:\Users\black\AppData\Local\Temp.arduinoIDE-unsaved202454-7196-tmplbp.39ca\demo\demo.ino:121:55: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int
'} [-fpermissive]
121 | writeln((GFXfont )&FiraSans, string3, &cursor_x, &cursor_y, NULL);
| ^~~~~~~~~
| |
| int

c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src/epd_driver.h:369:23: note: initializing argument 4 of 'void writeln(const GFXfont*, const char*, int32_t*, int32_t*, uint8_t*)'
369 | int32_t cursor_y, uint8_t framebuffer);
| ~~~~~~~~~^~~~~~~~
C:\Users\black\AppData\Local\Temp.arduinoIDE-unsaved202454-7196-tmplbp.39ca\demo\demo.ino:125:44: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int*'} [-fpermissive]
125 | writeln((GFXfont )&FiraSans, string4, &cursor_x, &cursor_y, NULL);
| ^~~~~~~~~
| |
| int

c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src/epd_driver.h:368:64: note: initializing argument 3 of 'void writeln(const GFXfont*, const char*, int32_t*, int32_t*, uint8_t*)'
368 | void writeln(const GFXfont font, const char string, int32_t cursor_x,
| ~~~~~~~~~^~~~~~~~
C:\Users\black\AppData\Local\Temp.arduinoIDE-unsaved202454-7196-tmplbp.39ca\demo\demo.ino:125:55: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int
'} [-fpermissive]
125 | writeln((GFXfont )&FiraSans, string4, &cursor_x, &cursor_y, NULL);
| ^~~~~~~~~
| |
| int

c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src/epd_driver.h:369:23: note: initializing argument 4 of 'void writeln(const GFXfont*, const char*, int32_t*, int32_t*, uint8_t*)'
369 | int32_t cursor_y, uint8_t framebuffer);
| ~~~~~~~~~^~~~~~~~
C:\Users\black\AppData\Local\Temp.arduinoIDE-unsaved202454-7196-tmplbp.39ca\demo\demo.ino: In function 'void loop()':
C:\Users\black\AppData\Local\Temp.arduinoIDE-unsaved202454-7196-tmplbp.39ca\demo\demo.ino:158:60: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int*'} [-fpermissive]
158 | writeln((GFXfont )&FiraSans, (char )voltage.c_str(), &cursor_x, &cursor_y, NULL);
| ^~~~~~~~~
| |
| int

c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src/epd_driver.h:368:64: note: initializing argument 3 of 'void writeln(const GFXfont
, const char*, int32_t*, int32_t*, uint8_t*)'
368 | void writeln(const GFXfont font, const char string, int32_t cursor_x,
| ~~~~~~~~~^~~~~~~~
C:\Users\black\AppData\Local\Temp.arduinoIDE-unsaved202454-7196-tmplbp.39ca\demo\demo.ino:158:71: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int
'} [-fpermissive]
158 | writeln((GFXfont )&FiraSans, (char )voltage.c_str(), &cursor_x, &cursor_y, NULL);
| ^~~~~~~~~
| |
| int

c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src/epd_driver.h:369:23: note: initializing argument 4 of 'void writeln(const GFXfont
, const char*, int32_t*, int32_t*, uint8_t*)'
369 | int32_t *cursor_y, uint8_t *framebuffer);
| ~~~~~~~~~^~~~~~~~
Multiple libraries were found for "SD.h"
Used: C:\Users\black\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0\libraries\SD
Not used: C:\Users\black\AppData\Local\Arduino15\libraries\SD
exit status 1

Compilation error: invalid conversion from 'int*' to 'int32_t*' {aka 'long int*'} [-fpermissive]`

Even if i change the variables to int32_t I get another error:
`In file included from c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src\ed047tc1.c:6:
c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src\ed047tc1.h:114:16: error: expected '=', ',', ';', 'asm' or 'attribute' before 'epd_output_row'
114 | void IRAM_ATTR epd_output_row(uint32_t output_time_dus);
| ^~~~~~~~~~~~~~
c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src\ed047tc1.h:119:16: error: expected '=', ',', ';', 'asm' or 'attribute' before 'epd_skip'
119 | void IRAM_ATTR epd_skip();
| ^~~~~~~~
c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src\ed047tc1.h:124:21: error: expected '=', ',', ';', 'asm' or 'attribute' before 'epd_get_current_buffer'
124 | uint8_t * IRAM_ATTR epd_get_current_buffer();
| ^~~~~~~~~~~~~~~~~~~~~~
c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src\ed047tc1.h:132:16: error: expected '=', ',', ';', 'asm' or 'attribute' before 'epd_switch_buffer'
132 | void IRAM_ATTR epd_switch_buffer();
| ^~~~~~~~~~~~~~~~~
c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src\ed047tc1.c: In function 'fast_gpio_set_hi':
c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src\ed047tc1.c:58:5: error: 'GPIO' undeclared (first use in this function)
58 | GPIO.out_w1ts = (1 << gpio_num);
| ^~~~
c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src\ed047tc1.c:58:5: note: each undeclared identifier is reported only once for each function it appears in
c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src\ed047tc1.c: In function 'fast_gpio_set_lo':
c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src\ed047tc1.c:63:5: error: 'GPIO' undeclared (first use in this function)
63 | GPIO.out_w1tc = (1 << gpio_num);
| ^~~~
c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src\i2s_data_bus.c: In function 'gpio_setup_out':
c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src\i2s_data_bus.c:450:21: error: 'GPIO_PIN_MUX_REG' undeclared (first use in this function)
450 | PIN_FUNC_SELECT(GPIO_PIN_MUX_REG[gpio], PIN_FUNC_GPIO);
| ^~~~~~~~~~~~~~~~
c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src\i2s_data_bus.c:450:21: note: each undeclared identifier is reported only once for each function it appears in
c:\Users\black\Documents\Arduino\libraries\LilyGo-EPD47-master\src\i2s_data_bus.c:450:45: error: 'PIN_FUNC_GPIO' undeclared (first use in this function)
450 | PIN_FUNC_SELECT(GPIO_PIN_MUX_REG[gpio], PIN_FUNC_GPIO);
| ^~~~~~~~~~~~~
Multiple libraries were found for "SD.h"
Used: C:\Users\black\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0\libraries\SD
Not used: C:\Users\black\AppData\Local\Arduino15\libraries\SD
exit status 1

Compilation error: exit status 1`

Please help me use this board.

Thanks and Regards
B

@lewisxhe
Copy link
Contributor

lewisxhe commented Jun 8, 2024

image

@lewisxhe
Copy link
Contributor

lewisxhe commented Jun 8, 2024

It is best to use versions 2.0.14 and 2.0.15. Anything higher than this will definitely result in an error.

@asg02fever
Copy link

i have the same board , i had the 2.0.15 versiom, all set up , not working can you post a bin test fil of it to be sure the baord isnt borken

@pbenaim
Copy link

pbenaim commented Oct 27, 2024

Hello everyone,

Help me!!!!

epd_init(); crashes the ESP32-S3.

I have to unplug it and press the Boot button while plugging it back in to be able to access it again.
Pressing RST does nothing anymore not even a reboot!!!

I tried with many Arduino ESP32 2.0.14 2.015 and more ( Ver above and under )...

Drivers come from here ( https://github.com/Xinyuan-LilyGO/LilyGo-EPD47/tree/esp32s3/src )

For those who would tell me, your device does not work.

It worked, until the day I wanted to change my software to improve it...

So, it is not improved since it is unusable... LOL

Could there be another library that is causing this problem ?

I tryed with Arduino and VSCode ( PlatformIO ) same problem :-(

@lewisxhe
Copy link
Contributor

Can you provide the log that caused the crash? If it is not started, confirm whether you can find the ESP port in the device manager. If the port exists, then you can definitely upload the sketch.

@pbenaim
Copy link

pbenaim commented Oct 28, 2024

No log, I can compile and upload on it
When esp32 start I have serial.print juste before epd_init() and after the esp32 release the port and after that impossible to reboot with RST button 😭

I must unplug and push the Boot button and plug again to have access to ESP32. 😜

Any other ideas?

@G6EJD
Copy link

G6EJD commented Oct 28, 2024

You are compiling for the ESP32-S3 and have enabled PSRAM? It's a common mistake.

@pbenaim
Copy link

pbenaim commented Oct 28, 2024

Yes of course

@pbenaim
Copy link

pbenaim commented Oct 28, 2024

Well, after some research, the problem is hard, not soft.

I think the problem comes from the converter that powers the screen. I discovered it by turning the device off and on several times in a row.

Sometimes (rarely), it starts fine but after a few seconds, or even a minute, everything stops again :-(

I have version 2.3, is there a hard modification that could save my life?

Thank you for your help

@lewisxhe
Copy link
Contributor

Can you find the port? Disconnect the battery, hold down the BOOT button, and then plug in the USB-C.

@random-0110-dude
Copy link

@pbenaim try adding 470uF capacitor across 3V3 rail as suggested in #98

@pbenaim
Copy link

pbenaim commented Nov 21, 2024

Thanks I will try :-)

@pbenaim
Copy link

pbenaim commented Nov 21, 2024

Yeeees the screen work now :-)

But the SD Card and the Touch not working :-(

Demo Compiled with:
|-- SensorLib @ 0.1.9
|-- Button2 @ 2.3.2
|-- Wire @ 2.0.0
|-- SPI @ 2.0.0
|-- FS @ 2.0.0
|-- SD @ 2.0.0
|-- WiFi @ 2.0.0

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants