SH7286 Group
USB Function Module: USB Mass Storage Class
R01AN0063EJ0100 Rev. 1.00
Page 13 of 32
Oct. 22, 2010
4.3
How to Load and Execute the Program
This section describes how to load and execute the program.
4.3.1
Loading the Program
Follow the steps to load the sample program to the SH7286 CPU board:
(1) Connect the E10A-USB emulator to the E10A-USB computer where the High-performance Embedded Workshop 4.
(2) Use the user interface cable (E10A cable) to connect the E10A-USB emulator and the SH7286 CPU board.
(3) Turn ON the power of the SH7286 CPU board.
(4) Execute "sh7286_usb_msc.hws" in "sh7286_usb_msc" folder.
(5) Select [Connect] on the [Debug] menu. The [Select Emulator mode] dialog box will appear. Select "SH7286" as the
device, and "E10A-USB Emulator" as the emulator mode.
(6) Press the reset button on the SH7286 CPU board, and click "OK".
(7) The [System Clock] dialog box will appear. Enter the clock frequency of the crystal units (10 MHz).
(8) The [ID Code] dialog box will appear. Enter "E10A".
(9) Select [Debug] menu -> [Download Modules] to load the program on the SH7286 CPU board.
4.3.2
Executing the Program
Select [Reset Go] on the [Debug] menu to execute the program.
4.4
How to Use the RAM Disk
This section gives an example to use the RAM disk on Windows XP-based computer.
When executing the program, insert a USB series-B connector to the SH7286 CPU board, series-A connector (on the
other side) to the USB host computer.
After an enumeration using control transfer and bulk transfer, a USB mass storage device appears under the Universal
Serial Bus controllers node, and RENESAS EX RAN Disk USB Device appears under the Disk drives node. Then, the
host computer recognizes the SH7286 CPU board as a storage device to mount the Local Disk drive in My Computer.
Next, format the Local Disk drive on the computer.
Open My Computer and right-click the Local Disk drive, and then click "Format". "Format Local Disk" dialog box
appears to set. Make sure that the file system is set as "FAT", and click "OK".
When the warning message appears, proceed with formatting by pressing "OK".
When formatting is completed, "Format completed" message will appear. Click "OK" to return to the "Format Local
Disk" dialog box. Click "OK" to exit.
The SH7286 CPU board now can be used as the RAM disk which is connected on the USB.