Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
5630778f
Commit
5630778f
authored
8 years ago
by
Paul Sokolovsky
Browse files
Options
Downloads
Patches
Plain Diff
esp8266: Update docs for esptool 1.2.1/SDK 2.0 (--flash_size=detect).
parent
933198c5
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/esp8266/tutorial/intro.rst
+5
-3
5 additions, 3 deletions
docs/esp8266/tutorial/intro.rst
esp8266/README.md
+5
-4
5 additions, 4 deletions
esp8266/README.md
with
10 additions
and
7 deletions
docs/esp8266/tutorial/intro.rst
+
5
−
3
View file @
5630778f
...
...
@@ -54,7 +54,7 @@ device before putting on new MicroPython firmware.
Currently we only support esptool.py to copy across the firmware. You can find
this tool here: `<https://github.com/themadinventor/esptool/>`__, or install it
using pip::
using pip
(at least version 1.2.1 is required)
::
pip install esptool
...
...
@@ -69,7 +69,7 @@ Using esptool.py you can erase the flash with the command::
And then deploy the new firmware using::
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=
8m
0 esp8266-2016-05-03-v1.8.bin
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=
detect
0 esp8266-2016-05-03-v1.8.bin
You might need to change the "port" setting to something else relevant for your
PC. You may also need to reduce the baudrate if you get errors when flashing
...
...
@@ -80,7 +80,7 @@ For some boards with a particular FlashROM configuration (e.g. some variants of
a NodeMCU board) you may need to use the following command to deploy
the firmware (note the ``-fm dio`` option)::
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=
8m
-fm dio 0 esp8266-2016-05-03-v1.8.bin
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=
detect
-fm dio 0 esp8266-2016-05-03-v1.8.bin
If the above commands run without error then MicroPython should be installed on
your board!
...
...
@@ -138,6 +138,8 @@ after it, here are troubleshooting recommendations:
* If lower baud rate didn't help, you may want to try older version of
esptool.py, which had a different programming algorithm::
pip install esptool==1.0.1
This version doesn't support ``--flash_size=detect`` option, so you will
need to specify FlashROM size explicitly (in megabits).
* The ``--flash_size`` option in the commands above is mandatory. Omitting
it will lead to a corrupted firmware.
...
...
This diff is collapsed.
Click to expand it.
esp8266/README.md
+
5
−
4
View file @
5630778f
...
...
@@ -70,13 +70,14 @@ $ make deploy
```
This will use the
`esptool.py`
script to download the images. You must have
your ESP module in the bootloader mode, and connected to a serial port on your PC.
The default serial port is
`/dev/ttyACM0`
, flash mode is
`qio`
and flash size is
`8m`
.
To specify other values, use, eg:
The default serial port is
`/dev/ttyACM0`
, flash mode is
`qio`
and flash size is
`detect`
(auto-detect based on Flash ID). To specify other values, use, eg (note
that flash size is in megabits):
```
bash
$
make
PORT
=
/dev/ttyUSB0
FLASH_MODE
=
qio
FLASH_SIZE
=
8
m deploy
$
make
PORT
=
/dev/ttyUSB0
FLASH_MODE
=
qio
FLASH_SIZE
=
32
m deploy
```
The image produced is
`firmware-combined.bin`
, to be flashed at 0x00000.
The image produced is
`
build/
firmware-combined.bin`
, to be flashed at 0x00000.
First start
-----------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment