AnsweredAssumed Answered

How to detect if USB connected?

Question asked by Ashley Duncan on Feb 12, 2017
Latest reply on Feb 16, 2017 by Ashley Duncan

Hi,

 

How can I detect if a USB cable is plugged in?  I have a FAT file system and a USB MSC both sharing the same SD card.  I want to only enable the MSC (and disable FAT) at startup if a USB cable is connected.  USB 5V is not connected directly to the K24F I am using.

 

How can I do this?

 

Thanks in advance...

 

Ashley

Outcomes