.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. .TH ESPEFUSE.PY "1" "March 2023" "esptool.py 4.5.1" "User Commands" .SH NAME espefuse \- ESP32 efuse get/set tool .SH DESCRIPTION usage: espefuse [OPTION] COMMAND .IP \& .SS "command arguments:" .TP Run espefuse {command} \fB\-h\fR for additional help .TP burn_efuse Burn the efuse with the specified name .TP read_protect_efuse Disable readback for the efuse with the specified name .TP write_protect_efuse Disable writing to the efuse with the specified name .TP burn_block_data Burn non\-key data to EFUSE blocks. (Don't use this command to burn key data for Flash Encryption or ESP32 Secure Boot V1, as the byte order of keys is swapped (use burn_key)). .TP burn_bit Burn bit in the efuse block. .TP adc_info Display information about ADC calibration data stored in efuse. .TP dump Dump raw hex values of all efuses .TP summary Print human\-readable summary of efuse values .TP execute_scripts Executes scripts to burn at one time. .TP check_error Checks eFuse errors .TP burn_key Burn a 256\-bit key to EFUSE: BLOCK1, flash_encryption, BLOCK2, secure_boot_v1, secure_boot_v2, BLOCK3 .TP burn_key_digest Parse a RSA public key and burn the digest to eFuse for use with Secure Boot V2 .TP set_flash_voltage Permanently set the internal flash voltage regulator to either 1.8V, 3.3V or OFF. This means GPIO12 can be high or low at reset without changing the flash voltage. .TP burn_custom_mac Burn a 48\-bit Custom MAC Address to EFUSE BLOCK3. .TP get_custom_mac Prints the Custom MAC Address. .SS "options:" .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-\-chip\fR {auto,CHIP} Target chip type .TP \fB\-\-baud\fR BAUD, \fB\-b\fR BAUD Serial port baud rate used when flashing/reading .TP \fB\-\-port\fR PORT, \fB\-p\fR PORT Serial port device .TP \fB\-\-before\fR {default_reset,usb_reset,no_reset,no_reset_no_sync} What to do before connecting to the chip .TP \fB\-\-debug\fR, \fB\-d\fR Show debugging information (loglevel=DEBUG) .TP \fB\-\-virt\fR For host tests, the tool will work in the virtual mode (without connecting to a chip). .TP \fB\-\-path\-efuse\-file\fR PATH_EFUSE_FILE For host tests, saves efuse memory to file. .TP \fB\-\-do\-not\-confirm\fR Do not pause for confirmation before permanently writing efuses. Use with caution. .SH EXAMPLES Display device features, SPI flash manufacturer and device ID: .IP "" 4 .EX esptool flash_id .EE .PP Flash ESP8266 Espressif AT v1.6.2 firmware to ESP-WROOM-02 board: .IP "" 4 .EX 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 .EE .PP Flash ESP32 Espressif AT v1.1.1 firmware to ESP-WROOM-32 board: .IP "" 4 .EX 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 .EE .PP Display ESP32 efuse state summary: .IP "" 4 .EX espefuse \-\-port /dev/ttyUSB0 summary .EE .PP Generate a flash encryption key: .IP "" 4 .EX espsecure generate_flash_encryption_key key.bin .EE .PP Burn the key to the device (WARNING: one time only operation): .IP "" 4 .EX espefuse \-\-port /dev/ttyUSB1 burn_key flash_encryption key.bin .EE .PP Encrypt flash data: .IP "" 4 .EX espsecure encrypt_flash_data \-\-keyfile key.bin \-\-address 0x10000 \-o my\-app\-encrypted.bin my\-app.bin .EE .SH AUTHOR esptool.py was started by Fredrik Ahlberg as an unofficial community project, currently maintained by Angus Gratton and supported by Espressif Systems (Shanghai) PTE LTD. This manual page has been produced by Milan Kupcevic for the Debian project and can be used by others. .SH "REPORTING BUGS" Review: .br Known issues: .br Report new issues at: .SH COPYRIGHT Copyright \(co 2014-2017 Fredrik Ahlberg, Angus Gratton, Espressif Systems (Shanghai) PTE LTD, other contributors as noted. License GPLv2+: GNU GPL version 2 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. .SH "SEE ALSO" .PP .BR esptool (1), .BR espefuse (1), .BR espsecure (1)