Skip to main content
Rtomy.1
Associate II
Mar 11, 2020 12:46 PM UTC
Question

I am currently working with the stm32 Nucleo-432KC board.uart2 receive doesn't seem to receive any data which is sent through the PC terminal. But uart1 receive seems to work fine.

can anyone help me to know the reason for this unusual behavior or what am I missing here.

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
Mar 11, 2020 2:40 PM UTC

Which pin? Read out and check the related GPIO and USART registers. Try transmit with that UART and observe the Tx pin using oscilloscope or logic analyzer. Check the given pin's connectivity in the Nucleo User Manual and add/remove any jumpers or solder bridges as needed (especially check if this pin is not connected to the STLink's VCP/USART by default).

JW

Rtomy.1
Rtomy.1Author
Associate II
Mar 18, 2020 10:47 AM UTC

Thanks for the reply waclawek.jan . The USART pins which are enabled when USART2 is configured through stm32cubemx are PA2 for Tx and PA3 for Rx. But VCP Rx is port PA15. We need to set PA15 as USRT2 Rx from cubemx. This solved my issue.