07/09/06 08:17:41 F54oxUCq
ほらよ >>348
$ make
h8300-elf-gcc -ms -mint32 -mrelax -g -O2 -I. -I../../../include -D_H8S_2144S_ -D_CPUCLOCK_=20000000 -c -o 2144_v.o 2144_v.c
2144_v.c: In function `main':
2144_v.c:237: warning: return type of 'main' is not `int'
h8300-elf-gcc --relax -nostdlib -nostartfiles -Wl,-Tldscripts/h8300self.xc.boot_nonA -o 2144_v.elf crt0_boot.o 2144_v.o
h8300-elf-objcopy -S -g -v -Osrec 2144_v.elf 2144_v.mot
copy from `2144_v.elf' [elf32-h8300] to `2144_v.mot' [srec]
h8300-elf-objdump -Dx 2144_v.elf > 2144_v.list
URLリンク(h8.or.tp)
URLリンク(h8.or.tp)
URLリンク(h8.or.tp)
書き込み中のLED明滅はここのメモを参考にPB4,5(LED5,6?)にしといた。
URLリンク(catroll.cocolog-nifty.com)
#define PW_CHECK 1
#define PWC_SET (PB.DDR= 0xff)
#define PWC_ON (PB.DR.BYTE= 0x20)
#define PWC_OFF (PB.DR.BYTE= 0x10)
#define PWC_FAIL (PB.DR.BYTE= 0x30)
#define PWC_NONE (PB.DR.BYTE= 0x00)
うちには450円の奴がないんで試せんが,うまくいくことを願ってる。