cancel
Showing results for 
Search instead for 
Did you mean: 

USB CDC does not work when I unplug and replug STM32

csotiriou
Associate II

I'm using the Nucleo-H743ZI STM32 development board on windows 10. When I upload a program that sends out data through CDC with CDC_Transmit_FS and open a serial monitor right after, it works fine. But when I disconnect and reconnect the Nucleo to my computer the serial port cannot seem to be able to open. In Putty I get unable to configure serial port. This only happens when I unplug the ST-Link side of the nucleo. My code is very basic and shown below:

  while (1)
  {
    /* USER CODE END WHILE */
 
    /* USER CODE BEGIN 3 */
	  CDC_Transmit_FS((uint8_t *) "AAAAAAAA\r\n", 10);
	  HAL_Delay(100);
 
  }

What do you think is the problem? 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
csotiriou
Associate II

I found a fix in the following thread, in the answer from @Ant M​ 

https://community.st.com/s/question/0D50X00009Xke3ESAR/usb-vcp-windows-10

View solution in original post

1 REPLY 1
csotiriou
Associate II

I found a fix in the following thread, in the answer from @Ant M​ 

https://community.st.com/s/question/0D50X00009Xke3ESAR/usb-vcp-windows-10