From b429aeb5f721cdb7e54d613486d46212a731dab9 Mon Sep 17 00:00:00 2001 From: Mohammed Mubeen Date: Fri, 30 Jul 2021 10:52:00 +0530 Subject: [PATCH] Added PCD Start so that connection is established when a host is connected in non blocking mode (cinnect_blocking = false) --- targets/TARGET_STM/USBPhy_STM32.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/targets/TARGET_STM/USBPhy_STM32.cpp b/targets/TARGET_STM/USBPhy_STM32.cpp index 1810bb6e296..8dcb420b53b 100644 --- a/targets/TARGET_STM/USBPhy_STM32.cpp +++ b/targets/TARGET_STM/USBPhy_STM32.cpp @@ -318,6 +318,7 @@ void USBPhyHw::init(USBPhyEvents *events) HAL_StatusTypeDef ret = HAL_PCD_Init(&hpcd); MBED_ASSERT(ret == HAL_OK); __HAL_PCD_ENABLE(&hpcd); + HAL_PCD_Start(&hpcd); // Configure FIFOs #if (MBED_CONF_TARGET_USB_SPEED == USE_USB_NO_OTG)