AnsweredAssumed Answered

[OTG + Cube] Writing 0 to DIEPCTL/DOEPCTL.EPDIS

Question asked by waclawek.jan on Sep 3, 2017
Latest reply on Sep 6, 2017 by Khouloud G

In [STM32Cube_FW_F4_V1.16.0]\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_usb.c  USB_EPSetStall(), the following can be seen:

USBx_INEP(ep->num)->DIEPCTL &= ~(USB_OTG_DIEPCTL_EPDIS);

(and the same for DOEPCTL).

 

However, according to respective RM, EPDIS bit in both DIEPCTL and DOEPCTL are rs (read-set) and read-only for endpoint 0, i.e. writing 0 has no effect.

 

Comment, please.

 

JW

Outcomes