Hi,
I (think I) finally configured the partition table for the ESP-WROVER 16MB correctly with the default_16MB.csv . Now what I’m trying to do is embedding my Webpage-files into the app partition, so that when I do an OTA-Update both the firmware and webpage would get updated simultaneously.
Thats why I used board_build.embed_txtfiles in platformio.ini to embed my HTML and JS files, instead of SPIFFS.
Currently I only have around 800 kB and that works fine.
As the webpage-files will be around 5MB when finished, I tried to simulate it with a dummy JS-file of 3.5 MB.
When building, this is the output:
c:/users/user1/.platformio/packages/toolchain-xtensa32@2.50200.80/bin/…/lib/gcc/xtensa-esp32-elf/5.2.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: .pio\build\esp-wrover-kit-16MB\firmware.elf
c:/users/user1/.platformio/packages/toolchain-xtensa32@2.50200.80/bin/…/lib/gcc/xtensa-esp32-elf/5.2.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: DRAM segment data does not fit.
c:/users/user1/.platformio/packages/toolchain-xtensa32@2.50200.80/bin/…/lib/gcc/xtensa-esp32-elf/5.2.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: region `dram0_0_seg’ overflowed by 970656 b
Does the .embed_txtfiles really store the files in DRAM?
How could I store them in one of the flash partitions (which are around 6.5MB and large enough)?
Also I’d like to update firmware and webpage files simulatenously as mentioned above.
Maybe there is a whole different approach for solving this?
Thanks in advance.