cancel
Showing results for 
Search instead for 
Did you mean: 

Do I need to update to a new version of CubeMX for USB Battery Charging option to work?

JHarg.1
Associate

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?

0 REPLIES 0