Skip to content

Commit ca59f5f

Browse files
committed
esp8266/flashbdev: Reserve extra sysparam sector for SDK 2.0.0 compatibility.
1 parent 5b9e7e2 commit ca59f5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

esp8266/modules/flashbdev.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class FlashBdev:
44

55
SEC_SIZE = 4096
66
START_SEC = 0x89000 // SEC_SIZE
7-
NUM_BLK = 0x73
7+
NUM_BLK = 0x72
88

99
def __init__(self, blocks=NUM_BLK):
1010
self.blocks = blocks
@@ -64,5 +64,5 @@ def set_bl_flash_size(real_size):
6464
if size < 1024*1024:
6565
bdev = None
6666
else:
67-
# 16K at the flash end is reserved for SDK params storage
68-
bdev = FlashBdev((size - 16384) // FlashBdev.SEC_SIZE - FlashBdev.START_SEC)
67+
# 20K at the flash end is reserved for SDK params storage
68+
bdev = FlashBdev((size - 20480) // FlashBdev.SEC_SIZE - FlashBdev.START_SEC)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy