This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PC USB and adapter charger

Dears:

I'm testing the USB mass storage example: \examples\peripheral\usbd_msc  with Nrf52840DK and SDK v15.3.0.

Now I have one question. When I plug in/out USB to PC or adapter charger, the log is same...below is the log.

[00:00:00.044,860] <info> app: USB power detected
[00:00:00.044,860] <info> app: Un-initializing disk 0 (QSPI)...
[00:00:00.044,860] <info> app: USB ready

[00:00:00.046,051] <info> app: USB power removed
[00:00:00.046,051] <info> app: Initializing disk 0 (QSPI)...
[00:00:00.046,051] <info> app: Mounting volume...

I guess  the example detect USB event with VBUS.

If so,how can I distinguish computer USB and adapter charger?

Related