Increase ROM size

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
JennaSys
Posts: 33
Joined: Tue Jul 15, 2014 8:29 am
Location: Southern California, US
Contact:

Increase ROM size

Post by JennaSys » Tue Jul 27, 2021 1:54 am

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.
John Sheehan

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: Increase ROM size

Post by kevinkk525 » Tue Jul 27, 2021 6:56 am

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

williamhenrick
Posts: 16
Joined: Wed Jul 14, 2021 8:58 am

Re: Increase ROM size

Post by williamhenrick » Tue Jul 27, 2021 10:53 am

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?
Last edited by williamhenrick on Fri Nov 05, 2021 6:41 am, edited 1 time in total.

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: Increase ROM size

Post by kevinkk525 » Tue Jul 27, 2021 3:05 pm

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

JennaSys
Posts: 33
Joined: Tue Jul 15, 2014 8:29 am
Location: Southern California, US
Contact:

Re: Increase ROM size

Post by JennaSys » Tue Jul 27, 2021 3:11 pm

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

JennaSys
Posts: 33
Joined: Tue Jul 15, 2014 8:29 am
Location: Southern California, US
Contact:

Re: Increase ROM size

Post by JennaSys » Tue Jul 27, 2021 3:30 pm

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.
John Sheehan

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: Increase ROM size

Post by kevinkk525 » Tue Jul 27, 2021 4:33 pm

Yes that's correct :)
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

Post Reply