Skip to main content
Visitor II
October 12, 2023
Question

UxDevice_HID_CDC_ACM example

  • October 12, 2023
  • 1 reply
  • 1248 views

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 */

}

 

/**

 

 

    This topic has been closed for replies.

    1 reply

    RKOASAuthor
    Visitor II
    October 13, 2023

    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