Commit ca59f5f2 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/flashbdev: Reserve extra sysparam sector for SDK 2.0.0 compatibility.

parent 5b9e7e29
......@@ -4,7 +4,7 @@ class FlashBdev:
SEC_SIZE = 4096
START_SEC = 0x89000 // SEC_SIZE
NUM_BLK = 0x73
NUM_BLK = 0x72
def __init__(self, blocks=NUM_BLK):
self.blocks = blocks
......@@ -64,5 +64,5 @@ size = esp.flash_size()
if size < 1024*1024:
bdev = None
else:
# 16K at the flash end is reserved for SDK params storage
bdev = FlashBdev((size - 16384) // FlashBdev.SEC_SIZE - FlashBdev.START_SEC)
# 20K at the flash end is reserved for SDK params storage
bdev = FlashBdev((size - 20480) // FlashBdev.SEC_SIZE - FlashBdev.START_SEC)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment