EM-1240-LX User’s Manual

Getting Started

Developing Your Applications

Step 1:

Connect the EM-1240-LX to a Linux PC.

Step 2:

x

 

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-1240-LX via 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-1240-LX units.

 

Cross

Compiler

Installing the EM-1240-LX Tool Chain

Linux

The PC must have the Linux Operating System pre-installed to install the EM-1240-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-1240-LX Tool Chain can be found on the EM-1240-LX 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 as 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.

Windows

In addition to the Linux Tool Chain, the Windows Tool Chain for the EM-1240-LX is in the official EM-1240-LX CD. Please refer to the following installation procedure to install the EM-1240-LX Windows Tool Chain.

2-7

Page 23
Image 23
Moxa Technologies user manual Developing Your Applications, Installing the EM-1240-LX Tool Chain, Step