diff --git a/deps/libopencm3 b/deps/libopencm3 index 864e6a14..e8f00405 160000 --- a/deps/libopencm3 +++ b/deps/libopencm3 @@ -1 +1 @@ -Subproject commit 864e6a14ae33d268a6822eba9aca96f2c01cdeb2 +Subproject commit e8f00405bd677e10637908804c259725669036cd diff --git a/src/platforms/stlinkv3/usb_f723.c b/src/platforms/stlinkv3/usb_f723.c index 1256b756..22e11bab 100644 --- a/src/platforms/stlinkv3/usb_f723.c +++ b/src/platforms/stlinkv3/usb_f723.c @@ -188,7 +188,7 @@ static void stm32f723_ep_setup(usbd_device *usbd_dev, uint8_t addr, uint8_t type OTG_HS_DIEPCTL0 |= OTG_DIEPCTL0_SNAK; /* Configure OUT part. */ - usbd_dev->doeptsiz[0] = OTG_DIEPSIZ0_STUPCNT_1 | OTG_DIEPSIZ0_PKTCNT | (max_size & OTG_DIEPSIZ0_XFRSIZ_MASK); + usbd_dev->doeptsiz[0] = OTG_DOEPSIZ0_STUPCNT_1 | OTG_DIEPSIZ0_PKTCNT | (max_size & OTG_DIEPSIZ0_XFRSIZ_MASK); OTG_HS_DOEPTSIZ(0) = usbd_dev->doeptsiz[0]; OTG_HS_DOEPCTL(0) |= OTG_DOEPCTL0_EPENA | OTG_DIEPCTL0_SNAK;