Skip to content

Commit 2790e61

Browse files
committed
[USB] Fix EPO STALL issue in STM32 USB Device library
USB Specification EP0 should never STALL during setup stage. Device is not properly setup if STALL present. Signed-off-by: Frederic Pillon <[email protected]>
1 parent fe50080 commit 2790e61

File tree

1 file changed

+1
-1
lines changed
  • system/Middlewares/ST/STM32_USB_Device_Library/Core/Src

1 file changed

+1
-1
lines changed

Diff for: system/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,8 @@ USBD_StatusTypeDef USBD_LL_DataInStage(USBD_HandleTypeDef *pdev,
444444
(pdev->dev_state == USBD_STATE_CONFIGURED))
445445
{
446446
pdev->pClass->EP0_TxSent(pdev);
447+
(void)USBD_LL_StallEP(pdev, 0x80U);
447448
}
448-
(void)USBD_LL_StallEP(pdev, 0x80U);
449449
(void)USBD_CtlReceiveStatus(pdev);
450450
}
451451
}

0 commit comments

Comments
 (0)