Companion CD-ROM: examples/board directory

The examples/board directory contains sample projects that you can run on the DSLMU Microcontroller Board. You should look at these files in conjunction with reading the [PDF] DSLMU Microcontroller Board Hardware Reference Manual. You will also want to read [PDF] An Introduction to Komodo. Please note that you will need Adobe Acrobat Reader (or another PDF viewer) on your computer to read these documents.

Using the Sample Projects

You use the files in this directory by reading through each of them in the order presented below (in the Directory Contents section), then copying the files into your own directory, compiling them and running them on the DSLMU Microcontroller Board using the Komodo debugger. You would do this by typing something like the following at the Linux shell prompt:

mkdir ~/board # Create a directory to hold the files
cp /mnt/cdrom/examples/board/* ~/board # Copy all of the files from the CD-ROM
cd ~/board # Change to the new directory
chmod 644 * # Make all of the files read/writable
make all # Create the executable files
kmd & # Use Komodo to run the executable files
…and so on.

Please note that the “$” indicates the Linux shell prompt: you don’t type it in. This set of commands also assumes that you have already mounted this CD-ROM on your computer, and that the mount point (where the CD-ROM can be found within the file system) is /mnt/cdrom; see the instructions for mounting the CD-ROM for more details.

Directory Contents

[Root] CD-ROM Root Directory
[Dir] examples: Example files and templates
[Dir] intro: Sample projects that can be run on the DSLMU Microcontroller Board   This is the current directory
[File] README.html: The file you are currently reading
[File] Makefile: Makefile for the sample projects
[File] flash-leds.s: Flash the LEDs on and off
[File] teletype.s: “Glass teletype” to communicate with the board through the serial port