H8マイコン向けの開発環境の構築
「12ステップで作る組み込みOS自作入門」のための環境構築
https://www.amazon.co.jp/dp/4877832394
必要な基盤やケーブルはこちらを参考にした
http://d.hatena.ne.jp/sandai/20120917/p1
GCC
mac上にクロスコンパイルの環境を作成する
binutils
code:fish
$ curl -O http://ftp.gnu.org/gnu/binutils/binutils-2.32.tar.gz
$ tar xvf binutils-2.32.tar.gz
$ cd binutils-2.32
$ ./configure --target=h8300-elf --disable-nls --disable-werror --prefix=$HOME/12steps
$ make
$ make install
gcc
code:fish
$ curl -O http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-8.3.0/gcc-8.3.0.tar.gz
$ tar xvf gcc-8.3.0.tar.gz
$ cd gcc-8.3.0
$ mkdir build
$ cd build
$ brew install gcc gmp mpfr libmpc
$ env CC=gcc-8 ../configure --target=h8300-elf -disable-nls --disable-threads --disable-shared --disable-libssp --disable-werror --enable-languages=c --prefix=$HOME/12steps --with-gmp=/usr/local/Cellar/gmp/6.1.2_2 --with-mpfr=/usr/local/Cellar/mpfr/4.0.2 --with-mpc=/usr/local/Cellar/libmpc/1.1.0
$ make
$ make install
h8write
kz_h8writeを使うのが良いらしい
https://ja.osdn.net/projects/kz-h8write/
http://shinta-main-jp.blogspot.com/2011/05/h83069f-writer-for-kozos-kzh8write.html