1. 放熱条件を良 く する ために、 ラ テ ィ スは中央の放熱パ ッ ド を PCB のグ ラ ン ド プレーン と 半田付けする こ と を推奨し ています
MachXO2 ™ フ ァ ミ リ デー タ シー ト DS1035J Version 02.0 Page 4-4 に書いてあった。
それにしても Lattice のデータシートはとにかく読みにくい。読みにくいというのも、どこに何が書いてるのかわかんない。そんで、誤字もあったりする。
1. 放熱条件を良 く する ために、 ラ テ ィ スは中央の放熱パ ッ ド を PCB のグ ラ ン ド プレーン と 半田付けする こ と を推奨し ています
TIのデータ・ブックもしくはデータ・シートの中にある情報を複製することは、その情報に一切の変更を加えること無く、かつその情報と結び付られた全ての保証、条件、制限及び通知と共に複製がなされる限りにおいて許されるものとします。当該情報に変更を加えて複製することは不公正で誤認を生じさせる行為です。TIは、そのような変更された情報や複製については何の義務も責任も負いません。
(bq24030 のデータシートより)
事前の承諾を得ることなく転載又は複製することを固くお断り致します。なんて書いてあるデータシート。さすがに、固く断られちゃうと、なんか気がひけちゃうんですよね。
$ ../configure --target=rx-elf \
--prefix=/usr/local/rx-elf \
--disable-newlib-supplied-syscalls \
--enable-multilib
$ make
$ make install
(...省略...)
mkdir tmp
cd tmp; \
for i in argz/lib.a stdlib/lib.a ctype/lib.a search/lib.a stdio/lib.a string/lib.a signal/lib.a time/lib.a locale/lib.a reent/lib.a errno/lib.a misc/lib.a machine/lib.a ; do \
rx-elf-ar x ../$i; \
done; \
rx-elf-ar rc ../libc.a *.o
rx-elf-ar: ../argz/lib.a: No such file or directory
rx-elf-ar: ../stdlib/lib.a: No such file or directory
rx-elf-ar: ../ctype/lib.a: No such file or directory
rx-elf-ar: ../search/lib.a: No such file or directory
rx-elf-ar: ../stdio/lib.a: No such file or directory
rx-elf-ar: ../string/lib.a: No such file or directory
rx-elf-ar: ../signal/lib.a: No such file or directory
rx-elf-ar: ../time/lib.a: No such file or directory
rx-elf-ar: ../locale/lib.a: No such file or directory
rx-elf-ar: ../reent/lib.a: No such file or directory
rx-elf-ar: ../errno/lib.a: No such file or directory
rx-elf-ar: ../misc/lib.a: No such file or directory
rx-elf-ar: ../machine/lib.a: No such file or directory
rx-elf-ar: *.o: No such file or directory
Makefile:979: recipe for target `libc.a' failed
make[8]: *** [libc.a] Error 1
/** * ディレクトリツリーを作成する * * $dir のディレクトリ 下位ディレクトリ を含む ファイル・ディレクトリの一覧を取得します。 * * 注意: 含まれるディレクトリ・ファイルの数によっては処理に時間がかかり、また多くのメモリを必要とする恐れがあります。 ** @param$dir検索するディレクトリ* @return ファイル・ディレクトリの配列*/ function FileFind_maptree($dir){ $items = glob($dir . '/*'); for ($i = 0; $i < count($items); $i++) { if (is_dir($items[$i])) { $add = glob($items[$i] . '/*'); $items = array_merge($items, $add); } } return $items; }
$ arm-none-eabi-objdump -x hello.o
...これらは elf ファイルに有る、 .text セクション内の実際のデータをに対して、移動先アドレスまでのオフセットを加算すればリロケーションできる。
RELOCATION RECORDS FOR [.text]:
OFFSET TYPE VALUE
00000094 R_ARM_PC24 main
00000098 R_ARM_PC24 exit
00000144 R_ARM_PC24 msg_send
00000178 R_ARM_ABS32 .rodata
0000014c R_ARM_ABS32 .rodata
000034cc R_ARM_PC24 sys_log
...
$ cd /home/pkg/insight-cvs20130414
$ tar xvjf insight-cvs20130414-src.tar.bz2
$ patch -p1 -d src < insight-cvs20130414-cygwin.patch
$ mkdir /home/pkg/insight-cvs20130414/.BUILD
$ cd /home/pkg/insight-cvs20130414/.BUILD
$ ../src/configure \
--target=arm-none-eabi \
--prefix=/usr/local/arm-none-eabi \
--with-mpfr \
--with-gmp
$ make
$ make install
gcc -c -g -O2 -Wall -Wconversion -I"../../../tcl/win/../generic" -I"../../../tcl/win" -mwin32 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_NO_SEH=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DBUILD_tcl ../../../tcl/win/../generic/tclAlloc.c -o tclAlloc.o
In file included from /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:56:0,
from ../../../tcl/win/../generic/../win/tclWinPort.h:72,
from ../../../tcl/win/../generic/tclPort.h:22,
from ../../../tcl/win/../generic/tclAlloc.c:29:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/psdk_inc/_fd_types.h:100:2: 警告: #warning "fd_set and associated macros have been defined in sys/types. This can cause runtime problems with W32 sockets"
In file included from ../../../tcl/win/../generic/../win/tclWinPort.h:72:0,
from ../../../tcl/win/../generic/tclPort.h:22,
from ../../../tcl/win/../generic/tclAlloc.c:29:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:986:34: error: conflicting types for ‘select’
/usr/include/sys/select.h:31:5: note: previous declaration of ‘select’ was here
Makefile:423: recipe for target `tclAlloc.o' failed
make[3]: *** [tclAlloc.o] Error 1
make[3]: ディレクトリ `/home/pkg/insight-6.8-1/.BUILD/tcl/win' から出ます
Makefile:15: recipe for target `all' failed
make[2]: *** [all] Error 2
make[2]: ディレクトリ `/home/pkg/insight-6.8-1/.BUILD/tcl' から出ます
Makefile:6631: recipe for target `all-tcl' failed
make[1]: *** [all-tcl] Error 2
make[1]: ディレクトリ `/home/pkg/insight-6.8-1/.BUILD' から出ます
Makefile:705: recipe for target `all' failed
make: *** [all] Error 2
netbeans.exe -J-Dgdb.breakpoints.shortpaths=true