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.
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.