cancel
Showing results for 
Search instead for 
Did you mean: 

Having a problem with the USART on my STM32WL55JC2.

ABell.5
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
ABell.5
Associate II

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

View solution in original post

3 REPLIES 3
TDK
Guru

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

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

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.

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.
ABell.5
Associate II

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