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
Note that the expected behavior is the physical esp32. I initially raised this issue as part of the IDF github (espressif/esp-idf#10877) but narrow it down to QEMU.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Alarm from general purpose timer not triggered when too old
Alarm from general purpose timer not triggered when too old (QEMU-104)
Mar 2, 2023
The timer interrupt for the esp32 machine doesn't behave the same as the physical target.
When the alarm of a general purpose timer is set and the alarm value is lower than the actual counter, the interrupt should be triggered. This is stated in the documentation, from https://docs.espressif.com/projects/esp-idf/en/v5.0.1/esp32/api-reference/peripherals/gptimer.html#set-up-alarm-action
This work fine on a physical esp32 but not on QEMU. Here is a sample code to reproduce the issue:
Running the exact same binary on the QEMU or the real physical esp32, I get different behavior.
On QEMU, it only prints:
while on the physical esp32:
Note that the expected behavior is the physical esp32. I initially raised this issue as part of the IDF github (espressif/esp-idf#10877) but narrow it down to QEMU.
The text was updated successfully, but these errors were encountered: