Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USBMSD not recognised in MacOS #10342

Closed
tomchisholm opened this issue Apr 8, 2019 · 2 comments

Comments

@tomchisholm
Copy link

@tomchisholm tomchisholm commented Apr 8, 2019

Description

branch: feature-hal-spec-usb-device
commit: f8864ae
Device: mbed LPC1768 development board + standalone LPC1768
Toochain: GCC_ARM, vsCode
OS: Mac OS 10.14, Windows 10

Implementation of the USBMSD class does not correctly appear in Mac OS as a mass storage device. The device shows up in the system information tree but not in disk utility. Blockdevice (tested with both HeapBlockDevice and a Custom SPIFBlockDevice) is formatted as FAT and working correctly with Windows 10.

The system information tree information is as follows, a working USBMSD has another section underneath it labelled 'Media:'

"
Mbed MSD:
Product ID: 0x0104
Vendor ID: 0x0703 (Bvtech Industry Inc.)
Version: 0.01
Serial Number: 0123456789
Speed: Up to 12Mb/sec
Manufacturer: mbed.org
Location ID: 0x14100000 / 18
Current Avaliable (mA): 500
Current Required (mA): 200
Extra Operating Current (mA): 0
"

Changing the Vendor ID, Product ID and Serial number have no effect. Unsure if this is an issue with MacOS however the MSD through the MBED IF chip for the development board flash works correctly.

Relevent USB code that reproduces the issue:

int main()
{
  AT25SPIFBlockDevice bd(SPI1_MOSI, SPI1_MISO, SPI1_SCLK, SPIF_CS, 10000000);
  USBMSD *_pUSB = new USBMSD(&bd, false);
  _pUSB->connect();

  while (1)
  {
    _pUSB->process();
  }

  return 0;
}

and

int main()
{
  HeapBlockDevice bd(32 * 1024, 512);
  USBMSD* _pUSB = new USBMSD(&bd, false);
  _pUSB->connect();

  while (1)
  {
    _pUSB->process();
  }

  return 0;
}

Issue request type

[ ] Question
[ ] Enhancement
[x] Bug
@ciarmcom

This comment has been minimized.

Copy link
Member

@ciarmcom ciarmcom commented Apr 8, 2019

@evedon

This comment has been minimized.

Copy link
Contributor

@evedon evedon commented May 9, 2019

Sorry, we are not able to look into this at the moment. Consider contributing a fix if you can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.