Skip to main content
EŞimş.1
Associate II
June 4, 2021
Solved

STM32L011f3p6 using UART RECEIVE IT mode with HAL.

  • June 4, 2021
  • 1 reply
  • 953 views

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.
Best answer by TDK

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

1 reply

TDK
TDKBest answer
June 4, 2021

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
June 7, 2021

Hi @TDK​ ,

Thanks your feedback,

Best regards.