Closed sag3ll0 closed 9 months ago
In the past the configuration was indeed to use the PSRAM but this has been disabled. Maybe pull latest version. If you use it in another project, just delete the .pio directory so it will be reloaded!
The esp_lcd_rgb_panel_config_t has a member/flag fb_in_psram. This should be false (but was true for some time in the past).
In smartdisplay_rgb.c this is configuration is set. Can you check it is disabled?
void lvgl_tft_init(lv_disp_drv_t *drv) { // Create direct_io panel handle esp_lcd_rgb_panel_config_t tft_panel_config = RBG_PANEL_CONFIG;
In smartdisplay_rgb.c this is configuration is set. Can you check it is disabled? now as on picture
ii change in library to
but its still error
in constructor fb_in_psram is true
Hi, I checked the config, see line below for the ESP32_8048S070:
The unsigned int fb_in_psram: 1 means it is only one bit (a flag) . This is the definition of the structure, no constructor.
Anyway, the flag is not set, so by default 0, (false). So this looks okay.
Each pixel requires 2 bytes, so 800 pixels 16 lines 2 = 25Kb frame buffer. I think the frame buffer is too big. Try setting the LVGL_PIXEL_BUFFER_LINES from 16 to 8, this might help... This depends also on the size of your program. This is located in the file smartdisplay.h.
// LVGL lines buffered
Let me know if this works!
Hello, is not work, no changes
Hi, changes
if i set tft_panel_config.flags.fb_in_psram = true;
its freezes on init (after init its must print ui_init
)
After changing the above, compiling and uploading to the board, the screen starts blinking unevenly, and turns white after a couple of minutes
i found that freezed in lvgl_tft_init function
Hi Oleg,
Also here, the code is out of date please update. Try to delete the .pio directory. Then it should be downloaded again and hopefully refreshed!
Maybe you can try it with the feature branch of the demo application?
https://github.com/rzeldent/esp32-smartdisplay-demo/tree/feature/esp32s3
Maybe you can try it with the feature branch of the demo application?
same error
Thank you gentlemen, I went down the same path and ran into the same errors, your suggestions and fixes allowed me to successfully run the DEMO from Squareline studio on the display. thank you and have a nice day :beers:
Something went wrong , using latest version of demo and library feature s3 branch , model of display is ESP32_8048S070C , Yesterday I tried the demo and it was working correctly when I added fb psram flag to smartdisplay_rgb.c Now I have this file from repo without the flag
if I can enable debug to see what could cause issue please advise how
https://github.com/rzeldent/esp32-smartdisplay/assets/6381468/cbafacea-ea5d-4119-bd93-e1050330efba
Hi Luc3as,
I think it is the timing of the pclk. I updated this to 32Mhz (trhis worked on the 4827S043) but looks like this is a problem on the ESP32_8048S070C. So the timing has been restore to: timings={.pclk_hz=16000000. Additionally the psram flag has been set.
Let me know if this resolves the issue!
yes, looks crisply sharp now , thank you :) btw, is there way to rotate the screen to vertical orientation?
ne 10. 12. 2023 o 19:17 Rene @.***> napísal(a):
Hi Luc3as,
I think it is the timing of the pclk. I updated this to 32Mhz (trhis worked on the 4827S043) but looks like this is a problem on the ESP32_8048S070C. So the timing has been restore to: timings={.pclk_hz=16000000. Additionally the psram flag has been set.
Let me know if this resolves the issue!
— Reply to this email directly, view it on GitHub https://github.com/rzeldent/esp32-smartdisplay/issues/45#issuecomment-1849040307, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQV7HAGJUMCTNEHZS6QKM3YIX4EVAVCNFSM6AAAAABAFZVZLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGA2DAMZQG4 . You are receiving this because you commented.Message ID: @.***>
Hi Luc3cas,
I checked the driver and the stock driver does not support rotation. It is a pity because all the other drivers support this! I think it is possible to do this in the software by changing the way how things are drawn...
Let me think about this... First prio now is to get it all stable...
I see you guys are hard at work! Thumbs up. Can't wait to see this committed/available, tried a fresh feature/esp32s3 but got the same errors.
Keep up the good work.
Well, software rotation seems to be in LVGL. Made some changes to enable this. Works on my ESP32-4827S043. Give it a try!
Hi @rzeldent,
about latest demo on my ESP32_8048S070C
if i build and upload demo with config
i got error
for fix it i need add config (and demo work good)
[env:esp32-s3-devkitc-1]
board = esp32-s3-devkitc-1
board_build.arduino.memory_type = qio_opi
build_flags =
${env.build_flags}
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
# Smartdisplay selection
-D ESP32_8048S070C
lib_deps = ${env.lib_deps}
My configuration that I usually use for the board ESP32_8048S070C looks like this
[env:esp32-s3-devkitc-1]
board = esp32-s3-devkitc-1
board_build.arduino.memory_type = qio_opi
board_upload.flash_size = 16MB
board_build.arduino.partitions = app3M_fat9M_16MB.csv
board_build.filesystem = littlefs
build_flags =
${env.build_flags}
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
# Smartdisplay selection
-D ESP32_8048S070C
lib_deps = ${env.lib_deps}
Maybe it will be useful to someone
I can confirm that building with memory_type=qio_opi probably does the trick. boards/esp32-s3-devkitc-1.json doesn't have that.
besides that there are some other minor difference between this and the esp-sunton.json I use esp32-sunton.json which I got from https://github.com/mhaberler/squareline-esp32/tree/main/boards
You're right! Thanks for pointing this out!
I created a new board definition: esp32-s3-devkitc-1-n16-psram.json. This has the correct amount of Flash and PSRAM. No additional settings are required after INSTALLING the board.
Updated the README.md how to do this.
maybe s3
it is also not necessary to store the description of the new boards in the platformio catalog, this can be done in the root of the project
for example my boards esp32_3248s035c.json esp32_8048s070c.json
Hi Oleg,
Thanks for pointing out the mistake. Normally it is TLDR; 😉.
I will certainly update the board definition in the main project! But does this also work for libraries?
Thanks!
Rene
I have an ESP32_8048S070C also info setup board from the readme
my code
after compiling and upload i got next error with repeated reboot
E (1007) lcd_panel.rgb: esp_lcd_new_rgb_panel(151): no mem for frame buffer
do you have any ideas how to deal with this problem?
and thanks for this useful library