Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
ca59f5f2
Commit
ca59f5f2
authored
Aug 06, 2016
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
esp8266/flashbdev: Reserve extra sysparam sector for SDK 2.0.0 compatibility.
parent
5b9e7e29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
esp8266/modules/flashbdev.py
esp8266/modules/flashbdev.py
+3
-3
No files found.
esp8266/modules/flashbdev.py
View file @
ca59f5f2
...
...
@@ -4,7 +4,7 @@ class FlashBdev:
SEC_SIZE
=
4096
START_SEC
=
0x89000
//
SEC_SIZE
NUM_BLK
=
0x7
3
NUM_BLK
=
0x7
2
def
__init__
(
self
,
blocks
=
NUM_BLK
):
self
.
blocks
=
blocks
...
...
@@ -64,5 +64,5 @@ size = esp.flash_size()
if
size
<
1024
*
1024
:
bdev
=
None
else
:
#
16
K at the flash end is reserved for SDK params storage
bdev
=
FlashBdev
((
size
-
16384
)
//
FlashBdev
.
SEC_SIZE
-
FlashBdev
.
START_SEC
)
#
20
K at the flash end is reserved for SDK params storage
bdev
=
FlashBdev
((
size
-
20480
)
//
FlashBdev
.
SEC_SIZE
-
FlashBdev
.
START_SEC
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment