From ca59f5f208f17620a0ac2fc77e3026bed0d9fe2c Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 6 Aug 2016 15:21:49 +0300 Subject: [PATCH] esp8266/flashbdev: Reserve extra sysparam sector for SDK 2.0.0 compatibility. --- esp8266/modules/flashbdev.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esp8266/modules/flashbdev.py b/esp8266/modules/flashbdev.py index 07ed966020..c856085146 100644 --- a/esp8266/modules/flashbdev.py +++ b/esp8266/modules/flashbdev.py @@ -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)