AM335X-PAC Series User Manual version 2.0.1 Page: 75
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
4.3.2. Compile Demo- helloworld.c
Type the command ‘
arm-linux-gnueabihf-gcc
–
o helloworld.exe helloworld.c
’
to compile
helloworld.c
into helloworld.exe, then type ‘
dir/w
’ or ‘
ls
’
command to display the contents of the
directory and confirm that the helloworld.exe file has been created. (Refer to Figure 4.3.2-1)
Figure 4.3.2-1.
Executable file - helloworld.exe
4.3.3. Execute Demo- helloworld.exe
The user can refer to below steps to transfer and execute helloworld.exe.
Use ‘Dos Command Prompt’ and ‘FTP’
tools to transfer program
Two methods can be used to transfer files to the LinPAC AM335x PAC, with LP-8x21 as an
example:
<
Method one
>
Using the
‘
DOS Command Prompt
’
(1)
Open a
‘
DOS Command Prompt
’
or double-click the shortcut icon for the
‘
LinPAC_AM335x
Build Environment
’
and type the ftp IP Address of the LP-8x21 for example,
ftp 192.168.0.200
to establish a connection to the FTP Server on the LP-8x21. When prompted, type the
User_Name (default value is
‘
root
’
)
and
Password (default value is
‘
icpdas
’
)
to establish a
connection to the LP-8x21.