diff options
Diffstat (limited to 'esp8266/modules')
-rw-r--r-- | esp8266/modules/_boot.py | 1 | ||||
-rw-r--r-- | esp8266/modules/flashbdev.py | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/esp8266/modules/_boot.py b/esp8266/modules/_boot.py index 2cacb5676..c200b3d3f 100644 --- a/esp8266/modules/_boot.py +++ b/esp8266/modules/_boot.py @@ -1,4 +1,5 @@ import gc +gc.threshold((gc.mem_free() + gc.mem_alloc()) // 4) import uos from flashbdev import bdev diff --git a/esp8266/modules/flashbdev.py b/esp8266/modules/flashbdev.py index 07ed96602..98b0208fb 100644 --- a/esp8266/modules/flashbdev.py +++ b/esp8266/modules/flashbdev.py @@ -3,8 +3,8 @@ import esp class FlashBdev: SEC_SIZE = 4096 - START_SEC = 0x89000 // SEC_SIZE - NUM_BLK = 0x73 + START_SEC = 0x90000 // SEC_SIZE + NUM_BLK = 0x6b 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) |