SH7286 Group
USB Function Module: USB Mass Storage Class
R01AN0063EJ0100 Rev. 1.00
Page 14 of 32
Oct. 22, 2010
4.5
Changing the RAM Disk Setting
This section describes how to change the RAM disk setting used in this sample program.
4.5.1
Removable Disk/Fixed Disk
This sample program uses the RAM disk as a removable disk. Comment out "#define REMOVABLE_DISK" in
SetSystemSwitch.h file, and enable "#undef REMOVABLE_DISK" which is commented out to use the RAM disk as a
fixed disk.
4.5.2
How to Modify the amount of RAM Disk
This sample program uses 16-MB SDRAM as a RAM disk. Alter the "SysMemMap.h" file to modify the amount of
RAM disk. First, specify the total number of bytes of RAM disk
(1)
by "DISK_ALL_BYTE". Then, specify the
beginning and the end of the RAM disk area by "RAM_DISK_S", and "RAM_DISK_E
(2)
", respectively.
Notes: 1. Specify the value bigger than 1.5 MB. As the FAT information consumes the RAM disk area, the actual
amount of the RAM disk area will be reduced. This sample program configures FAT 12 information by up
to 16-MB data, and FAT16 information by up to 2-GB data. Other FAT information must be created by user.
2. The RAM disk area specified between "RAM_DISK_S" and "RAM_DISK_E" must be bigger than the size
specified by "DISK_ALL_BYTE".