User`s manual

UC-8410/8416/8418-LX User’s Manual Getting Started
2-10
ATTENTION
Be sure to type the #make command from within the /tmp/example/hello directory, since the
UC-8410/8416/8418’s tool chain puts a specially designed Makefile in that directory. This
special Makefile uses the xscale-linux-gcc compiler to compile the hello.c source code for the
Xscale environment. If you type the #make command from any other directory, Linux will use
the x86 compiler (for example, cc or gcc). Refer to Chapter 5 to see a Make file example.
Uploading and Running the “Hello” Program
Use the following command to upload hello-release to the UC-8410/8416/8418 via FTP.
1. From the PC, type:
#ftp 192.168.3.127
2. Use the bin command to set the transfer mode to binary mode, and then put command to
initiate the file transfer:
ftp> bin
ftp> put hello-release
3. From the UC-8410/8416/8418, type:
# chmod +x hello-release
# ./hello-release
The word Hello will be printed on the screen.
root@Moxa:~# ./hello-release
Hello