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.
Increase ROM size
Increase ROM size
John Sheehan
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: Increase ROM size
Check these files for my custom 1MB firmware: https://github.com/kevinkk525/pysmartno ... artnode_1M
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
-
- Posts: 16
- Joined: Wed Jul 14, 2021 8:58 am
Re: Increase ROM size
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?
Does it has affected the VFS space?
Last edited by williamhenrick on Fri Nov 05, 2021 6:41 am, edited 1 time in total.
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: Increase ROM size
yes, the bigger the firmware the smaller the VFS. But I don't need a big VFS, just a few simple config files.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Re: Increase ROM size
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!
John Sheehan
Re: Increase ROM size
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.
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.
John Sheehan
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: Increase ROM size
Yes that's correct
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode