feat(tools): Added option to specify flash image in "idf.py qemu"

This commit is contained in:
Aditya Patwardhan
2024-10-08 19:50:09 +05:30
parent c2e8a6e7c4
commit a58a07ecfe
2 changed files with 45 additions and 7 deletions
+15
View File
@@ -150,6 +150,21 @@ By default, the values of eFuses are read from and written to the ``qemu_efuse.b
idf.py qemu --efuse-file my_efuse.bin efuse-burn {IDF_TARGET_CRYPT_CNT} 1
idf.py qemu --efuse-file my_efuse.bin monitor
Specifying Flash Image
~~~~~~~~~~~~~~~~~~~~~~
By default, QEMU uses the ``qemu_flash.bin`` file in the build directory as the flash image. This file is generated based on the information available about the project from the ``flash_args`` file present in the build directory. If you want to use a different flash image file, you can specify it using the ``--flash-file`` option. For example,
.. code-block:: console
idf.py qemu --flash-file my_flash.bin monitor
The provided flash image must meet the following requirements for proper emulation:
- The flash file size matches the value specified by :ref:`CONFIG_ESPTOOLPY_FLASHSIZE` in the project configuration.
- The flash file includes all required binaries, such as the bootloader, partition table, and application firmware, placed at their respective memory offsets.
Emulating Secure Boot
~~~~~~~~~~~~~~~~~~~~~