This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB and MSC class sample

Hi everyone,
I've used mass storage code from sample codes of KEIL on AT91SAM7x256.
And it works correctly;
Now I want to change the Memory size show in the My computer (it always show 6 kB!). I'v changed

 MSC_MemorySize

but It still shows 6 KB!
can anyone help me?
thanks for your help!

After that I want to use another type of memory for example SD card instead of SRAM for memory use in this sample. This very important to me. I am so grateful for your help.

Parents
  • Just note that you can take the DiskImage hex data and place in a little source file that you compile and that writes the data into a binary file on the PC.

    Then open that binary file with a good hex editor that supports FAT data structures. Then you can edit the data and save.

    Then use a program to convert the binary file to a C hex dump again.

Reply
  • Just note that you can take the DiskImage hex data and place in a little source file that you compile and that writes the data into a binary file on the PC.

    Then open that binary file with a good hex editor that supports FAT data structures. Then you can edit the data and save.

    Then use a program to convert the binary file to a C hex dump again.

Children
  • Thanks Tsuneo for excellent explanation od DiskImage.

    I have related question, I connected my mcb2300 board with lpc2378 controller to my PC, using ARM\Boards\Keil\MCB2300\RL\USB\Device\Memory example, and it works fine, I changed name of volume, txt file in DiskImage, but can I write some txt file to controller memory using windows, like to regular USB flash drive ?