cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to transmit data using LPUART .

NBhar.1
Associate II

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.

6 REPLIES 6
TDK
Guru

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

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.

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

There are not any obvious bugs within the information that you have presented.

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

I am sharing the schematics of my hardware configuration.