cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L011f3p6 using UART RECEIVE IT mode with HAL.

EŞimş.1
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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".

View solution in original post

2 REPLIES 2
TDK
Guru

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".

Hi @TDK​ ,

Thanks your feedback,

Best regards.