Nucleo-L475VGT6 : VCP (USART2) sends nothing – LED blinks, download OK, no garbage either
Hello everyone,
I'm facing a very frustrating issue with USART2 on my Nucleo-L475VGT6 board using the built-in ST-LINK Virtual COM Port.
What works: - ST-LINK is detected (COM3 appears, Windows sound plays on connect)
- Code downloads successfully (no error in CubeIDE console)
- LED blinks (proof that main() is reached and while(1) is running)
- HAL_UART_Transmit is called
What does NOT work:
- Nothing appears in any terminal: MobaXterm, PuTTY, PowerShell serial reader
- No garbage, no partial characters, just black screen
- Same behavior in Run mode (no breakpoint) and after physical Reset button
MY code:
/* USER CODE BEGIN 0 */
uint8_t tx_buff[]={0,1,2,3,4,5,6,7,8,9};
/* USER CODE END 0 */
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
HAL_UART_Transmit(&huart2, tx_buff, 10, 1000);
HAL_Delay(10000);
}
What am I missing? Is there a jumper / solder bridge I forgot on Nucleo-L475VGT6 for VCP? Or is there a known bug with USART2 VCP on L4 series?
Thank you very much for any hint!
Edited to apply source code formatting - please see How to insert source code for future reference.
