8月 11 2006
H8-3069F via RS232C
うりゃ、いったいった。
kazu@michael:~/usr/h8-3069f$ gcc -o h8write h8write.c
kazu@michael:~/usr/h8-3069f$ ls -al
合計 253
drwxr-xr-x 2 kazu users 168 8月 11日 14:01 ./
drwxr-xr-x 3 kazu users 72 8月 10日 23:58 ../
-rwxr-xr-x 1 kazu users 24627 8月 11日 14:01 h8write*
-rw-r–r– 1 kazu users 51301 8月 11日 14:01 h8write.c
-rw-r–r– 1 kazu users 122322 8月 10日 23:59 plus3068.mot
kazu@michael:~/usr/h8-3069f$ ./h8write -3069 -f20 plus3068.mot
H8/3069F is ready! 2002/5/20 Yukio Mituiwa.
writing
ingore record
…………………………….
EEPROM Writing is successed.
kazu@michael:~/usr/h8-3069f$ kermit
C-Kermit 8.0.211, 10 Apr 2004, for Linux
Copyright (C) 1985, 2004,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/home/kazu/usr/h8-3069f/) C-Kermit>c
Connecting to /dev/ttyS0, speed 57600
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
—————————————————-
Command not found, or syntax error!
H8/OS >ethbase 200000
set ether base adddress..
H8/OS >ifconfig inet 192 168 1 200
H8/OS >ifconfig mask 255 255 255 0
H8/OS >ifconfig
Link encap:Ethernet HWaddr 00:02:CB:01:E7:6E:
inet addr:192.168.1.200. Mask:255.255.255.0.
8月 11 2006
開発環境
うりゃうりゃ。gcc-3.4.6とか、binutils-2.17試したけどダメ。
まあ、古くてもcompileできれば大丈夫。
ftp://ftp.gnu.org/gnu/gcc/gcc-3.4.1/gcc-3.4.1.tar.bz2
ftp://ftp.gnu.org/gnu/binutils/binutils-2.15.tar.bz2
ftp://sources.redhat.com/pub/newlib/newlib-1.12.0.tar.gz
tar jxvf binutils-2.15.tar.bz2
tar jxvf gcc-3.4.1.tar.bz2
tar zxvf newlib-1.12.0.tar.gz
・binutils
./configure –target=h8300-hms –prefix=/usr/local
make
make install
・gcc(rootじゃないとダメ)
./configure –target=h8300-hms –enable-languages=”c++” –with-newlib –with-headers=/home/kazu/usr/h8-3069f/newlib-1.12.0/newlib/libc/include –prefix=/usr/local
make LANGUAGES=”c c++”
make install
・newlib
./configure –target=h8300-hms –prefix=/usr/local
make
make install
・他に必要なもの
ram3068.x
crt/30xxcrt0.S
crt/3664crt0.S
crt/ramcrt0.S
include/h8/reg3048.h
include/h8/reg3067.h
include/h8/reg3664.h
include/h8/reg704x.h
include/h8/syscall.h
Makefileでのincludeは、compile optionに -I../include とか入れること。
・httpdを動かす
httpd.c, Makefile を若干修正してmake
put httpd.motして、http://192.168.1.200/ するとお見事。
By admin • computer(h8) •