-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sleep tracing causes ISR queue overflow #10481
Comments
Thanks for referencing this issue. We will look at 11497 and hopefully we find out what is going on there and might help here as well. |
Thank you for raising this issue. Please note we have updated our policies and |
@maxgerhardt This was set as question. In case this is a bug, please reopen with full bug report. Have you resolved this btw? |
Description
NUCLEO_L476RG
(STM32L476RG)"target.tickless-from-us-ticker": false
to use LPTIM for the tickless RTOS in order to do deepsleepI'm currently trying to trace the deep sleep usage (or rather, why it's not being used) in a big firmware. To search for the culprit, I've defined the macro
MBED_SLEEP_TRACING_ENABLED
as it is described in the documentation.However, doing so will shortly crash the microcontroller in
mbed_error()
with the error being"CMSIS-RTOS error: ISR Queue overflow"
The firmware is fairly complex and uses a number of peripherals (SPI, UART @ 921600 baud), threads and EventQueue objects (for LoRaWAN, internal events, ..) so it's hard to give a minimal, reproducible example. So my question is:
By debugging the sleep code, I've noticed that the tickless RTOS often decides to start a microsecond-resolution timer in case the ticks it would have to wait is smaller than wakeup delay for the LPTIM. Also, the attached LoRa radio surely fires some interrupts at the start which the driver needs to handle. But I'm unsure whether this is the cause for the sleep tracing to crash. It may simply be that it switches sleep states too many times per second and can't print it that fast? (though the debug UART is already at 921600 baud)
Any help's appreciated.
Stacktrace
Output up to crash
Issue request type
The text was updated successfully, but these errors were encountered: