Skip to content

Commit 9181ce9

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 1f5cb30 commit 9181ce9

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,12 @@ USBD_StatusTypeDef USBD_LL_DataInStage(USBD_HandleTypeDef *pdev,
439439
pdev->pClass->EP0_TxSent(pdev);
440440
}
441441
}
442-
(void)USBD_LL_StallEP(pdev, 0x80U);
442+
/*
443+
* Fix EPO STALL issue in STM32 USB Device library 2.5.1
444+
* Issue raised by @makarenya, see #388
445+
* USB Specification EP0 should never STALL.
446+
*/
447+
/* (void)USBD_LL_StallEP(pdev, 0x80U); */
443448
(void)USBD_CtlReceiveStatus(pdev);
444449
}
445450
}

0 commit comments

Comments
 (0)