HiSeems 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 ...
In version v2.0_Cube of usb_device.c , the provided code is the following:void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg)
{
USBD_HandleTypeDef usbdHandle = hUsbDeviceFS;
/* USER CODE BEGIN 7 */
if (hpcd->battery_c...