| 1 |
[EXAMPLES] |
| 2 |
Display device features, SPI flash manufacturer and device ID: |
| 3 |
.IP "" 4 |
| 4 |
.EX |
| 5 |
esptool flash_id |
| 6 |
.EE |
| 7 |
.PP |
| 8 |
Flash ESP8266 Espressif AT v1.6.2 firmware to ESP-WROOM-02 board: |
| 9 |
.IP "" 4 |
| 10 |
.EX |
| 11 |
esptool write_flash \-\-flash_mode dio \-\-flash_size 4MB\-c1 0x00 boot_v1.7.bin 0x1000 at/1024+1024/user1.2048.new.5.bin 0xfe000 blank.bin 0x3fc000 esp_init_data_default_v08.bin 0x3fe000 blank.bin |
| 12 |
.EE |
| 13 |
.PP |
| 14 |
Flash ESP32 Espressif AT v1.1.1 firmware to ESP-WROOM-32 board: |
| 15 |
.IP "" 4 |
| 16 |
.EX |
| 17 |
esptool write_flash \-\-flash_mode dio \-\-flash_freq 40m \-\-flash_size detect 0x1000 bootloader/bootloader.bin 0x20000 at_customize.bin 0x21000 customized_partitions/ble_data.bin 0x24000 customized_partitions/server_cert.bin 0x26000 customized_partitions/server_key.bin 0x28000 customized_partitions/server_ca.bin 0x2a000 customized_partitions/client_cert.bin 0x2c000 customized_partitions/client_key.bin 0x2e000 customized_partitions/client_ca.bin 0xf000 phy_init_data.bin 0x100000 esp\-at.bin 0x8000 partitions_at.bin |
| 18 |
.EE |
| 19 |
.PP |
| 20 |
Display ESP32 efuse state summary: |
| 21 |
.IP "" 4 |
| 22 |
.EX |
| 23 |
espefuse \-\-port /dev/ttyUSB0 summary |
| 24 |
.EE |
| 25 |
.PP |
| 26 |
Generate a flash encryption key: |
| 27 |
.IP "" 4 |
| 28 |
.EX |
| 29 |
espsecure generate_flash_encryption_key key.bin |
| 30 |
.EE |
| 31 |
.PP |
| 32 |
Burn the key to the device (WARNING: one time only operation): |
| 33 |
.IP "" 4 |
| 34 |
.EX |
| 35 |
espefuse \-\-port /dev/ttyUSB1 burn_key flash_encryption key.bin |
| 36 |
.EE |
| 37 |
.PP |
| 38 |
Encrypt flash data: |
| 39 |
.IP "" 4 |
| 40 |
.EX |
| 41 |
espsecure encrypt_flash_data \-\-keyfile key.bin \-\-address 0x10000 \-o my\-app\-encrypted.bin my\-app.bin |
| 42 |
.EE |
| 43 |
[REPORTING BUGS] |
| 44 |
Review: <https://github.com/espressif/esptool/#troubleshooting> |
| 45 |
.br |
| 46 |
Known issues: <https://github.com/espressif/esptool/issues> |
| 47 |
.br |
| 48 |
Report new issues at: <https://github.com/espressif/esptool/issues/new> |
| 49 |
[AUTHOR] |
| 50 |
Esptool.py was started by Fredrik Ahlberg as an unofficial community project, |
| 51 |
currently maintained by Angus Gratton and supported by Espressif Systems |
| 52 |
(Shanghai) PTE LTD. This manual page has been produced by Milan Kupcevic |
| 53 |
<[email protected]> for the Debian project and can be used by others. |
| 54 |
[COPYRIGHT] |
| 55 |
Copyright \(co 2014-2017 Fredrik Ahlberg, Angus Gratton, |
| 56 |
Espressif Systems (Shanghai) PTE LTD, other contributors as noted. |
| 57 |
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>. |
| 58 |
This is free software: you are free to change and redistribute it. |
| 59 |
There is NO WARRANTY, to the extent permitted by law. |
| 60 |
[SEE ALSO] |
| 61 |
.PP |
| 62 |
.BR esptool (1), |
| 63 |
.BR espefuse (1), |
| 64 |
.BR espsecure (1) |