Skip to content

Commit

Permalink
Mention how to use Ivan Grokhotkov's esptool (#337)
Browse files Browse the repository at this point in the history
The native esptool available with a simple `apt-get install esptool` on Debian/Ubuntu and probably other distros can be used as well. Document the flags here.
  • Loading branch information
rlerdorf authored and tve committed Jan 4, 2018
1 parent e57f29c commit fe4f565
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions FLASHING.md
Expand Up @@ -100,6 +100,16 @@ flash modules. Note the different address for esp_init_data_default.bin and blan

For __8Mbit / 1MByte__ modules the addresses are 0xFC000 and 0xFE000.

Debian, and probably other Linux distributions, come with a different esptool. It is similar,
but all the flags are different. Here is an example of flashing an **ESP-01S** which has 1M of flash using
```
esptool -cp /dev/ttyUSB0 -cb 460800 -cd none -bz 1M\
-ca 0x00000 -cf boot_v1.7.bin\
-ca 0x01000 -cf user1.bin\
-ca 0xFC000 -cf esp_init_data_default.bin\
-ca 0xFE000 -cf blank.bin
```

__Warning__: there is a bug in boot_v1.5.bin which causes it to only boot into user1 once.
If that fails it gets stuck trying to boot into user2. If this happens (can be seen in the
boot output on uart2 at 76600 baud) reflash just blank.bin at 0x7E000 (4Mbit module). (Sigh)
Expand Down

0 comments on commit fe4f565

Please sign in to comment.