From e8157d8fde32824fe3ac55ee4e1253eeebd7cc39 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Wed, 20 Aug 2025 17:09:55 +0200 Subject: [PATCH] feat(tools): enable PSRAM by default in "idf.py qemu" for ESP32-S3 --- tools/idf_py_actions/qemu_ext.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/idf_py_actions/qemu_ext.py b/tools/idf_py_actions/qemu_ext.py index 6b58763230..bdeb2a64af 100644 --- a/tools/idf_py_actions/qemu_ext.py +++ b/tools/idf_py_actions/qemu_ext.py @@ -111,7 +111,7 @@ QEMU_TARGETS: Dict[str, QemuTarget] = { 'esp32s3', 'qemu-system-xtensa', 'qemu-xtensa', - '-M esp32s3', + '-M esp32s3 -m 32M', # Chip revision 0.3 binascii.unhexlify( '00000000000000000000000000000000000000000000000000000000000000000000000000000c00' @@ -308,6 +308,10 @@ def action_extensions(base_actions: Dict, project_path: str) -> Dict: f'driver=timer.{target}.timg,property=wdt_disable,value=true', ] + # Quad PSRAM should work by default; octal requires a flag + if get_sdkconfig_value(project_desc['config_file'], 'CONFIG_SPIRAM_MODE_OCT'): + qemu_args += ['-global', 'driver=ssi_psram,property=is_octal,value=true'] + if '-nic' not in qemu_extra_args: qemu_args += ['-nic', 'user,model=open_eth']