User`s manual
UC-7402 User’s Manual Getting Started
2-15
NOTE Be sure to type the #make command from within the /tmp/example/hello directory, since UC’s
tool chain puts a specially designed Makefile in that directory. This special Makefile uses the
mxscale-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 “Hello” to UC-7402 and Running the Program
Use the following command to upload hello-release to the UC-7402 via FTP.
1. From the PC, type:
#ftp 192.168.3.127
2. Use bin command to set the transfer mode to Binary mode, and the put command to initiate
the file transfer:
ftp> bin
ftp> put hello-release
3. From the UC-7402, type:
# chmod +x hello-release
# ./hello-release
The word Hello will be printed on the screen.
root@Moxa:~# ./hello-release
Hello