Go to the previous, next section.

GDB and Hitachi Microprocessors

GDB needs to know these things to talk to your Hitachi SH, H8/300, or H8/500:

  1. that you want to use `target hms', the remote debugging interface for Hitachi microprocessors (this is the default when GDB is configured specifically for the Hitachi SH, H8/300, or H8/500);

  2. what serial device connects your host to your Hitachi board (the first serial device available on your host is the default);

Use the special gdb command `device port' if you need to explicitly set the serial device. The default port is the first available port on your host. This is only necessary on Unix hosts, where it is typically something like `/dev/ttya'.

gdb has another special command to set the communications speed: `speed bps'. This command also is only used from Unix hosts; on DOS hosts, set the line speed as usual from outside GDB with the DOS mode command (for instance, `mode com2:9600,n,8,1,p' for a 9600 bps connection).

The `device' and `speed' commands are available only when you use a Unix host to debug your Hitachi microprocessor programs. If you use a DOS host, GDB depends on an auxiliary terminate-and-stay-resident program called asynctsr to communicate with the development board through a PC serial port. You must also use the DOS mode command to set up the serial port on the DOS side.

Go to the previous, next section.