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
  • A file is read-only if the directory entry has the read-only flag, or if the file system is mounted read-only.

    How to change the read-only flag for a directory entry? Same suggestion as in my previous post. Google can find all information about the structures of a FAT file system. The boot record - which I have already given you multiple references to, allows you to figure out the location of the root directory. And that is where you find the directory entry for your "readme.txt" file, and so can find the attributes flag field.

    A directory in a FAT file system is just a file but with an attribute flag saying it's a directory. So the documentation available about the FAT file system allows anyone interested to also figure out how to locate directory entries of files in subdirectories. And how to locate the actual file data for files.

    There are even a number of binary editor programs that are able to view information as important structures of FAT file systems - originally intended for people trying to recover data from broken diskettes or hard disks.

    But in the end, you'll get better progress if you spend time trying to search for information. Each attempt you learn how to make better and better searches.

Reply
  • A file is read-only if the directory entry has the read-only flag, or if the file system is mounted read-only.

    How to change the read-only flag for a directory entry? Same suggestion as in my previous post. Google can find all information about the structures of a FAT file system. The boot record - which I have already given you multiple references to, allows you to figure out the location of the root directory. And that is where you find the directory entry for your "readme.txt" file, and so can find the attributes flag field.

    A directory in a FAT file system is just a file but with an attribute flag saying it's a directory. So the documentation available about the FAT file system allows anyone interested to also figure out how to locate directory entries of files in subdirectories. And how to locate the actual file data for files.

    There are even a number of binary editor programs that are able to view information as important structures of FAT file systems - originally intended for people trying to recover data from broken diskettes or hard disks.

    But in the end, you'll get better progress if you spend time trying to search for information. Each attempt you learn how to make better and better searches.

Children
No data