Unable to wake task from event flag in ISR when USB_FS is enabled using CMSIS OS 2 on STM32L5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-09-24 8:22 AM
I have been using USB_FS for some time now and recently added the EXT13 IRQ for the user button in the STM32L5 DK. I set a task to toggle a pin when the button is pressed and noticed that if the USB is running, the event does not wake the user button task. If the USB is disabled or does not start properly, the task wakes and functions as expected. If I remove the event flag wait, the task functions normally. I have tried both IRQ priorities equal and lowering the USB priority with the same result that the task does not wake when the USB is active.
Solved! Go to Solution.
- Labels:
-
STM32L5 Series
-
USB
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-06 10:57 AM
Thanks for the reply. Unfortunately, I’ve already moved on with a different approach using osThreadFlagsSet/Wait and don’t have the time to recreate the previous iteration. In the future, I will save the code in the troubled state for reference.
Best regards,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-06 8:58 AM
Hello @MSher.1 ,
Can you please provide your project for further check?
Thanks in advance.
BeST Regards,
Walid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-06 10:57 AM
Thanks for the reply. Unfortunately, I’ve already moved on with a different approach using osThreadFlagsSet/Wait and don’t have the time to recreate the previous iteration. In the future, I will save the code in the troubled state for reference.
Best regards,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-07 1:07 AM
Hello @MSher.1 ,
Thanks for your feedback :smiling_face_with_smiling_eyes:
BeST Regards,
Walid
