mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2024-10-05 20:47:50 -04:00
.
This commit is contained in:
parent
0807275889
commit
3afb6bb572
37
README.md
37
README.md
@ -193,31 +193,50 @@ endmenu
|
|||||||
### Frequently Used Commands
|
### Frequently Used Commands
|
||||||
|
|
||||||
_To write firmware to the ESP's flash chip:_
|
_To write firmware to the ESP's flash chip:_
|
||||||
```esptool.py --port COM_ --chip esp32 write_flash 0x1000 firmware-name.bin```
|
|
||||||
|
```
|
||||||
|
esptool.py --port COM_ --chip esp32 write_flash 0x1000 firmware-name.bin
|
||||||
|
```
|
||||||
|
|
||||||
_To verify firmware:_
|
_To verify firmware:_
|
||||||
`esptool.py verify_flash --diff yes firmware-name.bin`
|
```
|
||||||
|
esptool.py verify_flash --diff yes firmware-name.bin
|
||||||
|
```
|
||||||
|
|
||||||
_To read firmware from the ESP's flash chip:_
|
_To read firmware from the ESP's flash chip:_
|
||||||
`esptool.py --port COM_ -b --chip esp32 460800 read_flash 0 ALL flash-contents.bin`
|
```
|
||||||
|
esptool.py --port COM_ -b --chip esp32 460800 read_flash 0 ALL flash-contents.bin
|
||||||
|
```
|
||||||
|
|
||||||
_To erase ESP32 flash chip:_
|
_To erase ESP32 flash chip:_
|
||||||
`esptool.py --port COM_ --chip esp32 erase_flash`
|
```
|
||||||
|
esptool.py --port COM_ --chip esp32 erase_flash
|
||||||
|
```
|
||||||
|
|
||||||
_To read built-in MAC address:_
|
_To read built-in MAC address:_
|
||||||
`esptool.py --port COM_ --chip esp32 read_mac`
|
```
|
||||||
|
esptool.py --port COM_ --chip esp32 read_mac
|
||||||
|
```
|
||||||
|
|
||||||
_To convert ELF to binary:_
|
_To convert ELF to binary:_
|
||||||
`esptool.py --chip esp32 elf2image firmware.elf`
|
```
|
||||||
|
esptool.py --chip esp32 elf2image firmware.elf
|
||||||
|
```
|
||||||
|
|
||||||
_To output .bin image details:_
|
_To output .bin image details:_
|
||||||
`esptool.py image_info --version 2 firmware-name.bin`
|
```
|
||||||
|
esptool.py image_info --version 2 firmware-name.bin
|
||||||
|
```
|
||||||
|
|
||||||
_To read RAM:_
|
_To read RAM:_
|
||||||
`esptool.py read_mem 0x400C0000`
|
```
|
||||||
|
esptool.py read_mem 0x400C0000
|
||||||
|
```
|
||||||
|
|
||||||
_To read flash chip registers:_
|
_To read flash chip registers:_
|
||||||
`esptool.py read_flash_status --bytes 2`
|
```
|
||||||
|
esptool.py read_flash_status --bytes 2
|
||||||
|
```
|
||||||
|
|
||||||
In order for OTA to push new firmware, update version number saved in the `PROJECT_VER` filed in _CMakeList.txt_ file.
|
In order for OTA to push new firmware, update version number saved in the `PROJECT_VER` filed in _CMakeList.txt_ file.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user