Author Topic: What is best way to temporarily suspend a USB MSC interface?  (Read 4252 times)

david.harrison

  • Member
  • ***
  • Posts: 1
Hi, I have a USB Composite Device (MSC + HID) implemented on an ST Microelectronics ARM Cortex-M7 microcontroller. I also have a local FAT file system running at the same time. Since you cannot have two separate file systems accessing a file resource (micro-SD card) at the same time, I need to temporarily suspend operation of the MSC interface before doing local file accesses and then restore it afterwards.

At what level in the MSC Interface is it best to suspend and then restart it?

Thanks.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: What is best way to temporarily suspend a USB MSC interface?
« Reply #1 on: June 03, 2017, 06:30:50 pm »
To temporarily keep the host from reading/writing to a mass-storage device and inform the host that the contents may have changed, see:

http://janaxelson.com/forum/index.php?topic=1351

http://janaxelson.com/forum/index.php?topic=1624.msg7371#msg7371

http://janaxelson.com/forum/index.php?topic=1221.msg5407#msg5407