How to make MSC drive readonly?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to make MSC drive readonly?

521 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Muis on Wed Feb 12 02:58:01 MST 2014
Using the previous generation of USB drivers it was very simple to make a Mass Storage drive appear read-only to Windows, by setting a flag in result to some SCSI command, but I can't figure out how to do the same using LPCOpen (and the USB ROM drivers). The only API functions that are available are:

MSC_Read
MSC_Write
MSC_Verify
MSC_GetWriteBuf

Which abstract away all SCSI commands, but the endresult is that I can't figure out a way to make the drive read-only.

Is there a solution for this? For example, by overriding the endpoint-handler?
Labels (1)
0 Kudos
0 Replies