Reading data sent from USB_OTG_FS via PuTTY
Hi. I hope this is the right place for such a question about USB communication, I am still new to STM32.
I have been trying to send a message from my STM32 board (STM32756-EVAL) without using UART, but the OTG USB. I have been trying to set up my PuTTY to read the data sent from the board, but I am not sure which COM port should be used, or what the connection type should be.
My code is based on my understanding of UART but translated into (what I think is) the USB OTG context. Please let me know if more information is required.
int main(void)
{
/* MCU Configuration--------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* Configure the system clock */
SystemClock_Config();
/* Configure the peripherals common clocks */
PeriphCommonClock_Config();
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_FMC_Init();
MX_I2C1_Init();
MX_LTDC_Init();
MX_QUADSPI_Init();
MX_SAI1_Init();
MX_SAI2_Init();
MX_SPDIFRX_Init();
MX_USB_OTG_FS_PCD_Init();
while (1)
{
/* USER CODE END WHILE */
HAL_GPIO_TogglePin(GPIOF, GPIO_PIN_10);
uint8_t message[] = "Message";
HAL_PCD_EP_Transmit(&hpcd_USB_OTG_FS, 0, message, sizeof(message));
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
}