2026-06-05 10:43 AM - last edited on 2026-06-05 11:44 AM by mƎALLEm
Hi There,
I selected the existing project from CubeMX for the stm32h563zi nucleo eval board and exported to the CubeIDE. Apparently, the virtual comport can use printf() to send the message to the Putty. However, I tried to send the message from Putty to the Eval board by adding a "if(HAL_UART_Receive(&hcom_uart[COM1], buffer, 10, 1000) == HAL_OK)" and the board never received any data from the Putty. The "HAL_UART_Receive()" is from the HAL library.
What is wrong with my code? I checked the configuration functaion and the VCOM is set for both receive/transmission.
Thanks for your time and help!
Regards,
Max2021
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.