-
Only ESPs have extra flash areas.
So how many there are?
The second area currently supported is configured like this
https://github.com/espruino/Espruino/blob/master/boards/BANGLEJS2.py#L116Then when creating file one of them is "filename" and the other is using C: driver letter like "c:filename" (forgot which one is default). When reading file both areas are searched for the file name so it is some kind of overlay.
The idea was to not really have two separate 'disks' but one merged from both areas.
The code is in common layer
https://github.com/espruino/Espruino/blob/master/src/jsflash.c#L31
https://github.com/espruino/Espruino/blob/master/src/jsflash.c#L651
so could be usable also for ESP32.
YES, other devices do not have the posibility of flash segmentation. Only ESPs have extra flash areas.
Yes, that is the other option we have ;-)