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

mbedls fails to list devices on OS X El Capitan #38

Closed
Patater opened this issue Jan 7, 2016 · 5 comments
Closed

mbedls fails to list devices on OS X El Capitan #38

Patater opened this issue Jan 7, 2016 · 5 comments

Comments

@Patater
Copy link

Patater commented Jan 7, 2016

This is due to the new unified (between iOS and OS X) USB stack. The data returned from ioreg -a -r -n AppleUSBXHCI -l is different on El Capitan. Specifically, ioreg no longer lists the BSD Name of devices.

@ciarmcom
Copy link
Member

ciarmcom commented Jan 7, 2016

ARM Internal Ref: IOTSYST-738

@PrzemekWirkus
Copy link
Contributor

Only thing I can do for now is to add documentation entry regarding this issue: #39

@flit
Copy link

flit commented Mar 4, 2016

All the required data is available in the ioreg tool output. This is on El Capitan 10.11.3.

Run ioreg -a -r -c IOUSBHostDevice -l. Walk the tree looking for the CMSIS-DAP IOUSBDevice instance. Once found, examine its children recursively. You should look for children with classes in this order:

  1. IOUSBInterface with bInterfaceClass and bInterfaceSubClass properties matching USB MSC (class==0x8, subclass==0x6)
  2. IOUSBMassStorageInterfaceNub
  3. IOUSBMassStorageDriverNub
  4. IOUSBMassStorageDriver
  5. IOSCSILogicalUnitNub
  6. IOSCSIPeripheralDeviceType00
  7. IOBlockStorageServices
  8. IOBlockStorageDriver
  9. IOMedia. This will actually have an IOObjectClass property value of something like "MBED microcontroller Media", but it's the only child of the IOBlockStorageDriver.

The IOMedia object has the BSD Name property you are looking for.

Or you can just search all children of the matching IOUSBDevice for the BSD Name property.

@sg-
Copy link
Contributor

sg- commented Jul 27, 2016

Seems like this should be fixed given we've got a suggestion on how to fix. Thanks @flit

@sg-
Copy link
Contributor

sg- commented Aug 4, 2016

#115

@sg- sg- closed this as completed Aug 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants