Skip to content

Commit 7214fe9

Browse files
authored
Merge pull request #14970 from MubeenHCLite/USBSerial_connect_blocking_resolution
USB connect problem in non blocking mode
2 parents 3318720 + b429aeb commit 7214fe9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

targets/TARGET_STM/USBPhy_STM32.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ void USBPhyHw::init(USBPhyEvents *events)
318318
HAL_StatusTypeDef ret = HAL_PCD_Init(&hpcd);
319319
MBED_ASSERT(ret == HAL_OK);
320320
__HAL_PCD_ENABLE(&hpcd);
321+
HAL_PCD_Start(&hpcd);
321322

322323
// Configure FIFOs
323324
#if (MBED_CONF_TARGET_USB_SPEED == USE_USB_NO_OTG)

0 commit comments

Comments
 (0)