bootloader -> 0x00 (0x00 in esptool as flash location)
rom0 -> 0x40202010 (0x2000 in esptool as flash location)
rom1 -> 0x40282010 (0x82000 in esptool as flash location)
That all seems right and the program is running properly...the web server will return ajax information when I hit one of those endpoints.
Now onto SPIFFS. The Makefile has the following line of code:
SPIFF_START_OFFSET = $(shell printf '0x%X\n' $$(( ($$($(GET_FILESIZE) $(FW_BASE)/rom1.bin) + 16384 + 36864) & (0xFFFFC000) )) )
I'm not sure that is calculating the the start position of the SPIFFS filesystem correctly. If I look at the size of the rom1.bin, it is 273952 so its using a much smaller size to calculate... and its setting it at 0x4C000 which is obviously on top of the 1st rom.
So I figure if I want the SPIFFS filesystem to start in the 2nd MB, then I should put it at 0x100000. When I do that, it can't find my files. Is there a config option somewhere that tells the SPIFFS where to look on the flash? I can't seem to find it.
Any help or pointers to the right location would be appreciated.