This file documents how to install URIBO for H8/300H target.
Table of Contents
Introduction
Environment
This is an example of the environment as follows.
CPU chip |
H8/3069 |
CPU core |
H8/300H |
Target board |
AKIZUKI AE-H8/3069-LAN Board |
Host OS |
Debian GNU/Linux 5.0 |
GDB remote connection type |
Serial port |
BINUTILS |
2.16.1 |
GCC |
3.4.3 |
NEWLIB |
1.13.0 |
GDB |
5.2.1 |
1 Install URIBO files to the host
e.g., You want to install to your home directory.
$ cd
$ tar xjf (downloaded dir)/uriboYYMMDD.tar.bz2
"YYMMDD" means date of the release.
And, you can see ~/uribo directory, now.
2 Install GDB stub to the target board
Please connect host-PC to target board by a straight serial cable or
USB-serial cable.
Please read "/dev/ttyUSB0" etc. in a different way as "/dev/ttyS0" after this
if you want to use USB.
Please set the DIPSW near CPU chip to as follows BEFORE you turn on power.
These settings will make CPU in flash programing mode.
ON o o o
OFF o
1 2 3 4
Please turn on power and execute "h8write" to program the on-chip flash ROM.
$ cd uribo/h8300h/h8-stub
$ ../h8write/h8write -3069 -f20 h8-stub.mot /dev/ttyS0
H8/3069F is ready! 2002/5/20 Yukio Mituiwa.
writing
ingore record
ingore record
............................................................................
............................................................................
............................................................................
...............................................................
EEPROM Writing is successed.
$
Please turn OFF power and set the DIPSW again as follows.
These settings will make CPU in mode-5.
ON o o
OFF o o
1 2 3 4
Please turn on power again.
GDB stub installation is done.
Note: H8 GDB stub README is here.
3 Install tool chain from binary package
It is necessary that you have permission to write /usr/local.
$ cd /usr/local
$ tar xjf (downloaded dir)/h8300-linux-elf-gcc-bin-YYMMDD.tar.bz2
Please add tool chain path to "PATH" variable.
$ export PATH=/usr/local/h8300-linux-elf/bin:$PATH
Please try to compile the sample application.
$ cd ~/uribo/h8300h/ap_ae_h8_3069_lan/
$ make clean all
It is done if you got "test.elf" with no error.
4 Install tool chain from source package ### Under construction ###
Copyright (C) 256TECH Co., Ltd.
Masahiro Sakamoto
mail:m-sakamoto(AT)users.sourceforge.net