i'm using the ESP8266 for two years now and decided to migrate a sketch (webserver with a few static html-pages) to the ESP32.
The sketch, which did work very well on the ESP8266 results in the following error message, when compiled for the ESP32:
Code: Select all
Arduino: 1.8.16 (Linux), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
Arduino: 1.8.16 (Linux), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
/home/esp1979/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: mytestsketch.ino.elf section `.dram0.data' will not fit in region `dram0_0_seg'
/home/esp1979/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: DRAM segment data does not fit.
/home/esp1979/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: region `dram0_0_seg' overflowed by 82848 bytes
collect2: error: ld returned 1 exit status
exit status 1
Fehler beim Kompilieren für das Board ESP32 Dev Module.
const char pageOne[] = R"=====(
Here are approx. 90000 characters...quite a lot but it worked very well with the ESP8266
)=====";
I noticed that the sketch compiles when I shorten the char arrays significantly.
But: on my Wemos D1 Mini ESP8266 everything compiled without problems.
And with the decision to change to the "bigger" ESP32 i thought, that things would get better and faster ;-(
So how can i get those big char arrays work as well as on the ESP8266?
Do i have to change the flash mode/size settings in the Arduino IDE?
Thanx for your help.
Best wishes