feat(tools): Added option to specify flash image in "idf.py qemu"
This commit is contained in:
@@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user