esptool 4.12.dev3__tar.gz → 4.13.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {esptool-4.12.dev3/esptool.egg-info → esptool-4.13.0}/PKG-INFO +5 -4
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/base_operations.py +3 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c2/fields.py +1 -4
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c2/mem_definition.py +4 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c3/fields.py +1 -4
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c3/mem_definition.py +9 -1
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c5/fields.py +1 -4
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c5/mem_definition.py +8 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c6/fields.py +1 -4
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c6/mem_definition.py +9 -1
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c61/fields.py +1 -8
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c61/mem_definition.py +11 -3
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h2/fields.py +1 -4
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h2/mem_definition.py +8 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h21/fields.py +3 -5
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h21/mem_definition.py +29 -4
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h21/operations.py +5 -13
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h4/fields.py +27 -14
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h4/mem_definition.py +24 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h4/operations.py +15 -5
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32p4/fields.py +32 -5
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32p4/mem_definition.py +8 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32s2/fields.py +1 -4
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32s2/mem_definition.py +11 -3
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32s3/fields.py +1 -4
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32s3/mem_definition.py +9 -1
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/mem_definition_base.py +3 -1
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse_defs/esp32c5.yaml +3 -2
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse_defs/esp32h2.yaml +3 -2
- esptool-4.13.0/espefuse/efuse_defs/esp32h21.yaml +128 -0
- esptool-4.13.0/espefuse/efuse_defs/esp32h4.yaml +143 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/__init__.py +6 -12
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/bin_image.py +0 -9
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/cmds.py +112 -65
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/loader.py +1 -1
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32c3.py +2 -1
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32c5.py +60 -12
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32c61.py +40 -10
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32h2.py +42 -4
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32h21.py +84 -7
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32h4.py +128 -35
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32p4.py +2 -2
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32s3.py +2 -1
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/2/README.md +1 -1
- esptool-4.13.0/esptool/targets/stub_flasher/2/esp32.json +8 -0
- esptool-4.13.0/esptool/targets/stub_flasher/2/esp32c2.json +8 -0
- esptool-4.13.0/esptool/targets/stub_flasher/2/esp32c3.json +8 -0
- esptool-4.13.0/esptool/targets/stub_flasher/2/esp32c5.json +8 -0
- esptool-4.13.0/esptool/targets/stub_flasher/2/esp32c6.json +8 -0
- esptool-4.13.0/esptool/targets/stub_flasher/2/esp32c61.json +8 -0
- esptool-4.13.0/esptool/targets/stub_flasher/2/esp32h2.json +8 -0
- esptool-4.13.0/esptool/targets/stub_flasher/2/esp32h21.json +8 -0
- esptool-4.13.0/esptool/targets/stub_flasher/2/esp32h4.json +8 -0
- esptool-4.13.0/esptool/targets/stub_flasher/2/esp32p4-rev1.json +8 -0
- esptool-4.13.0/esptool/targets/stub_flasher/2/esp32p4.json +8 -0
- esptool-4.13.0/esptool/targets/stub_flasher/2/esp32s2.json +8 -0
- esptool-4.13.0/esptool/targets/stub_flasher/2/esp32s3.json +30 -0
- esptool-4.13.0/esptool/targets/stub_flasher/2/esp8266.json +8 -0
- {esptool-4.12.dev3 → esptool-4.13.0/esptool.egg-info}/PKG-INFO +5 -4
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool.egg-info/SOURCES.txt +2 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool.egg-info/requires.txt +4 -1
- {esptool-4.12.dev3 → esptool-4.13.0}/pyproject.toml +4 -5
- esptool-4.13.0/setup.py +39 -0
- esptool-4.12.dev3/espefuse/efuse_defs/esp32h21.yaml +0 -106
- esptool-4.12.dev3/espefuse/efuse_defs/esp32h4.yaml +0 -92
- esptool-4.12.dev3/esptool/targets/stub_flasher/2/esp32.json +0 -8
- esptool-4.12.dev3/esptool/targets/stub_flasher/2/esp32c2.json +0 -8
- esptool-4.12.dev3/esptool/targets/stub_flasher/2/esp32c3.json +0 -8
- esptool-4.12.dev3/esptool/targets/stub_flasher/2/esp32c5.json +0 -8
- esptool-4.12.dev3/esptool/targets/stub_flasher/2/esp32c6.json +0 -8
- esptool-4.12.dev3/esptool/targets/stub_flasher/2/esp32c61.json +0 -8
- esptool-4.12.dev3/esptool/targets/stub_flasher/2/esp32h2.json +0 -8
- esptool-4.12.dev3/esptool/targets/stub_flasher/2/esp32p4-rev1.json +0 -8
- esptool-4.12.dev3/esptool/targets/stub_flasher/2/esp32p4.json +0 -8
- esptool-4.12.dev3/esptool/targets/stub_flasher/2/esp32s2.json +0 -8
- esptool-4.12.dev3/esptool/targets/stub_flasher/2/esp32s3.json +0 -30
- esptool-4.12.dev3/esptool/targets/stub_flasher/2/esp8266.json +0 -8
- esptool-4.12.dev3/setup.py +0 -21
- {esptool-4.12.dev3 → esptool-4.13.0}/LICENSE +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/MANIFEST.in +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/README.md +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esp_rfc2217_server/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esp_rfc2217_server/__main__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esp_rfc2217_server/esp_port_manager.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esp_rfc2217_server/redirector.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esp_rfc2217_server.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/__main__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/base_fields.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/csv_table_parser.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/emulate_efuse_controller_base.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32/emulate_efuse_controller.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32/fields.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32/mem_definition.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32/operations.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c2/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c2/emulate_efuse_controller.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c2/operations.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c3/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c3/emulate_efuse_controller.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c3/operations.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c5/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c5/emulate_efuse_controller.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c5/operations.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c5beta3/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c5beta3/emulate_efuse_controller.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c5beta3/fields.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c5beta3/mem_definition.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c5beta3/operations.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c6/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c6/emulate_efuse_controller.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c6/operations.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c61/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c61/emulate_efuse_controller.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32c61/operations.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h2/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h2/emulate_efuse_controller.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h2/operations.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h21/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h21/emulate_efuse_controller.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h2beta1/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h2beta1/emulate_efuse_controller.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h2beta1/fields.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h2beta1/mem_definition.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h2beta1/operations.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h4/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32h4/emulate_efuse_controller.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32p4/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32p4/emulate_efuse_controller.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32p4/operations.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32s2/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32s2/emulate_efuse_controller.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32s2/operations.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32s3/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32s3/emulate_efuse_controller.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32s3/operations.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32s3beta2/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32s3beta2/emulate_efuse_controller.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32s3beta2/fields.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32s3beta2/mem_definition.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/esp32s3beta2/operations.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse/util.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse_defs/esp32.yaml +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse_defs/esp32c2.yaml +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse_defs/esp32c3.yaml +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse_defs/esp32c5beta3.yaml +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse_defs/esp32c6.yaml +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse_defs/esp32c61.yaml +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse_defs/esp32h2_v0.0_v1.1.yaml +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse_defs/esp32p4.yaml +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse_defs/esp32p4_v3.0.yaml +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse_defs/esp32s2.yaml +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse/efuse_defs/esp32s3.yaml +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espefuse.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espsecure/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espsecure/__main__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espsecure/esp_hsm_sign/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espsecure/esp_hsm_sign/exceptions.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/espsecure.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/__main__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/config.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/reset.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/__init__.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32c2.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32c5beta3.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32c6.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32c6beta.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32h2beta1.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32h2beta2.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32s2.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp32s3beta2.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/esp8266.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/README.md +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/esp32.json +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/esp32c2.json +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/esp32c3.json +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/esp32c5.json +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/esp32c5beta3.json +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/esp32c6.json +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/esp32c61.json +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/esp32c6beta.json +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/esp32h2.json +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/esp32h2beta1.json +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/esp32h2beta2.json +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/esp32p4-rev1.json +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/esp32s2.json +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/esp32s3.json +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/esp32s3beta2.json +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/1/esp8266.json +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/2/LICENSE-APACHE +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/targets/stub_flasher/2/LICENSE-MIT +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/uf2_writer.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool/util.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool.egg-info/dependency_links.txt +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool.egg-info/top_level.txt +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/esptool.py +0 -0
- {esptool-4.12.dev3 → esptool-4.13.0}/setup.cfg +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: esptool
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.13.0
|
|
4
4
|
Summary: A serial utility to communicate & flash code to Espressif chips.
|
|
5
5
|
Author: Fredrik Ahlberg (themadinventor), Angus Gratton (projectgus), Espressif Systems
|
|
6
|
-
License:
|
|
6
|
+
License-Expression: GPL-2.0-or-later
|
|
7
7
|
Project-URL: Homepage, https://github.com/espressif/esptool/
|
|
8
8
|
Project-URL: Documentation, https://docs.espressif.com/projects/esptool/
|
|
9
9
|
Project-URL: Source, https://github.com/espressif/esptool/
|
|
@@ -17,7 +17,6 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
17
17
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
18
18
|
Classifier: Topic :: Software Development :: Embedded Systems
|
|
19
19
|
Classifier: Environment :: Console
|
|
20
|
-
Classifier: License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.7
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.8
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.9
|
|
@@ -28,9 +27,10 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
28
27
|
Requires-Python: >=3.7
|
|
29
28
|
Description-Content-Type: text/markdown
|
|
30
29
|
License-File: LICENSE
|
|
31
|
-
Requires-Dist: bitstring!=4.2.0,>=3.1.6
|
|
30
|
+
Requires-Dist: bitstring!=4.2.0,<5,>=3.1.6
|
|
32
31
|
Requires-Dist: cryptography>=2.1.4
|
|
33
32
|
Requires-Dist: ecdsa>=0.16.0
|
|
33
|
+
Requires-Dist: cryptography<49.0.0; platform_system == "Darwin" and platform_machine == "x86_64"
|
|
34
34
|
Requires-Dist: pyserial>=3.3
|
|
35
35
|
Requires-Dist: reedsolo<1.8,>=1.5.3
|
|
36
36
|
Requires-Dist: PyYAML>=5.1
|
|
@@ -47,6 +47,7 @@ Requires-Dist: commitizen; extra == "dev"
|
|
|
47
47
|
Provides-Extra: hsm
|
|
48
48
|
Requires-Dist: python-pkcs11; extra == "hsm"
|
|
49
49
|
Dynamic: license-file
|
|
50
|
+
Dynamic: license-expression
|
|
50
51
|
|
|
51
52
|
# esptool.py
|
|
52
53
|
|
|
@@ -391,6 +391,9 @@ def summary(esp, efuses, args):
|
|
|
391
391
|
elif args.format == "json":
|
|
392
392
|
json.dump(json_efuse, args.file, sort_keys=True, indent=4)
|
|
393
393
|
print("")
|
|
394
|
+
if args.file != sys.stdout:
|
|
395
|
+
args.file.close()
|
|
396
|
+
print("Done")
|
|
394
397
|
|
|
395
398
|
|
|
396
399
|
def dump(esp, efuses, args):
|
|
@@ -257,10 +257,7 @@ class EspEfuses(base_fields.EspEfusesBase):
|
|
|
257
257
|
ret_fail = False
|
|
258
258
|
for block in self.blocks:
|
|
259
259
|
if block.id == 0:
|
|
260
|
-
words = [
|
|
261
|
-
self.read_reg(self.REGS.EFUSE_RD_REPEAT_ERR_REG + offs * 4)
|
|
262
|
-
for offs in range(1)
|
|
263
|
-
]
|
|
260
|
+
words = [self.read_reg(reg) for reg in self.REGS.BLOCK0_ERRORS]
|
|
264
261
|
block.err_bitarray.pos = 0
|
|
265
262
|
for word in reversed(words):
|
|
266
263
|
block.err_bitarray.overwrite(BitArray("uint:32=%d" % word))
|
|
@@ -63,6 +63,10 @@ class EfuseDefineRegisters(EfuseRegistersBase):
|
|
|
63
63
|
EFUSE_DAC_NUM_S = 9
|
|
64
64
|
EFUSE_DAC_NUM_M = 0xFF << EFUSE_DAC_NUM_S
|
|
65
65
|
|
|
66
|
+
BLOCK0_ERRORS = [
|
|
67
|
+
EFUSE_RD_REPEAT_ERR_REG,
|
|
68
|
+
]
|
|
69
|
+
|
|
66
70
|
|
|
67
71
|
class EfuseDefineBlocks(EfuseBlocksBase):
|
|
68
72
|
__base_rd_regs = EfuseDefineRegisters.DR_REG_EFUSE_BASE
|
|
@@ -256,10 +256,7 @@ class EspEfuses(base_fields.EspEfusesBase):
|
|
|
256
256
|
ret_fail = False
|
|
257
257
|
for block in self.blocks:
|
|
258
258
|
if block.id == 0:
|
|
259
|
-
words = [
|
|
260
|
-
self.read_reg(self.REGS.EFUSE_RD_REPEAT_ERR0_REG + offs * 4)
|
|
261
|
-
for offs in range(5)
|
|
262
|
-
]
|
|
259
|
+
words = [self.read_reg(reg) for reg in self.REGS.BLOCK0_ERRORS]
|
|
263
260
|
block.err_bitarray.pos = 0
|
|
264
261
|
for word in reversed(words):
|
|
265
262
|
block.err_bitarray.overwrite(BitArray("uint:32=%d" % word))
|
|
@@ -33,7 +33,7 @@ class EfuseDefineRegisters(EfuseRegistersBase):
|
|
|
33
33
|
EFUSE_RD_REPEAT_ERR1_REG = DR_REG_EFUSE_BASE + 0x180
|
|
34
34
|
EFUSE_RD_REPEAT_ERR2_REG = DR_REG_EFUSE_BASE + 0x184
|
|
35
35
|
EFUSE_RD_REPEAT_ERR3_REG = DR_REG_EFUSE_BASE + 0x188
|
|
36
|
-
EFUSE_RD_REPEAT_ERR4_REG = DR_REG_EFUSE_BASE +
|
|
36
|
+
EFUSE_RD_REPEAT_ERR4_REG = DR_REG_EFUSE_BASE + 0x190
|
|
37
37
|
EFUSE_DAC_CONF_REG = DR_REG_EFUSE_BASE + 0x1E8
|
|
38
38
|
EFUSE_RD_TIM_CONF_REG = DR_REG_EFUSE_BASE + 0x1EC
|
|
39
39
|
EFUSE_WR_TIM_CONF1_REG = DR_REG_EFUSE_BASE + 0x1F0
|
|
@@ -92,6 +92,14 @@ class EfuseDefineRegisters(EfuseRegistersBase):
|
|
|
92
92
|
EFUSE_DAC_NUM_S = 9
|
|
93
93
|
EFUSE_DAC_NUM_M = 0xFF << EFUSE_DAC_NUM_S
|
|
94
94
|
|
|
95
|
+
BLOCK0_ERRORS = [
|
|
96
|
+
EFUSE_RD_REPEAT_ERR0_REG,
|
|
97
|
+
EFUSE_RD_REPEAT_ERR1_REG,
|
|
98
|
+
EFUSE_RD_REPEAT_ERR2_REG,
|
|
99
|
+
EFUSE_RD_REPEAT_ERR3_REG,
|
|
100
|
+
EFUSE_RD_REPEAT_ERR4_REG,
|
|
101
|
+
]
|
|
102
|
+
|
|
95
103
|
|
|
96
104
|
class EfuseDefineBlocks(EfuseBlocksBase):
|
|
97
105
|
__base_rd_regs = EfuseDefineRegisters.DR_REG_EFUSE_BASE
|
|
@@ -258,10 +258,7 @@ class EspEfuses(base_fields.EspEfusesBase):
|
|
|
258
258
|
ret_fail = False
|
|
259
259
|
for block in self.blocks:
|
|
260
260
|
if block.id == 0:
|
|
261
|
-
words = [
|
|
262
|
-
self.read_reg(self.REGS.EFUSE_RD_REPEAT_ERR0_REG + offs * 4)
|
|
263
|
-
for offs in range(5)
|
|
264
|
-
]
|
|
261
|
+
words = [self.read_reg(reg) for reg in self.REGS.BLOCK0_ERRORS]
|
|
265
262
|
block.err_bitarray.pos = 0
|
|
266
263
|
for word in reversed(words):
|
|
267
264
|
block.err_bitarray.overwrite(BitArray("uint:32=%d" % word))
|
|
@@ -76,6 +76,14 @@ class EfuseDefineRegisters(EfuseRegistersBase):
|
|
|
76
76
|
EFUSE_DAC_NUM_S = 9
|
|
77
77
|
EFUSE_DAC_NUM_M = 0xFF << EFUSE_DAC_NUM_S
|
|
78
78
|
|
|
79
|
+
BLOCK0_ERRORS = [
|
|
80
|
+
EFUSE_RD_REPEAT_ERR0_REG,
|
|
81
|
+
EFUSE_RD_REPEAT_ERR1_REG,
|
|
82
|
+
EFUSE_RD_REPEAT_ERR2_REG,
|
|
83
|
+
EFUSE_RD_REPEAT_ERR3_REG,
|
|
84
|
+
EFUSE_RD_REPEAT_ERR4_REG,
|
|
85
|
+
]
|
|
86
|
+
|
|
79
87
|
|
|
80
88
|
class EfuseDefineBlocks(EfuseBlocksBase):
|
|
81
89
|
__base_rd_regs = EfuseDefineRegisters.DR_REG_EFUSE_BASE
|
|
@@ -258,10 +258,7 @@ class EspEfuses(base_fields.EspEfusesBase):
|
|
|
258
258
|
ret_fail = False
|
|
259
259
|
for block in self.blocks:
|
|
260
260
|
if block.id == 0:
|
|
261
|
-
words = [
|
|
262
|
-
self.read_reg(self.REGS.EFUSE_RD_REPEAT_ERR0_REG + offs * 4)
|
|
263
|
-
for offs in range(5)
|
|
264
|
-
]
|
|
261
|
+
words = [self.read_reg(reg) for reg in self.REGS.BLOCK0_ERRORS]
|
|
265
262
|
block.err_bitarray.pos = 0
|
|
266
263
|
for word in reversed(words):
|
|
267
264
|
block.err_bitarray.overwrite(BitArray("uint:32=%d" % word))
|
|
@@ -33,7 +33,7 @@ class EfuseDefineRegisters(EfuseRegistersBase):
|
|
|
33
33
|
EFUSE_RD_REPEAT_ERR1_REG = DR_REG_EFUSE_BASE + 0x180
|
|
34
34
|
EFUSE_RD_REPEAT_ERR2_REG = DR_REG_EFUSE_BASE + 0x184
|
|
35
35
|
EFUSE_RD_REPEAT_ERR3_REG = DR_REG_EFUSE_BASE + 0x188
|
|
36
|
-
EFUSE_RD_REPEAT_ERR4_REG = DR_REG_EFUSE_BASE +
|
|
36
|
+
EFUSE_RD_REPEAT_ERR4_REG = DR_REG_EFUSE_BASE + 0x190
|
|
37
37
|
EFUSE_DAC_CONF_REG = DR_REG_EFUSE_BASE + 0x1E8
|
|
38
38
|
EFUSE_RD_TIM_CONF_REG = DR_REG_EFUSE_BASE + 0x1EC
|
|
39
39
|
EFUSE_WR_TIM_CONF1_REG = DR_REG_EFUSE_BASE + 0x1F0
|
|
@@ -76,6 +76,14 @@ class EfuseDefineRegisters(EfuseRegistersBase):
|
|
|
76
76
|
EFUSE_DAC_NUM_S = 9
|
|
77
77
|
EFUSE_DAC_NUM_M = 0xFF << EFUSE_DAC_NUM_S
|
|
78
78
|
|
|
79
|
+
BLOCK0_ERRORS = [
|
|
80
|
+
EFUSE_RD_REPEAT_ERR0_REG,
|
|
81
|
+
EFUSE_RD_REPEAT_ERR1_REG,
|
|
82
|
+
EFUSE_RD_REPEAT_ERR2_REG,
|
|
83
|
+
EFUSE_RD_REPEAT_ERR3_REG,
|
|
84
|
+
EFUSE_RD_REPEAT_ERR4_REG,
|
|
85
|
+
]
|
|
86
|
+
|
|
79
87
|
|
|
80
88
|
class EfuseDefineBlocks(EfuseBlocksBase):
|
|
81
89
|
__base_rd_regs = EfuseDefineRegisters.DR_REG_EFUSE_BASE
|
|
@@ -258,10 +258,7 @@ class EspEfuses(base_fields.EspEfusesBase):
|
|
|
258
258
|
ret_fail = False
|
|
259
259
|
for block in self.blocks:
|
|
260
260
|
if block.id == 0:
|
|
261
|
-
words = [
|
|
262
|
-
self.read_reg(self.REGS.EFUSE_RD_REPEAT_ERR0_REG + offs * 4)
|
|
263
|
-
for offs in range(5)
|
|
264
|
-
]
|
|
261
|
+
words = [self.read_reg(reg) for reg in self.REGS.BLOCK0_ERRORS]
|
|
265
262
|
block.err_bitarray.pos = 0
|
|
266
263
|
for word in reversed(words):
|
|
267
264
|
block.err_bitarray.overwrite(BitArray("uint:32=%d" % word))
|
|
@@ -407,10 +404,6 @@ class EfuseKeyPurposeField(EfuseField):
|
|
|
407
404
|
("USER", 0, None, None, "no_need_rd_protect"), # User purposes (software-only use)
|
|
408
405
|
("ECDSA_KEY", 1, None, "Reverse", "need_rd_protect"), # ECDSA key
|
|
409
406
|
("XTS_AES_128_KEY", 4, None, "Reverse", "need_rd_protect"), # XTS_AES_128_KEY (flash/PSRAM encryption)
|
|
410
|
-
("HMAC_DOWN_ALL", 5, None, None, "need_rd_protect"), # HMAC Downstream mode
|
|
411
|
-
("HMAC_DOWN_JTAG", 6, None, None, "need_rd_protect"), # JTAG soft enable key (uses HMAC Downstream mode)
|
|
412
|
-
("HMAC_DOWN_DIGITAL_SIGNATURE", 7, None, None, "need_rd_protect"), # Digital Signature peripheral key (uses HMAC Downstream mode)
|
|
413
|
-
("HMAC_UP", 8, None, None, "need_rd_protect"), # HMAC Upstream mode
|
|
414
407
|
("SECURE_BOOT_DIGEST0", 9, "DIGEST", None, "no_need_rd_protect"), # SECURE_BOOT_DIGEST0 (Secure Boot key digest)
|
|
415
408
|
("SECURE_BOOT_DIGEST1", 10, "DIGEST", None, "no_need_rd_protect"), # SECURE_BOOT_DIGEST1 (Secure Boot key digest)
|
|
416
409
|
("SECURE_BOOT_DIGEST2", 11, "DIGEST", None, "no_need_rd_protect"), # SECURE_BOOT_DIGEST2 (Secure Boot key digest)
|
|
@@ -27,8 +27,8 @@ class EfuseDefineRegisters(EfuseRegistersBase):
|
|
|
27
27
|
EFUSE_CONF_REG = DR_REG_EFUSE_BASE + 0x1CC
|
|
28
28
|
EFUSE_STATUS_REG = DR_REG_EFUSE_BASE + 0x1D0
|
|
29
29
|
EFUSE_CMD_REG = DR_REG_EFUSE_BASE + 0x1D4
|
|
30
|
-
EFUSE_RD_RS_ERR0_REG = DR_REG_EFUSE_BASE +
|
|
31
|
-
EFUSE_RD_RS_ERR1_REG = DR_REG_EFUSE_BASE +
|
|
30
|
+
EFUSE_RD_RS_ERR0_REG = DR_REG_EFUSE_BASE + 0x190
|
|
31
|
+
EFUSE_RD_RS_ERR1_REG = DR_REG_EFUSE_BASE + 0x194
|
|
32
32
|
EFUSE_RD_REPEAT_ERR0_REG = DR_REG_EFUSE_BASE + 0x17C
|
|
33
33
|
EFUSE_RD_REPEAT_ERR1_REG = DR_REG_EFUSE_BASE + 0x180
|
|
34
34
|
EFUSE_RD_REPEAT_ERR2_REG = DR_REG_EFUSE_BASE + 0x184
|
|
@@ -38,7 +38,7 @@ class EfuseDefineRegisters(EfuseRegistersBase):
|
|
|
38
38
|
EFUSE_RD_TIM_CONF_REG = DR_REG_EFUSE_BASE + 0x1EC
|
|
39
39
|
EFUSE_WR_TIM_CONF1_REG = DR_REG_EFUSE_BASE + 0x1F0
|
|
40
40
|
EFUSE_WR_TIM_CONF2_REG = DR_REG_EFUSE_BASE + 0x1F4
|
|
41
|
-
EFUSE_DATE_REG = DR_REG_EFUSE_BASE +
|
|
41
|
+
EFUSE_DATE_REG = DR_REG_EFUSE_BASE + 0x198
|
|
42
42
|
EFUSE_WRITE_OP_CODE = 0x5A5A
|
|
43
43
|
EFUSE_READ_OP_CODE = 0x5AA5
|
|
44
44
|
EFUSE_PGM_CMD_MASK = 0x3
|
|
@@ -76,6 +76,14 @@ class EfuseDefineRegisters(EfuseRegistersBase):
|
|
|
76
76
|
EFUSE_DAC_NUM_S = 9
|
|
77
77
|
EFUSE_DAC_NUM_M = 0xFF << EFUSE_DAC_NUM_S
|
|
78
78
|
|
|
79
|
+
BLOCK0_ERRORS = [
|
|
80
|
+
EFUSE_RD_REPEAT_ERR0_REG,
|
|
81
|
+
EFUSE_RD_REPEAT_ERR1_REG,
|
|
82
|
+
EFUSE_RD_REPEAT_ERR2_REG,
|
|
83
|
+
EFUSE_RD_REPEAT_ERR3_REG,
|
|
84
|
+
EFUSE_RD_REPEAT_ERR4_REG,
|
|
85
|
+
]
|
|
86
|
+
|
|
79
87
|
|
|
80
88
|
class EfuseDefineBlocks(EfuseBlocksBase):
|
|
81
89
|
__base_rd_regs = EfuseDefineRegisters.DR_REG_EFUSE_BASE
|
|
@@ -263,10 +263,7 @@ class EspEfuses(base_fields.EspEfusesBase):
|
|
|
263
263
|
ret_fail = False
|
|
264
264
|
for block in self.blocks:
|
|
265
265
|
if block.id == 0:
|
|
266
|
-
words = [
|
|
267
|
-
self.read_reg(self.REGS.EFUSE_RD_REPEAT_ERR0_REG + offs * 4)
|
|
268
|
-
for offs in range(5)
|
|
269
|
-
]
|
|
266
|
+
words = [self.read_reg(reg) for reg in self.REGS.BLOCK0_ERRORS]
|
|
270
267
|
block.err_bitarray.pos = 0
|
|
271
268
|
for word in reversed(words):
|
|
272
269
|
block.err_bitarray.overwrite(BitArray("uint:32=%d" % word))
|
|
@@ -76,6 +76,14 @@ class EfuseDefineRegisters(EfuseRegistersBase):
|
|
|
76
76
|
EFUSE_DAC_NUM_S = 9
|
|
77
77
|
EFUSE_DAC_NUM_M = 0xFF << EFUSE_DAC_NUM_S
|
|
78
78
|
|
|
79
|
+
BLOCK0_ERRORS = [
|
|
80
|
+
EFUSE_RD_REPEAT_ERR0_REG,
|
|
81
|
+
EFUSE_RD_REPEAT_ERR1_REG,
|
|
82
|
+
EFUSE_RD_REPEAT_ERR2_REG,
|
|
83
|
+
EFUSE_RD_REPEAT_ERR3_REG,
|
|
84
|
+
EFUSE_RD_REPEAT_ERR4_REG,
|
|
85
|
+
]
|
|
86
|
+
|
|
79
87
|
|
|
80
88
|
class EfuseDefineBlocks(EfuseBlocksBase):
|
|
81
89
|
__base_rd_regs = EfuseDefineRegisters.DR_REG_EFUSE_BASE
|
|
@@ -102,7 +102,8 @@ class EspEfuses(base_fields.EspEfusesBase):
|
|
|
102
102
|
for efuse in self.Fields.BLOCK2_CALIBRATION_EFUSES
|
|
103
103
|
]
|
|
104
104
|
else:
|
|
105
|
-
|
|
105
|
+
# Calibration data is present starting with BLK version 0.1.
|
|
106
|
+
if self.get_block_version() >= 1:
|
|
106
107
|
self.efuses += [
|
|
107
108
|
EfuseField.convert(self, efuse)
|
|
108
109
|
for efuse in self.Fields.BLOCK2_CALIBRATION_EFUSES
|
|
@@ -249,10 +250,7 @@ class EspEfuses(base_fields.EspEfusesBase):
|
|
|
249
250
|
ret_fail = False
|
|
250
251
|
for block in self.blocks:
|
|
251
252
|
if block.id == 0:
|
|
252
|
-
words = [
|
|
253
|
-
self.read_reg(self.REGS.EFUSE_RD_REPEAT_ERR0_REG + offs * 4)
|
|
254
|
-
for offs in range(5)
|
|
255
|
-
]
|
|
253
|
+
words = [self.read_reg(reg) for reg in self.REGS.BLOCK0_ERRORS]
|
|
256
254
|
block.err_bitarray.pos = 0
|
|
257
255
|
for word in reversed(words):
|
|
258
256
|
block.err_bitarray.overwrite(BitArray("uint:32=%d" % word))
|
|
@@ -27,8 +27,8 @@ class EfuseDefineRegisters(EfuseRegistersBase):
|
|
|
27
27
|
EFUSE_CONF_REG = DR_REG_EFUSE_BASE + 0x1CC
|
|
28
28
|
EFUSE_STATUS_REG = DR_REG_EFUSE_BASE + 0x1D0
|
|
29
29
|
EFUSE_CMD_REG = DR_REG_EFUSE_BASE + 0x1D4
|
|
30
|
-
EFUSE_RD_RS_ERR0_REG = DR_REG_EFUSE_BASE +
|
|
31
|
-
EFUSE_RD_RS_ERR1_REG = DR_REG_EFUSE_BASE +
|
|
30
|
+
EFUSE_RD_RS_ERR0_REG = DR_REG_EFUSE_BASE + 0x190
|
|
31
|
+
EFUSE_RD_RS_ERR1_REG = DR_REG_EFUSE_BASE + 0x194
|
|
32
32
|
EFUSE_RD_REPEAT_ERR0_REG = DR_REG_EFUSE_BASE + 0x17C
|
|
33
33
|
EFUSE_RD_REPEAT_ERR1_REG = DR_REG_EFUSE_BASE + 0x180
|
|
34
34
|
EFUSE_RD_REPEAT_ERR2_REG = DR_REG_EFUSE_BASE + 0x184
|
|
@@ -38,7 +38,7 @@ class EfuseDefineRegisters(EfuseRegistersBase):
|
|
|
38
38
|
EFUSE_RD_TIM_CONF_REG = DR_REG_EFUSE_BASE + 0x1EC
|
|
39
39
|
EFUSE_WR_TIM_CONF1_REG = DR_REG_EFUSE_BASE + 0x1F0
|
|
40
40
|
EFUSE_WR_TIM_CONF2_REG = DR_REG_EFUSE_BASE + 0x1F4
|
|
41
|
-
EFUSE_DATE_REG = DR_REG_EFUSE_BASE +
|
|
41
|
+
EFUSE_DATE_REG = DR_REG_EFUSE_BASE + 0x198
|
|
42
42
|
EFUSE_WRITE_OP_CODE = 0x5A5A
|
|
43
43
|
EFUSE_READ_OP_CODE = 0x5AA5
|
|
44
44
|
EFUSE_PGM_CMD_MASK = 0x3
|
|
@@ -76,6 +76,14 @@ class EfuseDefineRegisters(EfuseRegistersBase):
|
|
|
76
76
|
EFUSE_DAC_NUM_S = 9
|
|
77
77
|
EFUSE_DAC_NUM_M = 0xFF << EFUSE_DAC_NUM_S
|
|
78
78
|
|
|
79
|
+
BLOCK0_ERRORS = [
|
|
80
|
+
EFUSE_RD_REPEAT_ERR0_REG,
|
|
81
|
+
EFUSE_RD_REPEAT_ERR1_REG,
|
|
82
|
+
EFUSE_RD_REPEAT_ERR2_REG,
|
|
83
|
+
EFUSE_RD_REPEAT_ERR3_REG,
|
|
84
|
+
EFUSE_RD_REPEAT_ERR4_REG,
|
|
85
|
+
]
|
|
86
|
+
|
|
79
87
|
|
|
80
88
|
class EfuseDefineBlocks(EfuseBlocksBase):
|
|
81
89
|
__base_rd_regs = EfuseDefineRegisters.DR_REG_EFUSE_BASE
|
|
@@ -94,7 +102,7 @@ class EfuseDefineBlocks(EfuseBlocksBase):
|
|
|
94
102
|
("BLOCK_KEY3", ["BLOCK7"], 7, __base_rd_regs + 0x0FC, __base_wr_regs, 26, 3, 8, "KEY_PURPOSE_3"),
|
|
95
103
|
("BLOCK_KEY4", ["BLOCK8"], 8, __base_rd_regs + 0x11C, __base_wr_regs, 27, 4, 8, "KEY_PURPOSE_4"),
|
|
96
104
|
("BLOCK_KEY5", ["BLOCK9"], 9, __base_rd_regs + 0x13C, __base_wr_regs, 28, 5, 8, "KEY_PURPOSE_5"),
|
|
97
|
-
("BLOCK_SYS_DATA2", ["BLOCK10"], 10, __base_rd_regs + 0x15C, __base_wr_regs, 29,
|
|
105
|
+
("BLOCK_SYS_DATA2", ["BLOCK10"], 10, __base_rd_regs + 0x15C, __base_wr_regs, 29, None, 8, None),
|
|
98
106
|
]
|
|
99
107
|
# fmt: on
|
|
100
108
|
|
|
@@ -128,6 +136,23 @@ class EfuseDefineFields(EfuseFieldsBase):
|
|
|
128
136
|
super().__init__(e_desc, extend_efuse_table)
|
|
129
137
|
|
|
130
138
|
for i, efuse in enumerate(self.ALL_EFUSES):
|
|
139
|
+
# H21 stores raw trim codes, not ADC two-point calibration values.
|
|
140
|
+
if efuse.class_type == "adc_tp":
|
|
141
|
+
efuse.class_type = ""
|
|
142
|
+
|
|
143
|
+
if efuse.name in [
|
|
144
|
+
"PVT_DRVB",
|
|
145
|
+
"TEMP_CALI",
|
|
146
|
+
"VDD_3V4_DOUT",
|
|
147
|
+
"ACTIVE_DCDC_1V25",
|
|
148
|
+
"ACTIVE_DCDC_1V55",
|
|
149
|
+
"SLP_DCDC",
|
|
150
|
+
"RXIQ_VERSION",
|
|
151
|
+
"RXIQ_0",
|
|
152
|
+
"RXIQ_1",
|
|
153
|
+
]:
|
|
154
|
+
efuse.category = "calibration"
|
|
155
|
+
|
|
131
156
|
if efuse.name in [
|
|
132
157
|
"BLOCK_USR_DATA",
|
|
133
158
|
"BLOCK_KEY0",
|
|
@@ -192,10 +192,11 @@ def set_flash_voltage(esp, efuses, args):
|
|
|
192
192
|
|
|
193
193
|
|
|
194
194
|
def adc_info(esp, efuses, args):
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
195
|
+
print("Block version:", efuses.get_block_version())
|
|
196
|
+
if efuses.get_block_version() >= 1:
|
|
197
|
+
for efuse in efuses:
|
|
198
|
+
if efuse.category == "calibration":
|
|
199
|
+
print(f"{efuse.name:<30} = ", efuses[efuse.name].get())
|
|
199
200
|
|
|
200
201
|
|
|
201
202
|
def burn_key(esp, efuses, args, digest=None):
|
|
@@ -293,15 +294,6 @@ def burn_key(esp, efuses, args, digest=None):
|
|
|
293
294
|
if efuses[block.key_purpose_name].is_writeable():
|
|
294
295
|
disable_wr_protect_key_purpose = True
|
|
295
296
|
|
|
296
|
-
if keypurpose == "ECDSA_KEY":
|
|
297
|
-
if efuses["ECDSA_FORCE_USE_HARDWARE_K"].get() == 0:
|
|
298
|
-
# For ECDSA key purpose block permanently enable
|
|
299
|
-
# the hardware TRNG supplied k mode (most secure mode)
|
|
300
|
-
print("\tECDSA_FORCE_USE_HARDWARE_K: 0 -> 1")
|
|
301
|
-
efuses["ECDSA_FORCE_USE_HARDWARE_K"].save(1)
|
|
302
|
-
else:
|
|
303
|
-
print("\tECDSA_FORCE_USE_HARDWARE_K is already '1'")
|
|
304
|
-
|
|
305
297
|
if disable_wr_protect_key_purpose:
|
|
306
298
|
print("\tDisabling write to '%s'." % block.key_purpose_name)
|
|
307
299
|
efuses[block.key_purpose_name].disable_write()
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import binascii
|
|
8
8
|
import struct
|
|
9
9
|
import time
|
|
10
|
+
from typing import List, Optional, Tuple
|
|
10
11
|
|
|
11
12
|
from bitstring import BitArray
|
|
12
13
|
|
|
@@ -101,7 +102,7 @@ class EspEfuses(base_fields.EspEfusesBase):
|
|
|
101
102
|
for efuse in self.Fields.BLOCK2_CALIBRATION_EFUSES
|
|
102
103
|
]
|
|
103
104
|
else:
|
|
104
|
-
if
|
|
105
|
+
if self.get_block_version() >= 1:
|
|
105
106
|
self.efuses += [
|
|
106
107
|
EfuseField.convert(self, efuse)
|
|
107
108
|
for efuse in self.Fields.BLOCK2_CALIBRATION_EFUSES
|
|
@@ -239,8 +240,6 @@ class EspEfuses(base_fields.EspEfusesBase):
|
|
|
239
240
|
"The eFuse supports only xtal=32M (xtal was %d)" % apb_freq
|
|
240
241
|
)
|
|
241
242
|
|
|
242
|
-
# TODO: [ESP32H4] IDF-12268
|
|
243
|
-
|
|
244
243
|
def get_coding_scheme_warnings(self, silent=False):
|
|
245
244
|
"""Check if the coding scheme has detected any errors."""
|
|
246
245
|
old_addr_reg = 0
|
|
@@ -248,10 +247,7 @@ class EspEfuses(base_fields.EspEfusesBase):
|
|
|
248
247
|
ret_fail = False
|
|
249
248
|
for block in self.blocks:
|
|
250
249
|
if block.id == 0:
|
|
251
|
-
words = [
|
|
252
|
-
self.read_reg(self.REGS.EFUSE_RD_REPEAT_ERR0_REG + offs * 4)
|
|
253
|
-
for offs in range(5)
|
|
254
|
-
]
|
|
250
|
+
words = [self.read_reg(reg) for reg in self.REGS.BLOCK0_ERRORS]
|
|
255
251
|
block.err_bitarray.pos = 0
|
|
256
252
|
for word in reversed(words):
|
|
257
253
|
block.err_bitarray.overwrite(BitArray("uint:32=%d" % word))
|
|
@@ -296,10 +292,6 @@ class EfuseField(base_fields.EfuseFieldBase):
|
|
|
296
292
|
|
|
297
293
|
|
|
298
294
|
class EfuseWafer(EfuseField):
|
|
299
|
-
def get(self, from_read=True):
|
|
300
|
-
# TODO: [ESP32H4] IDF-12268
|
|
301
|
-
return 0
|
|
302
|
-
|
|
303
295
|
def save(self, new_value):
|
|
304
296
|
raise esptool.FatalError("Burning %s is not supported" % self.name)
|
|
305
297
|
|
|
@@ -390,10 +382,14 @@ class EfuseMacField(EfuseField):
|
|
|
390
382
|
|
|
391
383
|
# fmt: off
|
|
392
384
|
class EfuseKeyPurposeField(EfuseField):
|
|
393
|
-
#
|
|
394
|
-
|
|
385
|
+
key_purpose_len = 5 # bits for key purpose
|
|
386
|
+
KeyPurposeType = Tuple[str, int, Optional[str], Optional[str], str]
|
|
387
|
+
KEY_PURPOSES: List[KeyPurposeType] = [
|
|
395
388
|
("USER", 0, None, None, "no_need_rd_protect"), # User purposes (software-only use)
|
|
396
|
-
("
|
|
389
|
+
("ECDSA_KEY_P256", 1, None, "Reverse", "need_rd_protect"), # ECDSA key P256 (NIST P-256)
|
|
390
|
+
("ECDSA_KEY", 1, None, "Reverse", "need_rd_protect"), # ECDSA key (alias for P256)
|
|
391
|
+
("XTS_AES_256_KEY_1", 2, None, "Reverse", "need_rd_protect"), # Flash encryption key (XTS-AES-256 low/first half)
|
|
392
|
+
("XTS_AES_256_KEY_2", 3, None, "Reverse", "need_rd_protect"), # Flash encryption key (XTS-AES-256 high/second half)
|
|
397
393
|
("XTS_AES_128_KEY", 4, None, "Reverse", "need_rd_protect"), # XTS_AES_128_KEY (flash/PSRAM encryption)
|
|
398
394
|
("HMAC_DOWN_ALL", 5, None, None, "need_rd_protect"), # HMAC Downstream mode
|
|
399
395
|
("HMAC_DOWN_JTAG", 6, None, None, "need_rd_protect"), # JTAG soft enable key (uses HMAC Downstream mode)
|
|
@@ -403,7 +399,24 @@ class EfuseKeyPurposeField(EfuseField):
|
|
|
403
399
|
("SECURE_BOOT_DIGEST1", 10, "DIGEST", None, "no_need_rd_protect"), # SECURE_BOOT_DIGEST1 (Secure Boot key digest)
|
|
404
400
|
("SECURE_BOOT_DIGEST2", 11, "DIGEST", None, "no_need_rd_protect"), # SECURE_BOOT_DIGEST2 (Secure Boot key digest)
|
|
405
401
|
("KM_INIT_KEY", 12, None, None, "need_rd_protect"), # init key that is used for the generation of AES/ECDSA key
|
|
402
|
+
("XTS_AES_256_PSRAM_KEY_1", 13, None, "Reverse", "need_rd_protect"), # PSRAM encryption key (XTS-AES-256 low/first half)
|
|
403
|
+
("XTS_AES_256_PSRAM_KEY_2", 14, None, "Reverse", "need_rd_protect"), # PSRAM encryption key (XTS-AES-256 high/second half)
|
|
404
|
+
("XTS_AES_128_PSRAM_KEY", 15, None, "Reverse", "need_rd_protect"), # PSRAM encryption key (XTS-AES-128)
|
|
405
|
+
("ECDSA_KEY_P192", 16, None, "Reverse", "need_rd_protect"), # ECDSA key P192 (NIST P-192)
|
|
406
|
+
("ECDSA_KEY_P384_L", 17, None, "Reverse", "need_rd_protect"), # ECDSA key P384 low half
|
|
407
|
+
("ECDSA_KEY_P384_H", 18, None, "Reverse", "need_rd_protect"), # ECDSA key P384 high half
|
|
408
|
+
("XTS_AES_256_KEY", -1, "VIRTUAL", None, "no_need_rd_protect"), # Virtual purpose splits to XTS_AES_256_KEY_1 and XTS_AES_256_KEY_2
|
|
409
|
+
("XTS_AES_256_PSRAM_KEY", -2, "VIRTUAL", None, "no_need_rd_protect"), # Virtual purpose splits to XTS_AES_256_PSRAM_KEY_1 and XTS_AES_256_PSRAM_KEY_2
|
|
410
|
+
("ECDSA_KEY_P384", -3, "VIRTUAL", None, "need_rd_protect"), # Virtual: one key file -> ECDSA_KEY_P384_L + ECDSA_KEY_P384_H
|
|
406
411
|
]
|
|
412
|
+
CUSTOM_KEY_PURPOSES: List[KeyPurposeType] = []
|
|
413
|
+
for id in range(0, 1 << key_purpose_len):
|
|
414
|
+
if id not in [p[1] for p in KEY_PURPOSES]:
|
|
415
|
+
CUSTOM_KEY_PURPOSES.append((f"CUSTOM_{id}", id, None, None, "no_need_rd_protect"))
|
|
416
|
+
CUSTOM_KEY_PURPOSES.append((f"CUSTOM_DIGEST_{id}", id, "DIGEST", None, "no_need_rd_protect"))
|
|
417
|
+
CUSTOM_KEY_PURPOSES.append(("CUSTOM_MAX", (1 << key_purpose_len) - 1, None, None, "no_need_rd_protect"))
|
|
418
|
+
CUSTOM_KEY_PURPOSES.append(("CUSTOM_DIGEST_MAX", (1 << key_purpose_len) - 1, "DIGEST", None, "no_need_rd_protect"))
|
|
419
|
+
KEY_PURPOSES += CUSTOM_KEY_PURPOSES
|
|
407
420
|
# fmt: on
|
|
408
421
|
|
|
409
422
|
KEY_PURPOSES_NAME = [name[0] for name in KEY_PURPOSES]
|
|
@@ -76,6 +76,14 @@ class EfuseDefineRegisters(EfuseRegistersBase):
|
|
|
76
76
|
EFUSE_DAC_NUM_S = 9
|
|
77
77
|
EFUSE_DAC_NUM_M = 0xFF << EFUSE_DAC_NUM_S
|
|
78
78
|
|
|
79
|
+
BLOCK0_ERRORS = [
|
|
80
|
+
EFUSE_RD_REPEAT_ERR0_REG,
|
|
81
|
+
EFUSE_RD_REPEAT_ERR1_REG,
|
|
82
|
+
EFUSE_RD_REPEAT_ERR2_REG,
|
|
83
|
+
EFUSE_RD_REPEAT_ERR3_REG,
|
|
84
|
+
EFUSE_RD_REPEAT_ERR4_REG,
|
|
85
|
+
]
|
|
86
|
+
|
|
79
87
|
|
|
80
88
|
class EfuseDefineBlocks(EfuseBlocksBase):
|
|
81
89
|
__base_rd_regs = EfuseDefineRegisters.DR_REG_EFUSE_BASE
|
|
@@ -132,6 +140,22 @@ class EfuseDefineFields(EfuseFieldsBase):
|
|
|
132
140
|
super().__init__(e_desc, extend_efuse_table)
|
|
133
141
|
|
|
134
142
|
for i, efuse in enumerate(self.ALL_EFUSES):
|
|
143
|
+
if efuse.name in [
|
|
144
|
+
"PVT_DRVB",
|
|
145
|
+
"ADJUST_1V2",
|
|
146
|
+
"ADJUST_1V8",
|
|
147
|
+
"ACTIVE_DCDC_1V25",
|
|
148
|
+
"ACTIVE_DCDC_1V35",
|
|
149
|
+
"SLP_DCDC",
|
|
150
|
+
"VDD_3V4_DOUT",
|
|
151
|
+
"INITCODE_DIFF_1P8_3P3",
|
|
152
|
+
"HI_DOUT_DIFF_1P8_3P3",
|
|
153
|
+
"RXIQ_VERSION",
|
|
154
|
+
"RXIQ_0",
|
|
155
|
+
"RXIQ_1",
|
|
156
|
+
]:
|
|
157
|
+
efuse.category = "calibration"
|
|
158
|
+
|
|
135
159
|
if efuse.name in [
|
|
136
160
|
"BLOCK_USR_DATA",
|
|
137
161
|
"BLOCK_KEY0",
|
|
@@ -17,6 +17,7 @@ from .. import util
|
|
|
17
17
|
from ..base_operations import (
|
|
18
18
|
add_common_commands,
|
|
19
19
|
add_force_write_always,
|
|
20
|
+
add_show_sensitive_info_option,
|
|
20
21
|
burn_bit,
|
|
21
22
|
burn_block_data,
|
|
22
23
|
burn_efuse,
|
|
@@ -56,6 +57,7 @@ def add_commands(subparsers, efuses):
|
|
|
56
57
|
)
|
|
57
58
|
protect_options(burn_key)
|
|
58
59
|
add_force_write_always(burn_key)
|
|
60
|
+
add_show_sensitive_info_option(burn_key)
|
|
59
61
|
burn_key.add_argument(
|
|
60
62
|
"block",
|
|
61
63
|
help="Key block to burn",
|
|
@@ -106,6 +108,7 @@ def add_commands(subparsers, efuses):
|
|
|
106
108
|
)
|
|
107
109
|
protect_options(burn_key_digest)
|
|
108
110
|
add_force_write_always(burn_key_digest)
|
|
111
|
+
add_show_sensitive_info_option(burn_key_digest)
|
|
109
112
|
burn_key_digest.add_argument(
|
|
110
113
|
"block",
|
|
111
114
|
help="Key block to burn",
|
|
@@ -190,10 +193,11 @@ def set_flash_voltage(esp, efuses, args):
|
|
|
190
193
|
|
|
191
194
|
|
|
192
195
|
def adc_info(esp, efuses, args):
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
196
|
+
print("Block version:", efuses.get_block_version())
|
|
197
|
+
if efuses.get_block_version() >= 1:
|
|
198
|
+
for efuse in efuses:
|
|
199
|
+
if efuse.category == "calibration":
|
|
200
|
+
print(f"{efuse.name:<30} = ", efuses[efuse.name].get())
|
|
197
201
|
|
|
198
202
|
|
|
199
203
|
def burn_key(esp, efuses, args, digest=None):
|
|
@@ -243,7 +247,13 @@ def burn_key(esp, efuses, args, digest=None):
|
|
|
243
247
|
if efuses[block.key_purpose_name].need_reverse(keypurpose):
|
|
244
248
|
revers_msg = f"\tReversing byte order for {keypurpose} hardware peripheral"
|
|
245
249
|
data = data[::-1]
|
|
246
|
-
print(
|
|
250
|
+
print(
|
|
251
|
+
"-> [{}]".format(
|
|
252
|
+
util.hexify(data, " ")
|
|
253
|
+
if args.show_sensitive_info
|
|
254
|
+
else " ".join(["??"] * len(data))
|
|
255
|
+
)
|
|
256
|
+
)
|
|
247
257
|
if revers_msg:
|
|
248
258
|
print(revers_msg)
|
|
249
259
|
if len(data) != num_bytes:
|
|
@@ -69,7 +69,10 @@ class EspEfuses(base_fields.EspEfusesBase):
|
|
|
69
69
|
self.Blocks = EfuseDefineBlocks()
|
|
70
70
|
chip_revision = 300 if skip_connect else esp.get_chip_revision()
|
|
71
71
|
revision_file = "esp32p4_v3.0" if chip_revision >= 300 else None
|
|
72
|
-
print(
|
|
72
|
+
print(
|
|
73
|
+
f"Loading eFuses for {esp.CHIP_NAME} "
|
|
74
|
+
f"v{chip_revision // 100}.{chip_revision % 100}..."
|
|
75
|
+
)
|
|
73
76
|
self.Fields = EfuseDefineFields(extend_efuse_table, revision=revision_file)
|
|
74
77
|
self.REGS = EfuseDefineRegisters
|
|
75
78
|
self.BURN_BLOCK_DATA_NAMES = self.Blocks.get_burn_block_data_names()
|
|
@@ -251,10 +254,7 @@ class EspEfuses(base_fields.EspEfusesBase):
|
|
|
251
254
|
ret_fail = False
|
|
252
255
|
for block in self.blocks:
|
|
253
256
|
if block.id == 0:
|
|
254
|
-
words = [
|
|
255
|
-
self.read_reg(self.REGS.EFUSE_RD_REPEAT_ERR0_REG + offs * 4)
|
|
256
|
-
for offs in range(5)
|
|
257
|
-
]
|
|
257
|
+
words = [self.read_reg(reg) for reg in self.REGS.BLOCK0_ERRORS]
|
|
258
258
|
block.err_bitarray.pos = 0
|
|
259
259
|
for word in reversed(words):
|
|
260
260
|
block.err_bitarray.overwrite(BitArray("uint:32=%d" % word))
|
|
@@ -281,6 +281,33 @@ class EspEfuses(base_fields.EspEfusesBase):
|
|
|
281
281
|
self.print_status_regs()
|
|
282
282
|
return ret_fail
|
|
283
283
|
|
|
284
|
+
def is_efuses_incompatible_for_burn(self):
|
|
285
|
+
# Since v3.1 flash is off in download mode and Secure Download Mode prevents
|
|
286
|
+
# esptool from powering it on. Only v3.2+ ROM honors DOWNLOAD_MODE_XPD_ON.
|
|
287
|
+
rev = self._esp.get_chip_revision()
|
|
288
|
+
if rev < 301:
|
|
289
|
+
return False
|
|
290
|
+
|
|
291
|
+
chip = f"{self._esp.CHIP_NAME} v{rev // 100}.{rev % 100}"
|
|
292
|
+
if rev == 301 and self["DOWNLOAD_MODE_XPD_ON"].get(from_read=False):
|
|
293
|
+
print(f"WARNING: DOWNLOAD_MODE_XPD_ON is ignored by the ROM on {chip}.")
|
|
294
|
+
|
|
295
|
+
rom_powers_flash = rev >= 302 and (
|
|
296
|
+
self["DOWNLOAD_MODE_XPD_ON"].get()
|
|
297
|
+
or self["DOWNLOAD_MODE_XPD_ON"].get(from_read=False)
|
|
298
|
+
)
|
|
299
|
+
if (
|
|
300
|
+
self["ENABLE_SECURITY_DOWNLOAD"].get(from_read=False)
|
|
301
|
+
and not self["DIS_DOWNLOAD_MODE"].get(from_read=False)
|
|
302
|
+
and not rom_powers_flash
|
|
303
|
+
):
|
|
304
|
+
hint = "" if rev == 301 else "DOWNLOAD_MODE_XPD_ON is burned or "
|
|
305
|
+
print(
|
|
306
|
+
f"WARNING: Flash will not be writable in Secure Download Mode on {chip} "
|
|
307
|
+
f"unless {hint}it is powered externally."
|
|
308
|
+
)
|
|
309
|
+
return False
|
|
310
|
+
|
|
284
311
|
def summary(self):
|
|
285
312
|
# TODO add support set_flash_voltage - "Flash voltage (VDD_SPI)"
|
|
286
313
|
return ""
|
|
@@ -77,6 +77,14 @@ class EfuseDefineRegisters(EfuseRegistersBase):
|
|
|
77
77
|
EFUSE_DAC_NUM_S = 9
|
|
78
78
|
EFUSE_DAC_NUM_M = 0xFF << EFUSE_DAC_NUM_S
|
|
79
79
|
|
|
80
|
+
BLOCK0_ERRORS = [
|
|
81
|
+
EFUSE_RD_REPEAT_ERR0_REG,
|
|
82
|
+
EFUSE_RD_REPEAT_ERR1_REG,
|
|
83
|
+
EFUSE_RD_REPEAT_ERR2_REG,
|
|
84
|
+
EFUSE_RD_REPEAT_ERR3_REG,
|
|
85
|
+
EFUSE_RD_REPEAT_ERR4_REG,
|
|
86
|
+
]
|
|
87
|
+
|
|
80
88
|
|
|
81
89
|
class EfuseDefineBlocks(EfuseBlocksBase):
|
|
82
90
|
__base_rd_regs = EfuseDefineRegisters.DR_REG_EFUSE_BASE
|