Compile Demo- Helloworld.c; Execute Demo- Helloworld.exe - ICP DAS USA LP-22 Series User Manual

Hide thumbs Also See for LP-22 Series:
Table of Contents

Advertisement

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)

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
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.
AM335X-PAC Series User Manual
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved.
Figure 4.3.2-1. Executable file - helloworld.exe
version 2.0.1
'LinPAC_AM335x
Page: 75
E-mail: service@icpdas.com

Advertisement

Table of Contents
loading

Table of Contents