0 votes
28 views

How to exit QEMU programmatically in ESP-IDF when esp_restart executed?

I run local tests in qemu using idf.py qemu command. When qemu finishes running tests, it keeps running. I want it to exit when it finishes the tests. How can I do that?

in ESP-IDF by (1.4k points)
edited by | 28 views

1 Answer

0 votes
Best answer

QEMU has an option called -no-reboot (see also here), that causes the QEMU exit when the emulated target is rebooted. But since QEMU is called via idf.py, this option should be passed to qemu using the --qemu-extra-args flag as stated here.

So the final command to invoke in terminal would be like the following;

idf.py qemu --qemu-extra-args "-no-reboot"

by (1.4k points)
selected by
Welcome to Kozmotronik Q&A, where you can ask questions and receive answers from other members of the community.