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

DRAM segment data does not fit #24

Closed
VitaliyYasko opened this issue Apr 6, 2023 · 7 comments
Closed

DRAM segment data does not fit #24

VitaliyYasko opened this issue Apr 6, 2023 · 7 comments

Comments

@VitaliyYasko
Copy link

bme68x_demo_sample.ino.elf section .dram0.bss' will not fit in region dram0_0_seg'
region `dram0_0_seg' overflowed by 9240 bytes

I got this every time I try to compile the standard example for any ESP32 board (ESP32 dev board, Adafruit Feather ESP32, Adafruit Feather ESP32 V2, etc.). Lib version 2.0.6. Arduino IDE 2.0.4, and 1.8.19.

Full output:
Library BSEC2 Software Library has been declared precompiled:
Using precompiled library in /Users/vitaliy/Documents/Arduino/libraries/BSEC2_Software_Library/src/esp32
/Users/vitaliy/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /private/var/folders/ch/86_06ypx61vbycfklx8fp11c0000gn/T/arduino/sketches/2BE8CB973B317B4922E9E8C4D806A760/bme68x_demo_sample.ino.elf section .dram0.bss' will not fit in region dram0_0_seg'
/Users/vitaliy/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: DRAM segment data does not fit.
/Users/vitaliy/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: DRAM segment data does not fit.
/Users/vitaliy/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: region `dram0_0_seg' overflowed by 9240 bytes
collect2: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

@ipqate
Copy link

ipqate commented Apr 12, 2023

Hello,

Same for me. Got the same error...any advice?

Regards

@VitaliyYasko
Copy link
Author

Hello,

Same for me. Got the same error...any advice?

Regards

You can manually remove BLE from example, that is definitely not the best solution, but at least you will be able to compile it.

@ipqate
Copy link

ipqate commented Apr 14, 2023

Thank you Vitaliy. It solved the problem.

I do not understand how can it be that the compiled version provided by the manufacturer worked and the same source code compiled, does not:(

Regards.

@cpietsch
Copy link

Same here...
DRAM segment data does not fit.
region `dram0_0_seg' overflowed by 9232 bytes

@cpietsch
Copy link

OK, I found the solution.
You have to use EXACTLY the versions that are mentioned at different locations.

  • Arduino 1.8.19 (not the IDE)
  • Esp32 v2.0.3
  • ArduinoJson (tested for 6.19.4 by Benoit Blanchon)
  • RTClib (tested for 2.0.3 by Adafruit)
  • SdFat (tested for 2.1.2 by Bill Greiman)

Best is to delete everything i C:\Users...\Documents\Arduino\libraries and the ESP32 in C:\Users...\AppData\Local\Arduino15\packages and start fresh.

This will probably also resolve #11

@Deepak-Mvk
Copy link
Contributor

This has been tested on the BME 688 development kit and found to be working fine.
Kindly ensure that the library versions installed are as mentioned on this page - Quick_Start_Guide

@Deepak-Mvk
Copy link
Contributor

This issue is being closed, please re-open if you need any further clarifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants