From 1396446bb3b95a92aed20eab96bf9bb1e85f3b83 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 31 Dec 2018 08:48:15 +0000 Subject: [PATCH] Fixed bug #996. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12506 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c | 1 + readme.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c index 0357d1855..0b20805e0 100644 --- a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c +++ b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c @@ -140,6 +140,7 @@ static void otg_core_reset(USBDriver *usbp) { /* Core reset and delay of at least 3 PHY cycles.*/ otgp->GRSTCTL = GRSTCTL_CSRST; + osalSysPolledDelayX(12); while ((otgp->GRSTCTL & GRSTCTL_CSRST) != 0) ; diff --git a/readme.txt b/readme.txt index 49f38705c..9ee1d43db 100644 --- a/readme.txt +++ b/readme.txt @@ -184,6 +184,8 @@ - EX: Updated LIS302DL to 1.1.0 (backported to 18.2.1). - EX: Updated LPS25H to 1.1.0 (backported to 18.2.1). - EX: Updated LSM303DLHC to 1.1.0 (backported to 18.2.1). +- HAL: Fixed timing problem in STM32 OTGv1 driver (bug #996) + (backported to 18.2.2 and 17.6.5). - HAL: Fixed restrictive check in MMC-SPI driver (bug #995) (backported to 18.2.2 and 17.6.5). - HAL: Fixed misplaced check in STM32 ST driver (bug #994)