Skip to main content
i-am-groot
Visitor II
June 24, 2019
Question

USB Battery charging bug on cube L4 1.14

  • June 24, 2019
  • 1 reply
  • 1119 views

Hi

Seems the new cube L4 package has some updates on the USB driver. The Battery charging functionality no longer works because the BCDEN bit is never enabled in the `HAL_PCDEx_ActivateBCD` function.

In the screenshot, left is the previous version of Cube L4 driver and right is V1.14.0.

Solution is to keep the line ` USBx->BCDR |= (USB_BCDR_BCDEN); ` as it was doing fine in the old version. I don't know why it's removed?

0690X000008j8WpQAI.png

This topic has been closed for replies.

1 reply

Khouloud ZEMMELI
ST Employee
June 25, 2019

​Hello @i-am-groot​ ,

Could you please share your ioc file?

Regards,

Khouloud.