cancel
Showing results for 
Search instead for 
Did you mean: 

UxDevice_HID_CDC_ACM example

RKOAS
Associate II

Am trying to Use of a USB to transmit data (transmit/receive) between a board and an
HyperTerminal PC application.    Am working with Nucleo-STM32H563 board. 

But i didnt get expect data in hyper terminal. Here i have attached code part . Kindly correct it

/* Call PreOsInit function */

USBPD_PreInitOs();

/* USER CODE BEGIN 2 */

/* USER CODE END 2 */

MX_ThreadX_Init();

/* We should never get here as control is now taken by the scheduler */

/* Infinite loop */

/* USER CODE BEGIN WHILE */

while (1)

{

/* USER CODE END WHILE */

/* USER CODE BEGIN 3 */

HAL_PCD_EP_Transmit(&hpcd_USB_DRD_FS, *data, data, 10);

HAL_GPIO_TogglePin(LED_GPIO_Port, LED_Pin);

HAL_Delay(1000);

 

 

}

/* USER CODE END 3 */

}

 

/**

 

 

2 REPLIES 2

Dupe https://community.st.com/t5/stm32-mcus-security/send-receive-data-over-usb-on-stm32h563-nucleo/td-p/597897

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

HI. Thanks for reply.. Just i found that this code configured with Azar RTOS. Anyhow can u send particular coding part part . Task is just send / receive data via USB . ( NUCLEO-STM32H63) board. Kindly support