AM335X-PAC Series User Manual version 2.0.1 Page: 74
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
4.3.1. A simple example- helloworld.c
There are three choices available to you:
1.
Coding a helloworld.c file
2.
To modify/c
reate demo ‘helloworld.c’
Using a programmer's editor, such as PSPad. Create a demo - helloworld.c file. Note that the code
is case-sensitive. Refer to Figure 4.3.1-1 for more details.
Figure 4.3.1-1.
Creating helloworld.c
3.
Find the demo in SDK
The process can be divided into two steps, which are described below:
Open the LinPAC_AM335x SDK and then type
‘
cd examples/common
’
to change the path to
C:/cygwin/LinPAC_AM335x_SDK/examples/common
.
Type
‘
dir/w
’
or
‘
ls
’
command and to display the contents of the directory and confirm that
the helloworld.c file is present. Refer to Figure 4.3.1-2 for more details.
Figure 4.3.1-2.
Display and confirm the contents of the common directory