Skip to content
Snippets Groups Projects
Commit bae7798f authored by Damien George's avatar Damien George
Browse files

esp8266/modules/flashbdev: Add RESERVED_SECS before the filesystem.

Starting at esp.flash_user_start(), the reserved sectors are for general
purpose use, for example for native code generation.  There is currently
one sector reserved as such.
parent b0f23786
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,9 @@ import esp
class FlashBdev:
SEC_SIZE = 4096
START_SEC = esp.flash_user_start() // SEC_SIZE
NUM_BLK = 0x6b
RESERVED_SECS = 1
START_SEC = esp.flash_user_start() // SEC_SIZE + RESERVED_SECS
NUM_BLK = 0x6b - RESERVED_SECS
def __init__(self, blocks=NUM_BLK):
self.blocks = blocks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment