2023-10-12 02:34 AM
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 */
}
/**
2023-10-12 05:26 AM
2023-10-12 11:03 PM
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