Oki JOB60851 Network Card User Manual


 
Chapter 4 Software Development
page 4-10
4-2. Sample USB Firmware
The JOB60851 Starter Kit includes the complete source code for use as the starting point for the user
USB firmware. To see the effects of user modifications on behavior, edit the source code, compile it,
link it into an executable .HEX file, and then download and execute this file with the procedure in
Section 2.3 "Running User Programs."
This Section outlines the entire cycle.
4-2-1. Setup
Copy the file M851xxxx.exe from the \Usb_firm directory on the CD-ROM to a work directory--
c:\work in our example. This file is a self-expanding archive that automatically extracts the sample
source code to the appropriate subdirectories shown in Table 4.2.1.
After executing this file in the work directory, open Readme.txt. This text file lists the contents of
the archive. Be sure to read the disclaimer section about rights to the source code.
Table 4.2.1. Sample USB Firmware
\Work Compiler work directory
\Include Include files
\Src Source files (shared files)
\66573 cc665s source code for 16-bit MSM66573 microcontrollers
\Arm ARM-SDT source code for 32-bit ARM microcontrollers
\Err cc665s assembler error output directory
\Lst cc665s assembler listing file output directory
\Debug ARM-SDT debugging code output directory
\Release ARM-SDT release code output directory
\traffic Sample data for use with the Computer Access Technology
Corporation (CATC) USB evaluation system.
4-2-2. Sample Firmware Specifications
The source code on the CD-ROM produces the sample USB firmware shipped in the MSM66Q573
Flash memory. This firmware is perfectly general code that provides the standard device request
support and standard descriptors required by the USB core specifications. It does not assume any
particular application. It supports the three data flow types (control, bulk, and interrupt) offered by
ML60851 USB controllers.
For the detailed specifications of this sample USB firmware, refer to the text file M852.txt
accompanying it in the work directory. Note that the source code supports both ML60851 and
ML60852 USB controllers and that M852.txt covers the 32-bit ARM microcontroller as well as
these two devices. Read only the sections applicable to the ML60851C USB controller and the 16-
bit MSM66Q573 microcontroller.
n
Note
n
As of August 1999, operation has been confirmed only for the MSM66Q573 plus
ML60851C combination. The ARM code is a preliminary version that does not
compile.