How can I exchange data using LPUART and interruption as I can find only functions HAL_UART_Transmit_IT and HAL_UART_Receive_IT? Are there similar functions for LPUART? I am using STM32WB55RG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-03 6:18 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-03 6:43 AM
Please include your chip number in your post.
Doesn't HAL_UART_Transmit_IT also work with LPUARTx the exact same way it works with USARTx/UARTx?
> #define LPUART1 ((USART_TypeDef *) LPUART1_BASE)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-03 6:43 AM
Please include your chip number in your post.
Doesn't HAL_UART_Transmit_IT also work with LPUARTx the exact same way it works with USARTx/UARTx?
> #define LPUART1 ((USART_TypeDef *) LPUART1_BASE)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-03 7:11 AM
STM32WB55RG (nucleo)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-03 7:14 AM
@TDK​ and how can I activate the interruption for RX? Like this?__HAL_UART_ENABLE_IT(&hlpuart1,UART_IT_RXNE);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-03 7:19 AM
I think so, but let CubeMX generate the setup code if you are unsure. This doesn't enable the NVIC interrupt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-03 7:47 AM
as far as I understood I can use any function for UART just changing the typedef to &hlpuart?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-03 10:50 AM
I tried this __HAL_UART_ENABLE_IT(&hlpuart1,UART_IT_RXNE); but there are some weird symbols in my rx buffer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-03 12:52 PM
If you need general help on using LPUART there are many examples in the repository.
