Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By gavspav
#58220 So I have some large arrays stored in ram using
Code: Select alluint32 ICACHE_RODATA_ATTR

I have a wemos s1 r2
I'm approaching the 1MB Flash limit so I change the Flash Size in the Arduino IDE to 4M (1m SPIFFS)
But its not making any difference. Sill only 1MB available.
Is there something I'm not understanding?

Also I have a D1 mini pro with 16MB - maybe I could use this but I don't think there is a board definition yet for the ide?
User avatar
By mrburnette
#58314
gavspav wrote:Hmm looks like 1MB is the maximum available for programs.
Looks like I'll have to live with it or use Spiffs.


Yes, 1M is the max flash size for compiled programs. A discussion a week or two back centered around using the other 3M of flash as a way to store alternate programs to overlay the current one ... using a function in the STK that is intended for OTA update. My recollection is that it was successfully solved. But to my knowledge, you cannot arbitrarily do the fancy minicomputer program overlays where data RAM is not affected but a subroutine/function library is just over-layed onto existing program space. Currently the OTA logic requires a reboot and a restart of the C runtime.


Ray