Skip to main content
EŞimş.1
Associate II
Jun 4, 2021 10:38 AM UTC
Solved

STM32L011f3p6 using UART RECEIVE IT mode with HAL.

Hi,

I had worked with stm32f407 using HAL libraries earlier but it is different UART peripheral from F4 a bit. I  use again HAL_UART_Receive_IT() and HAL_UART_RxCpltCallback() for stm32L011 in the user file. I implemented the Callback function respect to my project and taking notice that it get message in a byte and byte. I read the section 'how to use this driver' from uart.c driver. But for IT mode it doesn't suggest a different things from I did. My MCU can't get message properly it just first character of the message I sent.

Best Regards.

Muhammet Enes Şimşek.

This topic has been closed for replies.
TDK
TDKBest answer
Jun 4, 2021 2:44 PM UTC

There are plenty of examples to go from. The usage at the HAL level should be the same as the STM32F4 series. Hard to know what's wrong without any code.

https://github.com/STMicroelectronics/STM32CubeL0/blob/a7b74aed35ecb7baeadeb16107aa8fddb6823589/Projects/NUCLEO-L053R8/Examples/UART/UART_TwoBoards_ComIT/Src/main.c

"If you feel a post has answered your question, please click ""Accept as Solution""."

2 replies

TDK
TDKBest answer
Jun 4, 2021 2:44 PM UTC

There are plenty of examples to go from. The usage at the HAL level should be the same as the STM32F4 series. Hard to know what's wrong without any code.

https://github.com/STMicroelectronics/STM32CubeL0/blob/a7b74aed35ecb7baeadeb16107aa8fddb6823589/Projects/NUCLEO-L053R8/Examples/UART/UART_TwoBoards_ComIT/Src/main.c

"If you feel a post has answered your question, please click ""Accept as Solution""."
EŞimş.1
EŞimş.1Author
Associate II
Jun 7, 2021 2:00 PM UTC

Hi @TDK​ ,

Thanks your feedback,

Best regards.