Can't enable interrupt for LPUART1 using STM32CubeMX (for STM32L072)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-10 7:01 PM
I'm able to configure LPUART1 fine and have been communicating on it. However, for the life of me I can't find the way to enable RX/TX interrupts via CubeMX. I'd rather use the UI if I can.
Please see the screenshot attached. As you can see, I have LPUART1 enabled... but there are no entries available in the NVIC list.
Any ideas?
Solved! Go to Solution.
- Labels:
-
LPUART
-
STM32CubeMX
-
STM32L0 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-18 1:46 AM
Dear @N.F. Singh ,
To enable interrupt for LPUART1 you need to :
- Activate LPUART1 under connectivity
- Enable RNG and LPUART1 interrupts under System Core -> NVIC and set the priority.
- Then next to NVIC under Code generation you need to enable the Generate IRQ handler and the Call HAL handler.
After that you can generate your code and you will find all the necessary function generated and the interruption configured.
Hope that this solve your issue,
Kind regards,
Houssem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-18 1:46 AM
Dear @N.F. Singh ,
To enable interrupt for LPUART1 you need to :
- Activate LPUART1 under connectivity
- Enable RNG and LPUART1 interrupts under System Core -> NVIC and set the priority.
- Then next to NVIC under Code generation you need to enable the Generate IRQ handler and the Call HAL handler.
After that you can generate your code and you will find all the necessary function generated and the interruption configured.
Hope that this solve your issue,
Kind regards,
Houssem
