2023-08-07 11:46 AM
I am having a problem with the USART on my STM32WL55JC2. I have configured the USART correctly, and I am using the correct pins, but the USART is not working.
I have tried the following to troubleshoot the problem:
I have checked the configuration of the USART using the STM32CubeMX software.
I have checked the pins that I am using for the USART.
I have used a logic analyzer to see if the USART is sending and receiving data.
I have not been able to identify the problem, and I am hoping that you can help me.
Here is some information about my setup:
I am using the STM32WL55JC2 evaluation board.
I am using the STM32CubeMX software to configure the USART.
I am using a logic analyzer to troubleshoot the problem.
Solved! Go to Solution.
2023-08-07 01:39 PM
Update you on the problem I was having with the USART on my STM32WL55JC2.
I have since determined that the problem was not with the STM32WL55JC2, but with my logic analyzer. I have tried using a different logic analyzer, and the USART1 is now working properly.
Thank you for your time
2023-08-07 12:08 PM - edited 2023-08-07 12:14 PM
> I have used a logic analyzer to see if the USART is sending and receiving data.
And what did you find?
Debug your program, step through and see that it completes initialization and that relevant HAL functions return HAL_OK.
Check that HSE_VALUE is defined correctly for you board.
Toggle an LED one per second using HAL_Delay(1000) for a rough verification that the clock is correct.
Initialize the TX pin as a GPIO output instead and toggle it. Verify that the signal is present on a scope.
2023-08-07 12:17 PM
Is it both not transmitting and receiving? Are the Rx and Tx lines pulled up while idle? Which UART of the 3 are you using? The VCP, USART1 or LPUART1? Which core? Post your IOC file and code.
2023-08-07 01:39 PM
Update you on the problem I was having with the USART on my STM32WL55JC2.
I have since determined that the problem was not with the STM32WL55JC2, but with my logic analyzer. I have tried using a different logic analyzer, and the USART1 is now working properly.
Thank you for your time