G6EJD / ESP32-e-Paper-Weather-Display

An ESP32 and 2.9", 4.2" or 7.5" ePaper Display reads Weather Underground data via their API and then displays the weather
Other
946 stars 206 forks source link

region `dram0_0_seg' overflowed #172

Closed miszowaty77 closed 2 years ago

miszowaty77 commented 2 years ago

Hi,

trying to load code into TTGO Lora32 v2.1 and size of the program seems to be too big for memory.

…/xtensa-esp32-elf/bin/ld: Waveshare_7_5_T7.ino.elf section `.dram0.bss' will not fit in region `dram0_0_seg'
…/xtensa-esp32-elf/bin/ld: DRAM segment data does not fit.
…/xtensa-esp32-elf/bin/ld: region `dram0_0_seg' overflowed by 17480 bytes
collect2: error: ld returned 1 exit status

I am thinking of assigning more memory. What's the way to handle it?

G6EJD commented 2 years ago

Try using vroom board type and reduce the SPIFFS size down, 3MB programme and 1MB spiffs in the board options on the same menu

Regards

David

On 24 Jan 2022, at 14:47, miszowaty77 @.***> wrote:

 Hi,

trying to load code into TTGO Lora32 v2.1 and size of the program seems to be too big for memory.

…/xtensa-esp32-elf/bin/ld: Waveshare_7_5_T7.ino.elf section .dram0.bss' will not fit in region dram0_0_seg' .../xtensa-esp32-elf/bin/ld: DRAM segment data does not fit. …/xtensa-esp32-elf/bin/ld: region dram0_0_seg' overflowed by 17480 bytes collect2: error: ld returned 1 exit status`

I am thinking of assigning more memory. What's the way to handle it?

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.

miszowaty77 commented 2 years ago

Ok. I switched to lolin lite. Can't see this option in menu: https://imgur.com/a/rXj7sSB

G6EJD commented 2 years ago

Did you select Vroom board type?

miszowaty77 commented 2 years ago

Oh that's right, the menu is now expanded. I choose "huge APP" but still same error. I can't even compile code, no matter if I have connected board or not.

G6EJD commented 2 years ago

Dram enabled?

miszowaty77 commented 2 years ago

Do you mean PSRAM? Already enabled. I am using BWR display, maybe driver with 3 colors is too big?

PS. Yes, black/white drivers compiles without errors. But screen not responding.

G6EJD commented 2 years ago

Well that’s the reason, there’s no way an ESP32 can handle the memory requirements for a 3-colour display unless the code is radically revised

miszowaty77 commented 2 years ago

Do u think that I can drive 3 colors display with BW driver?

G6EJD commented 2 years ago

No, only the B/W driver will work.