You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run codes compiled in the Arduino framework on the Qemu ESP32C3. To work in Qemu it is necessary to add a return value for saradc interrupts. Once this is done, the codes work without problems on Qemu Linux with the command line:
But for the w64-mingw32 version the code always hangs after a few seconds, using gdb it is possible to verify that the code is stopped in the wfi instruction. This happens using the Arduino IDE or platformio with the Arduino framework (which uses a precompiled version without debug symbols). Compiling the code using Arduino as an IDF component (with or without debug symbols) the problem does not occur which makes it difficult to discover its origin.
Without disabling WDT, Qemu is reset several times without freezing.
Any help to identifying the source of the problem would be very helpful.
github-actionsbot
changed the title
ESP32C3 Qemu w64-mingw32 freeze with Arduino blink
ESP32C3 Qemu w64-mingw32 freeze with Arduino blink (QEMU-180)
Dec 30, 2023
Hi @igrr , when I opened the issue I had already tested it with the modifications from these last three commits.
With these three last commits, Qemu ESP32C3 works better without the icont option than previously on Linux, on Windows it continues to freeze after a few seconds.
I'm trying to run codes compiled in the Arduino framework on the Qemu ESP32C3. To work in Qemu it is necessary to add a return value for saradc interrupts. Once this is done, the codes work without problems on Qemu Linux with the command line:
But for the w64-mingw32 version the code always hangs after a few seconds, using gdb it is possible to verify that the code is stopped in the
wfi
instruction. This happens using the Arduino IDE or platformio with the Arduino framework (which uses a precompiled version without debug symbols). Compiling the code using Arduino as an IDF component (with or without debug symbols) the problem does not occur which makes it difficult to discover its origin.Without disabling WDT, Qemu is reset several times without freezing.
Any help to identifying the source of the problem would be very helpful.
Test code:
The .bin file that not work with w64-mingw32 saradc int patched version:
blink.zip
The text was updated successfully, but these errors were encountered: