-
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
STM32L4: Incorrect GPIO Interrupts When Using MBED_TICKLESS #7493
Comments
ARM Internal Ref: MBOTRIAGE-1208 |
@mattbrown015 Unsure about your comment, but are you saying that this is a duplicate of #7153? |
Sorry, no, I didn't mean that. I just meant my problem is in some way related to making it possible to use Of course I might be wrong or it might only be a problem for some STM32 variants or this might already be in hand. |
@ARMmbed/team-st-mcd Please review |
This change allowed my quick and simplistic test to work:
The intend was to copy what was done in EFM32: make gpio interrupts faster by offloading expected pin state check to user #6315. |
@mattbrown015 thanks a lot for your early investigations with TICKLESS and interrupts. |
@LMESTM no I wouldn't mind but I haven't done a PR before so there might be quicker approaches! :-) |
@0xc0170 I'm sure Martin can help you about raising your first PR :-) @mattbrown015 Let me try to quickly summarize what needs to be done:
If any of those steps is troublesome to you, we may do it of course ... just let us know |
The longer part is about reviewing and testing, not about the PR. |
@mattbrown015 Let us know if you need any help. As you shared diff above, I assume you are familiar with git? |
Description
I believe I may have hit the same problem on STM32L4 as previously seen, and fixed, for EFM32.
See InterruptIn not working with EFM32 and tickless #6205 and EFM32: make gpio interrupts faster by offloading expected pin state check to user #6315.
I'm using a 500 us low going pulse to generate an interrupt on a NUCLEO_L433RC_P. In other words I have a
InterruptIn
with a fall handler.If I define
MBED_TICKLESS
the fall handler is no longer called.I believe the interrupt is waking the STM32L4 but
InterruptIn::_irq_handler
attempts to call the rise handler (which isn't defined) and not the fall handler.If I extend the pulse to 3 ms the fall handler gets called but I think a rise handler would also be called.
I shall carry on investigating and see if I can create a similar fix to that seen for the EFM32.
Issue request type
[ ] Question
[ ] Enhancement
[X] Bug
The text was updated successfully, but these errors were encountered: