Skip to main content
Bhushan
Associate
October 24, 2019
Question

Queries over the Battery Charger Detection feature in STM32L4R5

  • October 24, 2019
  • 0 replies
  • 491 views

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

    This topic has been closed for replies.