Open lcgamboa opened 11 months ago
Thanks for the report. We have just fixed a similar sounding issue, the fix should be part of the next release.
Thanks for the support. I'll be waiting for the next release.
@lcgamboa The last 3 commits on the esp-develop branch could fix your issue, could you please give it a try?
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