【esp32】esptool的用法

esptool是一个烧录工具,位于 esp-idf 下 ./components/esptool_py/esptool/esptool.py
esptool功能参考:

$ ./components/esptool_py/esptool/esptool.py --help

usage: esptool [-h] [–chip {auto,esp8266,esp32}] [–port PORT] [–baud BAUD]
[–before {default_reset,no_reset,no_reset_no_sync}]
[–after {hard_reset,soft_reset,no_reset}] [–no-stub]
[–trace] [–override-vddsdio [{1.8V,1.9V,OFF}]]
{load_ram,dump_mem,read_mem,write_mem,write_flash,run,image_info,make_image,elf2image,read_mac,chip_id,flash_id,read_flash_status,write_flash_status,read_flash,verify_flash,erase_flash,erase_region,version}

esptool.py v2.6 - ESP8266 ROM Bootloader Utility

positional arguments:
{load_ram,dump_mem,read_mem,write_mem,write_flash,run,image_info,make_image,elf2image,read_mac,chip_id,flash_id,read_flash_status,write_flash_status,read_flash,verify_flash,erase_flash,erase_region,version}
Run esptool {command} -h for additional help
load_ram Download an image to RAM and execute
#下载一个映像到RAM并执行
dump_mem Dump arbitrary memory to disk
#将任意内存转储到磁盘
read_mem Read arbitrary memory location
#读取任意内存位置
write_mem Read-modify-write to arbitrary memory location
#对任意内存位置执行读-修改-写操作
write_flash Write a binary blob to flash
#将二进制对象写入flash
run Run application code in flash
#在flash中运行应用程序代码
image_info Dump headers from an application image
#从应用映像中转储首部(?)
make_image Create an application image from binary files
#从二进制文件创建应用程序映像
elf2image Create an application image from ELF file
#从ELF文件创建应用程序映像
read_mac Read MAC address from OTP ROM
#从OTP ROM读取MAC地址
chip_id Read Chip ID from OTP ROM
#从OTP ROM中读取芯片ID
flash_id Read SPI flash manufacturer and device ID
#读取SPI闪存制造商和设备ID
read_flash_status Read SPI flash status register
#读取SPI flash状态寄存器
write_flash_status Write SPI flash status register
#写SPI状态寄存器
read_flash Read SPI flash content
#阅读SPI flash内容
verify_flash Verify a binary blob against flash
#根据flash验证二进制blob
erase_flash Perform Chip Erase on SPI flash
#在SPI闪存上执行芯片擦除
erase_region Erase a region of the flash
#擦除闪光的一个区域
version Print esptool version
#打印esptool版本

optional arguments:
-h, --help show this help message and exit
–chip {auto,esp8266,esp32}, -c {auto,esp8266,esp32}
Target chip type
–port PORT, -p PORT Serial port device
–baud BAUD, -b BAUD Serial port baud rate used when flashing/reading
–before {default_reset,no_reset,no_reset_no_sync}
What to do before connecting to the chip
–after {hard_reset,soft_reset,no_reset}, -a {hard_reset,soft_reset,no_reset}
What to do after esptool.py is finished
–no-stub Disable launching the flasher stub, only talk to ROM
bootloader. Some features will not be available.
–trace, -t Enable trace-level output of esptool.py interactions.
–override-vddsdio [{1.8V,1.9V,OFF}]
Override ESP32 VDDSDIO internal voltage regulator (use
with care)

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值