Skip to content

Conversation

@sandeepmistry
Copy link
Contributor

Description (required)

These changes resolve issue #10342.

The mbed-os USB MSD stack was not responding the "MODE SENSE" command causing macOS not to mount the drive.

cc/ @facchinm

Summary of change (What the change is for and why)

Implemented the MODE SENSE 10 USB MSD command which a response based on what CMSIS DAP sends: https://github.com/ARMmbed/DAPLink/blob/master/source/usb/msc/usbd_msc.c#L665-L699

This change allows macOS to successfully mount the mbed-os USB MSD.

Documentation (Details of any document updates required)

Pull request type (required)

[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results (required)

[] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

This was tested with a Arduino Nano 33 BLE board with macOS 10.14.6.


Reviewers (optional)


Release Notes (required for feature/major PRs)

Summary of changes

USBMSD: implement MODE SENSE (10) command

Impact of changes

USBMSD

Migration actions required

N/A

@ciarmcom ciarmcom requested review from a team November 5, 2019 18:00
@ciarmcom
Copy link
Member

ciarmcom commented Nov 5, 2019

@sandeepmistry, thank you for your changes.
@ARMmbed/mbed-os-core @ARMmbed/mbed-os-maintainers please review.

4 similar comments
@ciarmcom
Copy link
Member

ciarmcom commented Nov 5, 2019

@sandeepmistry, thank you for your changes.
@ARMmbed/mbed-os-core @ARMmbed/mbed-os-maintainers please review.

@ciarmcom
Copy link
Member

ciarmcom commented Nov 5, 2019

@sandeepmistry, thank you for your changes.
@ARMmbed/mbed-os-core @ARMmbed/mbed-os-maintainers please review.

@ciarmcom
Copy link
Member

ciarmcom commented Nov 5, 2019

@sandeepmistry, thank you for your changes.
@ARMmbed/mbed-os-core @ARMmbed/mbed-os-maintainers please review.

@ciarmcom
Copy link
Member

ciarmcom commented Nov 5, 2019

@sandeepmistry, thank you for your changes.
@ARMmbed/mbed-os-core @ARMmbed/mbed-os-maintainers please review.

@ciarmcom
Copy link
Member

ciarmcom commented Nov 5, 2019

@sandeepmistry, thank you for your changes.
@ARMmbed/mbed-os-maintainers please review.

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 8, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Nov 8, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

@0xc0170 0xc0170 merged commit a73c2b1 into ARMmbed:master Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants