Skip to main content
Associate II
October 12, 2023
Question

Send/Receive data over USB on STM32H563 Nucleo

  • October 12, 2023
  • 1 reply
  • 962 views

need to transfer some string to PC via USB config. Here am implementing simple code here. But no responses in hyper terminal. Kindly help me. Am using Nucleo-STM32H563ZI board.

//=======================================

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

Tesla DeLorean
Guru
October 12, 2023

Lacking a lot of context, but parameter syntax looks wrong.

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