2021-10-16 12:54 AM
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.
2021-10-16 08:03 AM
Is it initialized with HAL_UART_Init?
What is the return value from HAL_UART_Transmit?
2021-10-16 09:14 AM
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.
2021-10-16 11:51 AM
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.
2021-10-16 02:16 PM
There are not any obvious bugs within the information that you have presented.
2021-10-16 09:45 PM
2021-10-16 09:46 PM