cancel
Showing results for 
Search instead for 
Did you mean: 

mass storage sample as CD-ROM instead of USB memory stick

jjackbauer7
Associate III
Posted on June 22, 2014 at 16:56

Hi all,

I want to change STM32 mass storage example to apear as a CD-ROM in windows.

I have implemented the suggestions in the following link

http://www.keil.com/forum/21411/

Now my PC recognizes the device as CR-ROM but with some problems.

I have used ''Device monitoring studio'' for debuggin and I have found three main

issues:

failure at command 0x46: SCSI get configuration

failure at command 0x4A: SCSI get event status

failure at command 0x51: SCSI get disk info

I want to know if these command are really required for CD-ROM implementation.

If so how can I write response to those commands?

Cheers,

Jack

#usb-msc
2 REPLIES 2
Posted on June 23, 2014 at 00:13

If you want to pretend to be a CDROM device, then you had better be prepared to implement an emulation for ALL the functions the Operating System / File System on the host might send you.

You should review the MMC specifications, and the documentation/source for the OS and drivers that will be talking to your device (Windows, Linux, OSX, etc.).
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jjackbauer7
Associate III
Posted on June 26, 2014 at 18:48

Hi Clive,

Thanks for your reply.

At first step, I need to make STM32 seen as CD-ROM with correct free space, disk size

And then I will focus on implementing the communication phase.

Thanks anyway !