[ Abstract ] [ Copyright Notice ] [ Contents ]

h8comm : A flash memory writer tool for H8/3048F
Chapter 1 Usage of h8comm


1.1 Name

h8comm : A flash memory writer for H8/3048F


1.2 Synopsis

     h8comm [-hdn] [-b ProgBPS] [-B BootBPS] [-r BootFile] [-D Device]
     [File]


1.3 Description

h8comm is a program to write flash memory of H8/3048F by boot mode. It communicates to H8 via serial line.

Normally, it executes following steps:

  1. h8comm sends a boot-strap program to H8 using H8/3048F boot-mode protocol.
  2. The boot-strap program reads target codes from serial line, and writes to flash ROM.
  3. h8comm sends data in stdin to the serial line, and shows data to stdout received from the serial line.

These steps can be disabled by command-line options.


1.4 Options

-h
Show summary of options.

-D device
Specify serial device. Default is /dev/ttyS1

-r file
Specify the binary image file of the boot program. Default is /usr/local/lib/h8comm/h8prog.bin

-b BPS
Specify the baudrate of the serial line after the boot-strap program is executed. It must be 2400 or more, and is rounded to the appropriate value. Default is 9600.

-B BPS
Specify the baudrate of the serial line. It must be 2400 or more, and is rounded to the appropriate value. Default is the same value as -b.

-n
Do not send ROM image of a main program. Only a boot-strap program is executed.

-d
Monitors the serial line After writing to ROM. This is useful if your programs uses serial line as standard input/output.


1.5 Examples

     h8comm sample.bin

Writes sample.bin to H8 ROM. This is a standard usage of h8comm.

     h8comm -r sample.bin -n

Executes sample.bin as a boot-strap program. It is useful to test small programs.


1.6 Files

/usr/local/lib/h8comm/h8prog.bin
A boot-strap program to write flash ROM.

/usr/local/lib/h8comm/h8crt0.o
A sample start-up file for gcc

/usr/local/lib/h8comm/h8ram.x
A sample linker script file for bootstrap program

/usr/local/lib/h8comm/h8rom.x
A sample linker script file for ROM program

/usr/local/lib/h8comm/romsmpl.bin
A sample ROM program


1.7 Author

This manual page was written by Muneyuki IWATA kp9m-iwt@asahi-net.or.jp.


1.8 Configuration

No configuration file is supported. Modify config.h and recompile if you plan to change default value.


1.9 Bug

Modify the source if you will find it.


[ Abstract ] [ Copyright Notice ] [ Contents ]
h8comm : A flash memory writer tool for H8/3048F
version 1.0, 15 Dec 1999
Muneyuki IWATA kp9m-iwt@asahi-net.or.jp