Skip to main content
NBhar.1
Associate II
October 16, 2021
Question

Not able to transmit data using LPUART .

  • October 16, 2021
  • 1 reply
  • 4540 views

Hey Guys ,

I have stm32l053r8 custom board . I am trying to send the data using LPUART but unable to send any data. I have shared the snapshot of the code and the configuration . Please do let me know what I am doing wrong ?

Thanks in advance.

This topic has been closed for replies.

1 reply

TDK
Super User
October 16, 2021

Is it initialized with HAL_UART_Init?

What is the return value from HAL_UART_Transmit?

"If you feel a post has answered your question, please click ""Accept as Solution""."
NBhar.1
NBhar.1Author
Associate II
October 16, 2021

All the initialization has been done through CubeMx .

HAL_UART_Transmit returns 0 as value.

One more thing , I have external pull up resistor connected to LPUART TX and RX line of 3.3 v.

Tesla DeLorean
Guru
October 16, 2021

Perhaps stop approaching this like a software engineer,and put a scope on the pins (both RX and TX) whilst sending a U character.

Check the signal and the timing.

Perhaps rely less on CubeMX doing the right thing.

What pins are involved?

What are they connecting too to determine the "not working" state?

Can you share this section of the schematic?

Present the problem in a way others may understand the prescient issues.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..