Skip to content

Commit 5c3d321

Browse files
committed
[USB] Fix EPO STALL issue in STM32 USB Device library 2.5.1
Issue raised by @makarenya (see stm32duino#388) USB Specification EP0 should never STALL. Issue reproduced when using USB 3.0 port. Device is not recognized if STALL present. Signed-off-by: Frederic.Pillon <[email protected]>
1 parent fcc6bfb commit 5c3d321

File tree

1 file changed

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

1 file changed

+6
-1
lines changed

system/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,12 @@ USBD_StatusTypeDef USBD_LL_DataInStage(USBD_HandleTypeDef *pdev, uint8_t epnum,
396396
{
397397
pdev->pClass->EP0_TxSent(pdev);
398398
}
399-
USBD_LL_StallEP(pdev, 0x80U);
399+
/*
400+
* Fix EPO STALL issue in STM32 USB Device library 2.5.1
401+
* Issue raised by @makarenya, see #388
402+
* USB Specification EP0 should never STALL.
403+
*/
404+
/* USBD_LL_StallEP(pdev, 0x80U); */
400405
USBD_CtlReceiveStatus(pdev);
401406
}
402407
}

0 commit comments

Comments
 (0)