Skip to content

Commit

Permalink
Updated README.md for more clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeseWang committed Aug 22, 2015
1 parent 043f928 commit 6f8197a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ depending on your platform. (The official pySerial installation instructions are
## Usage

This utility actually have a user interface! It uses [Argparse](https://docs.python.org/dev/library/argparse.html)
and is rather self-documenting. Try running `esptool -h`.
and is rather self-documenting. Try running `esptool -h`, `esptool write_flash -h`, etc.
Or hack the script to your hearts content.

### Ports
Expand Down Expand Up @@ -65,6 +65,8 @@ Reading the SPI Flash ID:
./esptool.py flash_id
```

Refer to [flashrom source code](http://code.coreboot.org/p/flashrom/source/tree/HEAD/trunk/flashchips.h) for flash chip manufacturer name and part number.

Note that this document may be out of date. Use the built-in usage (`esptool -h`) when in doubt.

## Protocol
Expand Down Expand Up @@ -139,6 +141,8 @@ Byte | Description
4-7 | Entry point
8-n | Segments

esptool overrides the 2nd and 3rd (start from 0) bytes according to the SPI flash info provided through command line option, regardless of corresponding bytes from the input .bin file that will be written to address 0x00000. So you must provide SPI flash info when running `esptool write_flash` command. For example `esptool write_flash -ff 80m -fm qio -fs 8m 0x00000 boot.bin 0x01000 user1.bin`

### Segment

Byte | Description
Expand Down

0 comments on commit 6f8197a

Please sign in to comment.