cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to connect USB in CDC Mode for STM32H7474 Discovery Board

Rushali
Associate III

Hello Everyone,

I am trying to connect virtual com port configuration for STM32H747DISC board but unable to connect as because when i am trying to send data using below code:-

 

while (1)

{

/* USER CODE END WHILE */

 

/* USER CODE BEGIN 3 */

HAL_RTC_GetTime(&hrtc,&SaveTime,RTC_FORMAT_BIN);

HAL_RTC_GetDate(&hrtc,&SaveDate,RTC_FORMAT_BIN);

CDC_Transmit_FS((uint32_t *)(&SaveTime),sizeof(SaveTime));

HAL_Delay(1000);

}

 

Please suggest what can be done to resolve this issue?

1 REPLY 1
Imen.D
ST Employee

Hello @Rushali ,

First, try to increase the heap and/or stack memory for your project.

Please check this article Unable to connect to STM32H7 devices - STMicroelectronics Community

Take a look at the existing USB CDC project in the github repository and try to run it:

STM32CubeH7/Projects/STM32H747I-EVAL/Applications/USB_Device/CDC_Standalone at master · STMicroelectronics/STM32CubeH7 · GitHub

 

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen