- Fri Jul 31, 2015 12:48 pm
#24724
Does it read SPIFFS using memory mapped flash or spi flash read calls? From the debug it seems to be trying to read from 40304000, which suggests memory mapped flash. This won't work - the esp8266 can only map 1mb of flash at a time (40200000-402fffff). You need your filesystem to be within the same 1mb as the rom. For your current setup you would need to put both roms and both filesystems in the same 1mb (and set the fs offsets accordingly).
Space could be a bit tight though, depending on rom and fs size. The easiest option would probably be to use big flash support. You can then use different 1mb chunks (of which you have 4) of the flash with one rom and one fs on each, just as though you weren't dual booting at all. rBoot then chooses which one to boot for you at startup. The advantage of this (aside from giving you more space for each rom) is you only need to produce one image (same one can be ota flashed to each 1mb chunk of flash) and the layout of each looks just like the traditional single flash version, so no need to play around with changing the default offset at all.