lovyan03 / LovyanGFX

SPI LCD graphics library for ESP32 (ESP-IDF/ArduinoESP32) / ESP8266 (ArduinoESP8266) / SAMD51(Seeed ArduinoSAMD51)
Other
1.16k stars 205 forks source link

5' inch - ssd1963 - gsl1680F - 8 bit Parallel - ld.exe region `dram0_0_seg' overflowed by 39768 bytes #293

Closed iw7dmh closed 2 years ago

iw7dmh commented 2 years ago

## Environment:

## Problem Description Hi, I followed your install guide on youtube https://www.youtube.com/watch?v=IPCvQ4o_WP8&t=320s and everything went fine until the calibration data collect. Then I installed and configured the lvgl library (9.0.0). Code compile is fine but I am having the following error: c:/users/enzo/appdata/local/ ... ../xtensa-esp32-elf/bin/ld.exe: region `dram0_0_seg' overflowed by 39768 bytes

Code to reproduce this issue

Code is identical to the one shown in the video tutorial - Compilation is fine, the problem is in the building/linking step. The display is from here https://www.buydisplay.com/lcd-5-ssd1963-tft-module-touch-screen-display-800x480-mcu-arduino

I suspect I won't be able to use such a large screen - can you confirm it or can you give a workaround solution?

Thank you in advance for any help

tobozo commented 2 years ago

hi, thanks for your feedback.

lvgl is big so you probably need to select a bigger partition scheme to avoid this linking error

closing this as not a LovyanGFX issue

iw7dmh commented 2 years ago

Hi,

thank you very much for your prompt replay. I did a test with LVGL 8.3 and code works as expected.

I did another test trying to compile the official LVGL 9.0 Arduino example and I got the same `dram0_0_seg' error.

I don't know if I can post this message on your github repository, maybe it could help someone else. In the mean time I'll add an issue on LVGL github.

Thank you again and best regards Vincenzo Stefanazzi Italy

Il 16/10/2022 11:26 tobozo @.***> ha scritto:

hi, thanks for your feedback.

lvgl is big so you probably need to select a bigger partition scheme to avoid this linking error

closing this as not a LovyanGFX issue

— Reply to this email directly, view it on GitHub https://github.com/lovyan03/LovyanGFX/issues/293#issuecomment-1279930816, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUY3F2OERES7O35ELPZHGXTWDPC3DANCNFSM6AAAAAARGIQKXE. You are receiving this because you authored the thread. https://github.com/notifications/beacon/AUY3F2KUQ5YNIS54DY4EEGTWDPC3DA5CNFSM6AAAAAARGIQKXGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSMJIY4A.gifMessage ID: @.***>

tobozo commented 2 years ago

it's not a LVGL issue either unless the test sketch doesn't compile

things you can do:

iw7dmh commented 2 years ago

it's not a LVGL issue either unless the test sketch doesn't compile

Yes, that's just the test sketch in the example directory (LVGL_Arduino.ino) configured with plain TFT_eSPI libs. I did a test on a second computer and the result is the same.

lovyan03 commented 2 years ago

I don't know what you expect us to do, but I think the cause is just to allocate a lot of memory.

int stupid_array[1000000];

void setup()
{
  stupid_array[0] = 0;
}

void loop()
{
}

I believe the problem you have encountered is the same situation as when you built this. Don't waste any more time on us.

tobozo commented 2 years ago

LVGL version: v9.0 dev

@iw7dmh Dev versions are notoriously unstable and unsupported.

I guess the solution is: don't use the dev version unless you're contributing as a developer and want to submit a fix.