cancel
Showing results for 
Search instead for 
Did you mean: 

Queries over the Battery Charger Detection feature in STM32L4R5

Bhushan
Associate II

Hello,

We are facing the situation in which, we have to differentiate that USB charging is going through the PC or adapter. We are using STM32L4R5 controller.

We tried with the "HAL_PCDEx_BCD_VBUSDetect()" API but always getting call back for the "PCD_BCD_DISCOVERY_COMPLETED".

Also we have below queries,

  • As per our understanding to use the  "HAL_PCDEx_BCD_VBUSDetect()" API will be used only when, the VBUS is connected to the micro-controller. Please confirm?

  • How to use the Battery Charger Detection(BCD) of the STM32L4R5 controller?

  • Is it possible to detect the charger using the DM and DP pin of the USB?

  • Can we differentiate between PC’s power supply and AC Adapter USB connection with the help of firmware? if yes please provide any guide or example for same.

Please proved the solution for the above queries

Regards,

Bhushan Bute

0 REPLIES 0