User`s manual

EM-1220 LX User’s Manual Getting Started
Developing Your Applications
Step 1:
Connect the EM-1220-DK to a Linux PC.
Step 2:
Install Tool Chain (GNU Cross Compiler & uClibc).
Step 3:
Configure cross compiler and uClibc environment
variables.
Step 4:
Code & compile your program.
Step 5:
Download program to the EM-1220-LX by FTP or
NFS.
Step 6:
Debug the program. If the program is OK, proceed to
Step 7. If the program needs to be modified, go back to
Step 4.
Step 7:
Back up the user directory, and distribute the code to
additional EM-1220-LX units.
Installing the EM-1220-LX Tool Chain
Linux
The PC must have the Linux operating system pre-installed to install the EM-1220-LX Linux
GNU Tool Chain. Debian 3.0R-Woody, Redhat 7.3/8.0 and compatible versions are recommended.
The Tool Chain requires about 100 MB of hard disk space (on your PC). The EM-1220-LX Tool
Chain can be found on the EM-1220-LX Document & Software CD. To install the Tool Chain,
insert the CD into your PC and then issue the following command:
#mount –t iso9660 /dev/cdrom /mnt/cdrom
Next, run the following script from the root to install the compilers, linkers, and libraries in the
/usr/local directory:
#sh /mnt/cdrom/tool-chain/linux/installer/arm-elf-moxa-toolchain-1.1.sh
The Tool Chain installation will take a few minutes to complete.
ATTENTION
The Tool Chain can be downloaded from Moxa’s website. To do this, navigate to the
EM-1220-LX product page, click the Documentation & Drivers link, and then click Go under
Driver & Software Downloads.
2-7