Page 1 of 1

.dram0.bss' will not fit in region `dram0_0_seg

Posted: Wed Jan 27, 2021 8:41 am
by abiangb
Hello!

I am using VScode and I have an issue when I declare a large buffer (mqtt_buffer[170000]) and then upload the sketch to ESP32 Wroom. The error message is "DRAM segment data does not fit.". It means that the buffer ram is bigger than ram region created by Arduino environment I think.

"Region `dram0_0_seg' overflowed by 84608 bytes" but ESP32 still has enough RAM. Defining mqtt_buffer[1000] the debug said "Total heap: 343508Free heap: 278016". So, I still have around 278Kb free.

In arduino IDE I haven't had this problem. Could anyone give me any advice? Changing any Ram parameter in VScode environment? where?

Thank you in advance!
Abian

Re: .dram0.bss' will not fit in region `dram0_0_seg

Posted: Wed Jan 27, 2021 1:15 pm
by abiangb

Re: .dram0.bss' will not fit in region `dram0_0_seg

Posted: Wed Jan 27, 2021 2:35 pm
by ESP_Minatel
Hi,

Thanks for your feedback!