cancel
Showing results for 
Search instead for 
Did you mean: 

USB Battery charging bug on cube L4 1.14

i-am-groot
Associate

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

1 REPLY 1
Khouloud ZEMMELI
ST Employee

​Hello @i-am-groot​ ,

Could you please share your ioc file?

Regards,

Khouloud.