Chapter 11. Programming with eCos

This tutorial will take you through the most straightforward path to building and running your own eCos application.

You will need a properly installed eCos system, with the accompanying versions of the GNUPro tools.

On Windows you will be using the bash command line interpreter that comes with Cygwin, with the environment variables set as described in the GNUPro documentation.

The tasks you will accomplish in this tutorial are:

  1. Configuring the eCos kernel for your particular platform.

  2. Building that kernel with its associated libraries and test suites.

  3. Running one of the test programs that is shipped with eCos (built in the previous step).

  4. Building some eCos applications of your own, starting with a hello world-style program, then moving on to a multi–threaded program, and finally to a program that uses some of the eCos system calls.

The procedure just outlined is represented graphically in Figure 11-1.

Figure 11-1. A block diagram of the eCos configure/build process