ESP8266 - FlashBdev start sector #10065
Replies: 1 comment 3 replies
-
The So this ends up including the 36k -- i.e. What this actually means is that on 2M builds, there is no reserved sector -- this feature is only available on 512k and 1M builds. So I think the code as it stands is correct? If it were changed to (I've been working on and around MicroPython for nearly 7 years and never come across this "reserved sector" thing. Turns out it is required to use https://docs.micropython.org/en/latest/library/esp.html#esp.set_native_code_location Nothing to do with the filesystem boot sector). |
Beta Was this translation helpful? Give feedback.
-
At the bottom of
flashbdev.py
exists the following code snippet:I'm wondering about the
if start_sec < 256
part. Seems like this should be<=
, or maybe that entire line should not exist. The fileesp8266_2m.ld
specifies anirom
of1M - 36K
(988K to speak in common units), with that "36K
" being deduced to account for header data. 988K + 36K = 1024K = 1M which is the max size of an ESP8266's executable code region.I am making one assumption based on my experience with MP on the ESP8266 from years ago, that being, the ESP8266 does not use or otherwise require the reserve sector (i.e. the boot sector) of the FAT file system to be in its executable code region.
Beta Was this translation helpful? Give feedback.
All reactions