Install GNUToolChain
Find aPCwithLinux OSinstalledasfollowed:
Fedore7, ubuntu7.04, OpenSUSE10.2, Mandriva2008,
Debian5.0,Centos(RedHat)5andabove.
Loginasarootuserthencopythearm-linux-4.3.2.tar.gztoroot
directoryof PC. Underrootdirectory, typefollowingcommand
toinstalltheMatrix522ToolChain
#tar-xvfjarm-linux-4.3.3.tar.bz2
Thetoolchainfilenameare
arm-linux-gnueabi-gcc
arm-linux-gnueabi-g++
arm-linux-gnueabi-strip
Version:gcc 4.3.3,glibc2.9, binutils2.18
ForWindowsuser,pleasedownloadthetoolchainfrom
CodeSourceryat
http://www.codesourcery.com/sgpp/lite/arm/portal/
package4547/public/arm-none-linux-gnueabi/arm-2009q1-203-
arm-none-linux-gnueabi.exe
Thetoolchainfilenameare
arm-none-linux-gnueabi-gcc
arm-none-linux-gnueabi-g++
arm-none-linux-gnueabi-strip
Version:gcc 4.3.3,glibc2.8, binutils2.19
GettingstartedwiththeHelloprogram
TherearemanyexampleprogramsinArtila CD.Tocompilethe
sampleyoucanusetheMakefileandtype
make
Tocompileand linkthelibrary. Once done, useftpcommand
ftp192.168.2.127
Thenloginwithpassword. Usebincommandtosettransfer
modetobinary
ftp>bin
totransfertheexecutionfiletoMatrix504 userdisk(/home/
guest)and use
chmod+xfile.o
Tochangeittoexecutionmodeand
./file.o
toruntheprogram
Autostartprogramonboot:
Tostartaprogramonboot, youcanuse /etc/rc.local
Forexampletouse vi toedit rc.local
hello&
exit0
Hellowill beexecutedaftersystembootup.rc.local hasthe
similarfunctionas /etc/rc inMatrix-522
ArtilaUtilitySoftware:
Theintroductionof Artilautilitysoftwareasfollow:
1. update :updateloader,environmentfileand kernel image.
Type update help tofindthecommandusage
Updatecanonlyoperatedundersupervisormode(password:
root).Pleaseusecommand su andloginasroot
3. version: findouttheversionof OS.
2. setuart: configureserialportsetting.Anexampleshowas
followedtoconfigureport1asRS-485 interface withbaudrate
921600. 4. gpioctl: Thegpiocanbeconfiguredby gpioctl and the
usageisasshownfollowed.
3. setconsole: UnlikeMatrix-510whichsharestheserial
consoleportwiththeserialport3, Matrix-522usesdedicated
pinsforserialconsole(debug port). setconsole command
allowsusertoredirect theserialconsoleporttoanyoneof the
fourserialportof Matrix-522.Thereforeusercanavoid
openingthemetalcasetoaccess theserialconsole.