cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Rtomy.1
Associate II

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

2 REPLIES 2

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
Associate II

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.