2026-03-08 6:19 AM
Hello everyone,
im trying to send a simple "Hello World" via UART to my Laptop and read in the PuTTY Terminal on my on NUCLEO-H7S3L8 Board, But i tried everything, i cant revieve anything!!! Tried every UART/USART Port in the CubeMX. Nothing on my other NUCLEO-F303RE worked it instantly.
These are settings in the CubeMX. i Used USART3 and selected Pins PD8 and PD9. i connected the Board to my Laptop. Set the Baud Rate to 115200 and also looked up the correct COM Port. Here is the test code and see Screenshots below.
Maybe something in the CubeProgrammer???
UART_HandleTypeDef huart3;
/* USER CODE BEGIN PV */
uint8_t tx_buffer[] = "Hello World!\r\n";
...
while (1)
{
/* USER CODE END WHILE */
HAL_UART_Transmit(&huart3, tx_buffer, sizeof(tx_buffer), 100);
HAL_Delay(100);
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
}
Solved! Go to Solution.
2026-03-08 7:47 AM
I got it now, in CubeMX Under System Core you have to check under "Sys" the Boot AND the Application Box. Now it works.
2026-03-08 6:39 AM
Hi,
on this board USART3 is by default routed via the ST-Link to a virtual com port (VCP) and should appear as COM port when you connect the board with the PC. Are you aware of this, or do you try to use another way like serial TTL converter... ?
Does the COM port appear?
And how do you try to send the string?
2026-03-08 7:07 AM - edited 2026-03-08 7:08 AM
PD8/PD9 are the correct pins. Code looks okay.
If you debug the program, does HAL_UART_Transmit get executed? Does it return HAL_OK?
Possibly there is a clock mismatch. Try toggling an LED at 1 Hz to see if the clock is set correctly.
2026-03-08 7:37 AM
Yes it shows up in the device manager
and i send it here:
uint8_t tx_buffer[] = "Hello World!\r\n";
with HAL_UART_Transmit(&huart3, tx_buffer, sizeof(tx_buffer), 100);
2026-03-08 7:47 AM
I got it now, in CubeMX Under System Core you have to check under "Sys" the Boot AND the Application Box. Now it works.
2026-03-08 7:47 AM
Thanks i checked under Sys it works now