Page 1 of 1

Increase ROM size

Posted: Tue Jul 27, 2021 1:54 am
by JennaSys
I have to imagine that this has been discussed quite a bit over the years, but I can't seem to find any HowTo references.

Is there a way to increase the size of the ROM area to allow for more frozen modules at the expense of decreasing the size of the VFS area? If so, how? I'd imagine it involves changes to the boards/esp8266*.ld memory map files, but I haven't been able to quite figure out how to work with that.

Re: Increase ROM size

Posted: Tue Jul 27, 2021 6:56 am
by kevinkk525
Check these files for my custom 1MB firmware: https://github.com/kevinkk525/pysmartno ... artnode_1M

Re: Increase ROM size

Posted: Tue Jul 27, 2021 10:53 am
by williamhenrick
Wow that's a new info, I didn't think it could be possible. I have worked on the NodeMCU module and didn't have this issue.

Does it has affected the VFS space?

Re: Increase ROM size

Posted: Tue Jul 27, 2021 3:05 pm
by kevinkk525
yes, the bigger the firmware the smaller the VFS. But I don't need a big VFS, just a few simple config files.

Re: Increase ROM size

Posted: Tue Jul 27, 2021 3:11 pm
by JennaSys
I thought I had read somewhere that you also have to adjust the heap and stack info manually as well, but I'll give this a try. Thanks!

Re: Increase ROM size

Posted: Tue Jul 27, 2021 3:30 pm
by JennaSys
Well that was as easy as I thought it should be - it seems to have worked just fine. Thank you again for your example.

And now that I think of it, stack and heap are RAM so changing the flash partitions shouldn't affect those. Not sure where I read that at.

Re: Increase ROM size

Posted: Tue Jul 27, 2021 4:33 pm
by kevinkk525
Yes that's correct :)