Software Development Kit for RVL IOP (version 1.3.0)

$Revision: 1.4 $
$Date: 2006/06/12 22:04:47 $

Purpose

The RVL IOP OS DevKit includes all the necessary tools, headers and libraries necessary to develop software to run as a part of the Revolution IOP OS. This SDK is based on the IOS 0.7.6 (RC3) release. The devkit itself uses the cygwin unixcompatibility tools, and relies for loading/running and debugging on the Signum JTAGJet.

Quick Links

ARM cross-compilers for cygwin (updated 06/12/2006)
Signum Chameleon debugger (pre-release edition, version 2.99.08)
SDK compressed tar image (updated 06/12/2006)
SDK release notes (updated 06/12/2006)
API documentation

Installation Instructions

The SDK includes the following items:

Cygwin

The SDK uses the CYGWIN unix compatibility environment on windows. If you do not have cygwin on your PC you should go to the CYGWIN site (www.cygwin.com) and install it. Other than the default packages, you should also select the following:
It is also a good idea to choose one of the available text editors to use for software development on CYGWIN (for example: VIM or EMACS). The SDK has been tested against the latest CYGWIN release (as of 2/20/06).

Installing the Cross Compilation Tools

The ARM cross compiler for cygwin is here.

Download the tarball from the above link. Start a Cygwin shell and then:   
	mkdir -p /opt/crosstool
bzcat arm-tools-cygwin-20060321.tar.bz2 | (cd /opt/crosstool; tar xf -)
Installing the SDK Software


The SDK is here.

In order to install the SDK containing the headers, libraries and source, please use the following procedure:

Setting your PATH

Tools necessary to use the SDK are installed in two places, which should be added to your PATH:

If you are using Bash, type:
export PATH=$PATH:$ROOT/usr/bin/rvl
To make development easy, it is best to add the following lines to your shell init file (.bash_profile if you are using bash):
export ROOT=~/SDK_ROOT (or wherever you put the SDK)
export PATH=$PATH:$ROOT/usr/bin/rvl export RVL_MEM=128 (or 64 if you have a release board; if in doubt, 128)

Installing the Chameleon Debugger

To install the Signum Chameleon debugger follow the directions supplied. You should install the tools in the default directory C:\Signum.

Note: The Chameleon debugger (pre-release edition version 2.99.08) contains a fix to improve the semihosting performance (like printf) when the ARM926 CPU is running with D-cache and MMU enabled. However, this version has the following known issues: Once the tools are installed you should install some defintion files and macros from the SDK. These contain definitions for the CPU configuration, the Register definitions and Macros to point to the iosshell, which are essential to loading and debugging programs.

The install these files:
	cd $ROOT/usr/src/signum
make install

Hardware Setup

Power off the NDEV system and open the top cover.

Plug the "JTAGjet 20/14-pin Connector for ARM" (part # ADA-JDS-ARM20/14) onto the NDEV main board into the socket PT25 at the upper left corner of the board nearest the video output.

Plug the JTAGjet 20-pin Connector for ARM (part # ADA-JDS-ARM20) into the above 20/14 connector. Plug the ribbon cable into the 20-pin connector, and plug that into the JTAGJet debugger.

Plug a USB cable into the PC you are using, and plug the other end of the USB cable into the JTAGjet debugger.

At this point, the USB New Hardware wizard should pop up, and ask you for a location for driver software. Direct the wizard to install from the Signum CD. Click 'Finish' to exit the New Hardware wizard.

Chameleon Debugger Setup

Launch the Chameleon Debugger from the Start menu. Start->All Programs->Signum Systems Chameleon->Chameleon It asks you to Configure the system, and it takes several steps.

The SDK also prepares a iosshell.mac in the C:\Signum\rvl_iop directory, which can be used to quickly reset the board and bring up the shell. To do so, please do the following: IOSSHELL is now a button on the toolbar (you may have to arrange your toolbar to have easy access). It will stop the ARM, load IOS, and present the IOS prompt in the Virtual IO window.

Running Some Tests

The iosshell runs a shell, and also the IOP OS on the ARM. Using the iosshell, sets of .elf executables can be loaded and run.

The SDK ships with a set of tests for basic OS functionality. The elf files for these tests are in $ROOT/usr/bin/rvl/*.elf. The source code for these tests are in $ROOT/usr/src/os/tests. From the src/os/tests directory the tests can be built.

To run a test (eg mq.elf). Click on the iosshell button in Chameleon. Type

>hload \path-to-$ROOT\usr\bin\rvl\mq.elf
>ls
>run bin\rvl\mq.elf
>exit

In this example "hload" loads the elf executable to memory. "ls" will list the program name (including path) that has been loaded. "run" will start up a thread with an entry point that is the main of the elf executable. "exit" will exit the shell (but the IOP OS is still running).

See the SDK documentation for a description of the tests included with the SDK.

Documentation

Basic documentation on how to use the SDK and tools, with pointers to the main API documents is here.