2025-04-21 2:54 AM
Hello,
We have configured the PA2 and PA3 as USART2_TX and USART2_RX pins accordingly.
also set the below mentioned images for your reference as configurations in the stm32cubeide code for usart2.
but we are unable to see any output in the com port , we have tried all different permutations and combinations
kindly help and support as soon as possible so that we can get USART2 working in the STM32WL5MOCH6 PCB.
2025-04-21 6:06 AM
Hello @Trace_LEMS
First, I suggest you start from a small code on the B-WL5M-SUBG1 Evalution board that is based on the STM32WL5MOCH6 to test that your SW is working. After that, you may try it on your custom board. If it is not working, you have to check your HW design. Also, check your serial viewer configuration and double check the components you are using for UART to Serial conversation.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-04-22 2:56 AM
Hello @STTwo-32
we have attached the UART_Printf rar file zipped sample code which has USART2_TX and USART2_RX Pins configured.
we have checked the HW design and USART2_TX pin is configured as 9 i.e. PA2 , also USART2_RX pin is configured as 8 i.e. PA3.
LPUART1 is working perfectly fine.
We are having 2 STM32WL5MOCH6 IC's in 2 PCB's , we wanted to try the Ping Pong Application but since USART2 is not working and Ping Pong Application is configured in USART2 , we can't proceed further.
any help and support regarding how to proceed further using USART2 in STM32WL5MOCH6 PCB would be highly helpful and beneficial for us.
Please find the attached UART_Printf and SubGHz_Phy_PingPong rar code files.