bootloader_flash: bootloader_mmap excess size
Posted: Mon Oct 07, 2019 5:38 pm
The error reportis :
I have a large (3Mbyte) website to serve.
SPIFFS is far too slow for the task viewtopic.php?f=2&t=12514.
I used lwip's ROM makefsdata instead. makefsdata embeds a file system as character arrays within the program image. 50x times faster, awesume!
However as I approach 4Mbytes I get the titled run time error. The error is actually raised around 3.8M which I do not understand.
A similar problem is documented here https://esp32.com/viewtopic.php?t=10394. The author is trying to achieve the same result as me and eventually gets my run time error report. The author also starts from the position that FATFS is too slow (I have not yet tried FATFS on ESP but also not sure how to 'build' and load FATFS).
There is much which I do not understand. The error report details suggest that the size limit is << 4MB but the window should be 4MB. Why do I fail before 4MB and so at what point of memory usage should I worry (that my app size is getting too large)? Clearly I cannot develop an application close to fundamental limits....
The main question/objective is however:
Q) How do I achieve a large (3MB+ webpages plus 2MB+ app) fast website on the ESP? SPIFFS is way too slow and if FATFS how do I create the image? I can segment if needed.
I had presumed makefsdata but (as discussed) I hit this run time size problems. How do I load/access a large data section in FLASH? I have PSRAM but will be using bluetooth so 2MB+ application size.
Code: Select all
I (123) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x3aefc8 (3862472) map
E (132) bootloader_flash: bootloader_mmap excess size 3aefc8
E (139) esp_image: bootloader_mmap(0x10020, 0x3aefc8) failed
SPIFFS is far too slow for the task viewtopic.php?f=2&t=12514.
I used lwip's ROM makefsdata instead. makefsdata embeds a file system as character arrays within the program image. 50x times faster, awesume!
However as I approach 4Mbytes I get the titled run time error. The error is actually raised around 3.8M which I do not understand.
A similar problem is documented here https://esp32.com/viewtopic.php?t=10394. The author is trying to achieve the same result as me and eventually gets my run time error report. The author also starts from the position that FATFS is too slow (I have not yet tried FATFS on ESP but also not sure how to 'build' and load FATFS).
There is much which I do not understand. The error report details suggest that the size limit is << 4MB but the window should be 4MB. Why do I fail before 4MB and so at what point of memory usage should I worry (that my app size is getting too large)? Clearly I cannot develop an application close to fundamental limits....
The main question/objective is however:
Q) How do I achieve a large (3MB+ webpages plus 2MB+ app) fast website on the ESP? SPIFFS is way too slow and if FATFS how do I create the image? I can segment if needed.
I had presumed makefsdata but (as discussed) I hit this run time size problems. How do I load/access a large data section in FLASH? I have PSRAM but will be using bluetooth so 2MB+ application size.