CT6xx Quick Start
CT6xx Quick Start
CT6xx Series
57-5104 Rev C
April 2009
Contents
CT6XX SERIES INTRODUCTION...................................................................................................................................2
SCOPE...................................................................................................................................................................................2
CT6xx Series General Description................................................................................................................................2
Development Disk..........................................................................................................................................................2
CT6XX SERIES DEVELOPMENT KIT...........................................................................................................................................3
Development Tools Disk (Utilities Disk).......................................................................................................................3
ToolDescriptionOBCLinkOBCLink is a windows-based utility program used to communicate between the CT6XX
and the host computer.GNU X-Tools30-Day evaluation of the GNU X-Tools by Microcross. To purchase these
tools, contact Microcross at MicroCross.com. VX-ToolsVisual X-ToolsOBCToolsVarious example programs are
included on the development disk along with their source code.Development Tools Disk Folders.............................4
CT6XX TOOLS INSTALLATION....................................................................................................................................5
DEVELOPMENT TOOLS INSTALLATION ........................................................................................................................................5
OBC TOOLS INSTALLATION.......................................................................................................................................10
OBC TOOLS INSTALLATION...................................................................................................................................................10
HARDWARE SETUP................................................................................................................................................................11
OBCLINK...........................................................................................................................................................................12
USING OBCLINK.................................................................................................................................................................12
VISUAL X-TOOLS EXAMPLE PROGRAM.................................................................................................................14
ASSUMPTIONS.......................................................................................................................................................................14
VISUAL X-TOOLS EXAMPLE PROGRAM....................................................................................................................................14
ADDING TOOLS TO THE VX-TOOLS ENVIRONMENT.......................................................................................................................20
Adding the Strip command to the Build menu.............................................................................................................20
Adding a button to the Build toolbar to invoke OBCLink...........................................................................................21
MANUAL HISTORY........................................................................................................................................................22
February 2007.............................................................................................................................................................22
November 2007............................................................................................................................................................22
July 2008......................................................................................................................................................................22
April 2009....................................................................................................................................................................22
DYACON, Inc
Scope
There are three manuals for the CT6xx Series;
(1) CT6xx Series Reference Manual
(2) CT6xx Series Software Development Manual
(3) CT6xx Series Quick Start Guide
The content of this document is intended as a quick start for developers as they begin to work with
the CT6XX. The system integrator is responsible to provide specific operating instructions and
manuals for end users.
Development Disk
A CD containing the files discussed in this document is available from Dyacon. Refer to the
CT6xx Series Software Development Manual and the CT6xx Series Reference Manual for
additional information.
Item Description
CT6xx CT6xx Series Device
CT6 BOB Break-Out Board for ease of development
Power Brick 110 AC in / 12 V DC out that connects to the CT6 BOB
Null Modem Cable Used to connect the CT6 BOB to a host computer via
serial port
Development Tools CD Developers Tools disk also referred to as Utility Disk
Connection Cables Set of Power/IO cables (opetional)
Tool Description
OBCLink OBCLink is a windows-based utility program used to
communicate between the CT6 and the host computer.
GNU X-Tools 30-day evaluation of the GNU X-Tools by Microcross.
VX-Tools Visual X-Tools
CT6 Tools Various example programs with source code. Also
manuals and support documentation.
Path Description
6. Use the default destination folder or click Change to install to a different folder.
Click Next to install to the selected folder.
7. The wizard is ready to begin installation. If you want to review or change any of
your settings, click Back. Click Install to continue.
8. Depending upon the type of computer being used, the installation may take
several minutes.
12. Please read the license agreement carefully, select “I accept the terms in the
license agreement,” and click Next to continue.
13. Read the Readme information and then click Next to continue.
14. Key in your User Name and Organization and select the desired method of
installation. Click Next to continue.
15. Use the default destination folder or click Change to install to a different folder.
Click Next to continue.
Installation of all the tools has now been completed. It is also possible to run the installation programs again to
modify or uninstall the programs. Note that if uninstall is used, it may take a few minutes for the installation to
complete because of the size of the X-Tools environment and number of files to be uninstalled. You will also
need to manually remove the directories copied in this section.
Hardware Setup
1. In a static free work area, remove the CT6XX PCBA from its case (use a flat
head screwdriver to release the latches on each side of the case).
2. Place the CT6XX PCBA into the CT6XX BOB as shown below
CAUTION:
Make sure that the CT6XX PCBA is inserted into the CT6XX BOB correctly, as
shown below. Inserting the PCBA backwards can cause damage to the CT6XX
PCBA and to the CT6XX BOB.
3. Connect the Console port on the CT6XX BOB to the PC’s serial port with a null
modem cable.
CT6XX
CT6XX
Break-Out-Board (BOB)
4. Having the CT6XX BOB’s On/Off switch in the OFF position, connect power to
the CT6XX BOB using the power brick or an alternative 12V source.
OBCLink
Using OBCLink
OBCLink allows the host computer to communicate with the CT6XX. Files can be transferred
back and forth between the CT6XX and host computer. CT6XX shell commands can also be
issued from the host computer.
1. Run OBCLink.exe, which can be found in the Utilities folder of the obc605
folder on the Developers (Utilities) CD. Refer to the OBCLink section of the
CT6XX Series Reference Manual for additional details on how to use the
program.
2. Configure the COM port by clicking on the Properties button (sixth button from
the left). Select the desired COM port and baud rate. The default baud rate for
the CT6XX is 38400. Units are shipped with a standard configuration “initab”
file that changes the baud rate to 115200.
3. Click the connect button (fourth button from the left).
4. Assuming that the CT6XX has been placed in the CT6XX BOB and everything
has been connected properly as outlined in the previous section, apply power to
the CT6XX by switching the switch on the CT6XX BOB to the On position. The
red and green LEDs on the CT6XX PCBA briefly flash. Boot information is
displayed in the OBCLink work area and the cursor should be on the prompt
“#:”
5. Shell Commands can be issued at the command prompt. Following are a few
examples:
At the command prompt:
Key in “help” to display a listing of all the commands available.
#help
Command Set:
call cat cp date dchk defrag
df echo edit exit finfo flash
fsize gosub goto gpio help history
if item ld ls mem read
reset return rm rs232 run set
delay time tfs sleep suspend sysinfo
plvl version watchdog xrcv xsnd
#help ls
Options:
-a display 'hidden' files
-l long format
-m enable more
-x set exit flag if error
#sysinfo
TOS 1.3
Platform: Wescor OBC605
CPU: MC9328MXL ARM920T
Built: Feb 6 2007 @ 14:00:15
Stack: bottom=0x80d57bc, size=16384 (10% used)
API Entry Addr: 0x20
TOS RAM: 0x807d000-0x80d9d64
App RAM Base: 0x8100000
#
Assumptions
• GNU-X-Tools is already installed
• VX-Tools is already installed
• OBCTools is already installed
• User has a basic understanding of the development process for the
CT6XX
6. In the next dialog box select A “Hello World” application and click Next.
8. At this point the “New Project Information” dialog should be presented. Click
the OK button to accept the choices.
9. The project’s environment needs to be set up so the correct tools are invoked to
generate the executable. Follow the steps to incorporate the Strip command
found in the “Adding the Strip command to the Build menu” section later is this
manual.
10. From the main menu, select the “Build->GNU C X-Tools Options..,” In the
“Code Generation” tab, select “Med(-O2)” for the Level of optimization.
13. In the Misc tab expand the “Language” option and select “-fno-builtin.”
14. Expand the “Machine” option and under “arm-elf” find and select “-
mcpu=arm9tdmi”. Click the OK button to close the dialog box.
15. The OBC605 header file needs to be included. Change the program’s “include”
statement as follows:
3. Drag the first icon to the Build toolbar and then click the Close button to dismiss
the dialog box.
4. Right click the new tool button and select Properties… from the popup menu.
5. In the Toolbar Control Properties enter the path and name of the OBCLink
program and in the Message space enter “Open OBCLink Window” (omit the
quotes). Click the OK button.
Manual History
February 2007
Initial release of the CT605 Series Quick Start Guide.
November 2007
Made minor corrections to the manual.
Updated with Dyacon Inc.
July 2008
Converted to Dyacon name.
April 2009
Adapted Manual to cover entire CT6 series