cancel
Showing results for 
Search instead for 
Did you mean: 

UART2 not showing data on serial monitor in my customised board

Vkuma.6
Associate

In my customised board i am transmit "Hello World " via default arduino pins PA10=D0(Rx) and PA9=D1(Tx) named as USART1 using FTDI232 (USB to serial UART interface) and showing the trasmit data in the serial monitor properly. In my code i have written while statement as :-

while (1)

{

HAL_UART_Transmit(&huart1,myTxData,13,100);

HAL_Delay(1000);

}

Rest of auto-generated Cube functions.

When i using the USART2 pins named as PA15 (Rx) and PA2 (Tx) my code is flashing correctly but unable to print the data on the serial monitor. What changes i required in code so that the data is print properly on serial monitor.In my code i have written while statement as :-

while (1)

{

HAL_UART_Transmit(&huart2,myTxData,13,100);

HAL_Delay(1000);

}

Rest of auto-generated Cube functions.

1 REPLY 1

Read out and check/post content of USART and relevant GPIO registers.

JW