だめぷろふ記

なんとなくだめ

Windows7でEclipseからATMEL SAM9G25-EK用のAT91Bootstrapをビルド中

Linux(emdebian)であればweb上の情報をつまみながら普通にできたものの、Windows上でEclipseからビルドするという縛りがあり、Eclipse並びにCygwin方面には良くない思い出が多々ありながらもすっぱりとそれを忘れ、取り組んだ。

ターゲットボードはATMEL SAM9G25-EK。
ARM9(ARM926EJ-S)であり、スマホで流行のCortex系では、ない。

AT91SAM9x5 family special page
http://www.at91.com/linux4sam/bin/view/Linux4SAM/SAM9x5Page

WindowsにおけるARMの開発環境について色々検索し、Sourcery CodeBench Lite EditionとかMinGWとかYAGARTOとか色々回り道をして、最終的に以下にたどり着いた。

AT91Bootstrap-5series_1.2\README.txt によると


1.1 GNU ARM Toolchain
===========================================================================================
1.1.1 Linux

AT91Bootstrap has been compiled and tested under Linux using the following GNU ARM
binary distribution which can be downloaded from the following URL: http://www.gnuarm.org
GCC-3.4 toolchain: binutils-2.15, gcc-3.4.3-c-c++-java, newlib-1.12.0, insight-6.1, tar.bz2
(or newer)
Once your toolchain is installed, install at91bootstrap in a directory and cd into it.

1.1.2 Windows

AT91Bootstrap has been compiled and tested under Cygwin using the following GNU ARM
binary distribution which can be downloaded from the following URL: http://www.gnuarm.org
GCC-4.1 toolchain: binutils-2.16.1, gcc-4.1.0-c-c++, newlib-1.14.0, insight-6.4, setup.exe
(or newer)
Note: Cygwin can be downloaded from the following URL:http://www.cygwin.com/


とあるので、Eclipse + GNU ARM toolchain + Cygwin の構成で。

  1. Eclipse Classic 4.2.1
    http://www.eclipse.org/downloads/

    C/C++ Development Tooling (CDT)
    http://www.eclipse.org/cdt/
    Work with:
    http://download.eclipse.org/tools/cdt/releases/juno

    Zylin Embedded CDT
    http://opensource.zylin.com/embeddedcdt.html
    Work with:
    http://opensource.zylin.com/zylincdt

    GNU ARM C/C++ Development Support
    http://sourceforge.net/projects/gnuarmeclipse/
    Work with:
    http://gnuarmeclipse.sourceforge.net/updates.

    Hex Editor Plugin for Eclipse 3.4 , 3.5 , 3.6 , 3.7 and newer
    http://ehep.sourceforge.net/
    Work with:
    http://ehep.sourceforge.net/update

    Target Management Terminal
    Work with:
    http://download.eclipse.org/releases/juno

    rxtx
    http://rxtx.qbang.org/wiki/index.php/Main_Page
    Work with:
    http://rxtx.qbang.org/eclipse/

    Pleiades - Eclipse プラグイン日本語化プラグイン 1.3.5
    http://mergedoc.sourceforge.jp/


  2. GNU ARM toolchain
    http://www.gnuarm.com/files.html から

    binutils-2.17, gcc-4.1.1-c-c++, newlib-1.14.0, insight-6.5, setup.exe [25.1MB]

    or newer とあるので、とりあえず新しい方を。


  3. Cygwin
    http://cygwin.com/install.html から setup.exe を。

    フルインストールしたら大変時間がかかっており今日はここまで。





つまりREADMEは大事ですよ奥さん旦那さん。

というメモ。