Artila Matrix 522 User Manual Download Page 6

Install GNU Tool Chain 

Find a PC with Linux OS installed as followed: 
Fedore 7, ubuntu 7.04, OpenSUSE 10.2, Mandriva 2008, 
Debian 5.0, Centos (RedHat) 5 and above.  
Login as a root user then copy the arm-linux-4.3.2.tar.gz  to root 
directory of  PC. Under root directory, type following command 
to install the Matrix 522 Tool Chain 

#tar -xvfj arm-linux-4.3.3.tar.bz2 

The tool chain file name are 

arm-linux-gnueabi-gcc 
arm-linux-gnueabi-g++ 
arm-linux-gnueabi-strip 

Version: gcc 4.3.3, glibc 2.9, binutils 2.18 
 
For Windows user, please download the toolchain from 
CodeSourcery at  
http://www.codesourcery.com/sgpp/lite/arm/portal/
package4547/public/arm-none-linux-gnueabi/arm-2009q1-203-
arm-none-linux-gnueabi.exe 
The tool chain file name are 

arm-none-linux-gnueabi-gcc 
arm-none-linux-gnueabi-g++ 
arm-none-linux-gnueabi-strip 

Version: gcc 4.3.3, glibc 2.8, binutils 2.19 

Getting started with the Hello program 

There are many example programs in Artila CD.  To compile the 
sample you can use the Make file and type  

make 

To compile and link the library.  Once done, use ftp command  

ftp 192.168.2.127 

Then login with password. Use bin command to set transfer 
mode to binary  

 ftp>bin 

to transfer the execution file to Matrix 504 user disk (/home/
guest) and use 

chmod +x  file.o 

To change it to execution mode and 

 

./file.o  

to run the program 

Auto start program on boot: 

To start a program on boot, you can use

 

/etc/rc.local 

For example to use 

vi 

to edit 

rc.local 

hello & 
exit 0 

Hello will be executed after system boot up.  

rc.local 

has the 

similar function as 

/etc/rc 

in Matrix-522 

Artila Utility Software: 

The introduction of Artila utility software as follow: 
1. 

update

 : update loader, environment file and kernel image.  

Type 

update

help

 to find the command usage 

Update can only operated under supervisor mode (password : 
root).  Please use command 

su 

and login as root 

3

version

find out the version of OS. 

2

setuart

configure serial port setting.  An example show as 

followed to configure port 1 as RS-485 interface with baud rate  
921600.  

4

gpioctl

The gpio can be configured by 

gpioctl 

and the 

usage is as shown followed.  

3

setconsole

Unlike Matrix-510 which shares the serial 

console port with the serial port 3, Matrix-522 uses dedicated 
pins for serial console (debug port).   

setconsole

 command 

allows user to redirect the serial console port to any one of the 
four serial port of Matrix-522.   Therefore user can avoid 
opening the metal case to access the serial console. 

Summary of Contents for Matrix 522

Page 1: ...Micro SD memory card 7 Two 3 in 1 RS 232 422 485 ports 8 Two 2500 Vrms fully isolated CAN 2 0A 2 0B ports 9 21 programmable Digital I O port 10 9 to 40VDC power input 11 Pre installed Standard Linux 2...

Page 2: ...The dual color LEDs indicate the data traffic at the serial bus and CAN bus When RXD line is high then Green light is ON and when TXD line is high Yellow light is ON Ethernet Port Serial Ports Port 1...

Page 3: ...127 Login root or guest telnet guest only Password root or guest telnet guest only Serial Console Port Baud rate 115200 Data format 8 Bits No Parity 1 Stop bit N 8 1 Flow Control None Terminal type V...

Page 4: ...of SSH and key are located at etc ssh The key generation program is available at usr bin Putty Console Software For Windows user you can download the putty software at http www chiark greenend org uk...

Page 5: ...the SocketCAN API libsocketcan The libsocketcan library allows you to control some basic functions in socketcan from userspace Please refer to Example CanBus libsocketcan For the examples program for...

Page 6: ...nd to set transfer mode to binary ftp bin to transfer the execution file to Matrix 504 user disk home guest and use chmod x file o To change it to execution mode and file o to run the program Auto sta...

Page 7: ...200 Data bits 8 Parity N Stop bit 1 Flow Control None Terminal type VT100 Once power up M 518 please repeatedly keying and you will see the loader menu appear as follow If you miss the timing please p...

Page 8: ...using this function you need to copy the folder of mkimage522 in the Artila CD to an USB disk This function will create a new file system image for users and they can use it to duplicate the customiz...

Page 9: ...rver to update the software you want To install the utility from Artila ftp please use vi to edit the etc ipkg conf src gz arm ftp ftp ftp ftp artila com AT9G20 Artila CD Linux Utility src gz kernel f...

Page 10: ...at 17 NL 7483 PG Haaksbergen Tel 31 0 53 573 33 33 Fax 31 0 53 573 33 30 nl texim europe com St Mary s House Church Lane Carlton Le Moorland Lincoln LN5 9HS Tel 44 0 1522 789 555 Fax 44 0 845 299 22 2...

Reviews: