From 17fd3133d9b745ab028dc6ae403d6808ecbc7a1a Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Fri, 22 Aug 2025 11:20:15 +0200 Subject: [PATCH] fix(tools): use nvram.esp32s3.efuse device in qemu_ext.py Related to https://github.com/espressif/esp-idf/issues/17258 --- tools/idf_py_actions/qemu_ext.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tools/idf_py_actions/qemu_ext.py b/tools/idf_py_actions/qemu_ext.py index 102b9887f8..98c84d9538 100644 --- a/tools/idf_py_actions/qemu_ext.py +++ b/tools/idf_py_actions/qemu_ext.py @@ -46,7 +46,6 @@ class QemuTarget: qemu_args: str # chip-specific arguments to pass to QEMU default_efuse: bytes # default efuse values for the target boot_mode_arg: str = '' # additional arguments to pass to QEMU when booting in download mode - efuse_device: str = '' # efuse device name, if different from the target nvram.{target}.efuse # To generate the default eFuse values, follow the instructions in @@ -66,7 +65,6 @@ QEMU_TARGETS: dict[str, QemuTarget] = { '00000000' ), '-global driver=esp32.gpio,property=strap_mode,value=0x0f', - 'nvram.esp32.efuse', ), 'esp32c3': QemuTarget( 'esp32c3', @@ -103,7 +101,6 @@ QEMU_TARGETS: dict[str, QemuTarget] = { '000000000000000000000000000000000000000000000000' ), '-global driver=esp32c3.gpio,property=strap_mode,value=0x02', - 'nvram.esp32c3.efuse', ), 'esp32s3': QemuTarget( 'esp32s3', @@ -140,8 +137,7 @@ QEMU_TARGETS: dict[str, QemuTarget] = { '000000000000000000000000000000000000000000000000' ), '-global driver=esp32s3.gpio,property=strap_mode,value=0x07', - 'nvram.esp32c3.efuse', - ), # Not esp32s3, QEMU-201 + ), } @@ -301,7 +297,7 @@ def action_extensions(base_actions: dict, project_path: str) -> dict: '-drive', f'file={efuse_bin_path},if=none,format=raw,id=efuse', '-global', - f'driver={qemu_target_info.efuse_device},property=drive,value=efuse', + f'driver=nvram.{target}.efuse,property=drive,value=efuse', '-global', f'driver=timer.{target}.timg,property=wdt_disable,value=true', ]