Arduino 2.0.4 error

Hello everyone,

I have taken back a my previous sketch (perfectly working) on ESP32.

I upgraded to Arduino 2.0.4 and the same sketch that previously worked, now I can not compile or even load it.

I now have the following error message:

c:/users/lenovo/appdata/local/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.exe: C:\Users\lenovo\AppData\Local\Temp\arduino\sketches\206D7250643445664044DE78FB7C2046/Dial_VFO_26_11_2022_new_copy_20230401191154.ino.elf section `.dram0.bss' will not fit in region `dram0_0_seg'
c:/users/lenovo/appdata/local/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.exe: DRAM segment data does not fit.
c:/users/lenovo/appdata/local/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.exe: DRAM segment data does not fit.
c:/users/lenovo/appdata/local/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.exe: region `dram0_0_seg' overflowed by 4256 bytes
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

I have no idea how I can get around it.

I thought an upgrade would fix the bugs and not create new ones, but I was incorrect.

Thank you for your help.
Roberto

Are the ESP32 options under the Tools set the same as they were when you use IDE 1.8.x ?

Hi UKHeliBob,
I honestly did not make any changes in the Tools.
Maybe I had to?
What change should I have made?

Thank you, Roberto

If I were you I would make sure that the 2.0 settings are the same as the 1.8 settings, just in case

Dear friends,
unfortunately no useful suggestions.
Thanks anyway, Roberto

Please post the sketch that you are trying to compile

Hi,
Personally, I have 2.0.?? on my PC, but haven't used it much?
Why, because its Beta and has problems.

ALL my serious Arduino coding is done on 1.8.19 a safe PC based IDE.

Tom.. :smiley: :+1: :coffee: :australia:

1 Like

The first half of that sentence is not correct, but the second half is.

2 Likes

Dear friends,
thank you for your efforts.
This is my file:

Dial VFO_26_11_2022.zip (24,3 KB)

Many thanks again
Roberto

Dear Friends, After investigating the web for a long time, I approached the troubleshooting department of Arduino and exposed my problem to them.
I am astonished and perplexed, I hope it is not a joke as their response was "It is not our problem. You have to contact EXPRESSIF !!!" I still can't believe it.... :worried: :worried: :worried: :worried:

What do you have a problem with ?

Without details nobody can help you

Read the opening post :wink:

It is indeed not an Arduino problem. The toolchain that is used to compile for ESP32 is not Arduino's responsibility.

Verify that you are using the exact same boards package, exact same compiler / linker settings and the exact same libraries.

I have been doing verifications and comparisons since April. Unfortunately without any useful rsults. Arduino does not compile pel ESP32, these are my conclusions. Roberto

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.