eCos User Guide
Prev |  | Next

# Chapter 9. Target Setup

While eCos supports a variety of targets, communication with all the targets happens in one of four ways. These are described in general below. Any details or variations from these descriptions will be found in the eCos documentation for a specific target, in the appendix.

# Connecting Via Serial Line

Most targets will have RedBoot or GDB Stubs installed. These normally waits for GDB to connect at 38400 baud, using 8 data bit, no parity bit and 1 stop-bit and no hardware flow control. Check the documentation for your target to ensure it uses this speed. If not, adjust the following instructions accordingly.

The following instructions depend on your having selected the appropriate serial port on the host. That is, the serial port which connects to the target's (primary) serial port. On Linux this could be `/dev/ttyS0`, while the same port on Windows would be named COM1. Substitute the proper serial port name in the below.

Connect to the target by issuing the following commands in GDB console mode:

    (gdb) set remotebaud 38400
    (gdb) target remote /dev/ttyS0

In Insight, connect by opening the File->Target Settings window and enter:

    Target: Remote/Serial
    Baud Rate: 38400
    Port: /dev/ttyS0

Set other options according to preference, close the window and select Run->Connect to target.

Prev | Home | Next
Installation on Windows | Up | Connecting Via Ethernet