The eCos Tests Prentice.Hall – Embedded.Software.Development.with.eCos

Simulators 311 As we see in Figure 12.15, the timeout period can be specified. The connection to the tar- get hardware can also be set to either serial or Ethernet.

12.7 Simulators

The eCos framework provides simulators for several different processor architectures, including the Hitachi H8300, MIPS, Matsushita AM3x, PowerPC, and SPARClite. A simulator can be useful when a development board is not available, or possibly too costly, and the hardware has not been developed. In these cases, the software can be developed for the target processor and run on a simulator target. The simulators are run from the GNU debugger GDB, either using the Insight GUI or from the GDB command line. To invoke the PowerPC-based GNU debugger you run the executable powerpc-eabi-gdb.exe. Figure 12.14 Configuration Tool Run Tests dialog box. 312 Chapter 12 • An Example Application Using eCos First, let’s see how to run code on the simulator using Insight. When running Insight GDB, select File – Target Settings to bring up the dialog box for connecting to a target, as shown in Figure 12.16. Under the Target drop-down list, select Simulator. Any target-specific options can be entered in the Options edit field within this dialog box. Figure 12.15 Configuration Tool Connection Settings dialog box for running tests on a target system. N O T E The pre-built PowerPC GNU cross-development tools are also included on the CD-ROM in the file ppcgnu- tools.tar.bz2 under the gnu\ppctools directory. You can add the PowerPC GNU cross-development tools by unzipping the file under the root D:\cygwin directory. The files are extracted under the D:\cygwin\toolsppc directory. The command to extract the PowerPC GNU cross-development tools is: tar xjvf cygdriveegnuppctoolsppcgnutools.tar.bz2 You would then need to add the D:\cygwin\toolsppc directory to your path, as shown in Chapter 10 in Section 10.2.2, Installing the Platform-Specific Cross-Development Tools, in STEP 4. The PowerPC GNU cross-development tools are used in Chapter 13.