-->
Page 1 of 1

Running out of flash memory - Flash Size not helping

PostPosted: Wed Nov 16, 2016 5:48 pm
by gavspav
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?

Re: Running out of flash memory - Flash Size not helping

PostPosted: Wed Nov 16, 2016 6:18 pm
by gavspav
Hmm looks like 1MB is the maximum available for programs.
Looks like I'll have to live with it or use Spiffs.

Re: Running out of flash memory - Flash Size not helping

PostPosted: Fri Nov 18, 2016 10:20 am
by mrburnette
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