Hi my friends!
I've used RL-ARM mass storage code from sample codes of KEIL 4.03 on AT91SAM7S256. when I attach it to PC , the system recognizes it as a flash disk, correctly;
now I want to change it to apear as a CD-ROM in windows.
I want to know any changes in code.
can anyone help me?
thanks for your help!
Hi Tsuneo!
Thanks for your first help!
I changed codes according to your help and loaded it to my board and attached it to a PC. It appeared as a CD-ROM in different versions of windows (WIN& & XP)(x64 & x32).
But there is a problem, it didn't work correctly. Then I debugged it and I found that the MSC_ReadTOC function returns at if. . . at the beginning of function, because some of condition is true and it becomes true and the function returns. according to usb_msc_boot_1.0.pdf document , CBW.CB elements must be differ from what are now.
whats your idea about this!
And one another question: Original sample code of atmel consist of one image of a text file , that is copied to ram for demo in USB drive (stick) state, and the ram is the storage media. So when we attached it to computer we see a text file in it .Now we change the code to CD-ROM state , must we see it in cd-rom as before or cd-rom can't show it because of CD IMAGE concepts or other reason?
You are best helper for this forum, thank you for your reply again. :)