Kevin-Zhou11 opened a new pull request, #16261: URL: https://github.com/apache/nuttx/pull/16261
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary In tickless mode, timer start and be handled when timeout interrupt, but timer may has pending interrupt during the timer cancel, it will trigger interrupt when next timer start, cause next timer handle unexpected interrupt, which cause timed wait return with timeout but time not expired. This patch checks if the timer real timeout when tickless_isr handle interrupt, if not timeout, then wait again. ## Impact Impact on user: NO. Impact on build: NO. Impact on hardware: YES. Impacts ESP32S3 systimer. Impact on documentation: NO. Impact on security: NO. Impact on compatibility: NO. ## Testing Test with our internal project, esp32s3-devkit can not reproduce this issue, it need enable CONFIG_ESP32S3_TICKLESS=y. Before our project has "receive frame failed" error log because of timeout. After applying this patch, no "receive frame failed" error log any more. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org