2023-03-29 01:30 PM
I am working with an older version of CubeMx 6.4.0 with a STM32WB55 for a legacy project. We are trying to avoid upgrading CubeMX if we can.
I am looking at the Battery Charging option in the USB settings under connectivity. When I enable the option, it generates code that does not link with my existing code. Even if I tweak the generated code to compile by commenting out the empty function that is causing a linker error, it does not appear that there is anything in the code calling HAL_PCDEx_BCD_VBUSDetect.
Is there something else that needs to be configured in CubeMX for this option to work properly, or is this something I need to upgrade to a newer version of CubeMX to fix?