EasyManua.ls Logo

WAGO 750 Series - Page 110

WAGO 750 Series
248 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
106 Step-by-Step Guide to your own Linux Application
Create your own User Space Application
WAGO-I/O-SYSTEM 750
Linux Fieldbus Coupler
Create the make file, e.g. using EMACS, KATE or JOE.
> emacs Makefile
Call EMACS editor
Insert the following code into the emacs and press CTRL-X CTRL-S to save
it.
In order to connect the make file to the global make file of the cross compiler,
you have to paste the new directory into the ~/uclinux-dist/user/Makefile make
file in the dir_y variable:
> emacs ../Makefile
Tippen Sie den folgenden Code in den emacs und speichern Sie ihn CTRL-X
CTRL-S.
The program, along with all other user space programs, is compiled if make
in the /uclinux-dist directory is executed with the following option (see chapter
5.3).
> cd ~/uclinux-dist
> make user
A binary file "newProg" is created which can be copied into the Linux
fieldbus coupler via NFS or FTP, for example.
> cd ~/uclinux-dist
> make user romfs image
This will also create a binary file newProg. At the same time, the romfs
directory is updated and the new image of the file system jffs2.img is created
which can be loaded via the boot loader (U-Boot) (see 5.10.2).
all: newProg
newProg: newPorg.o
$(CC) $(LDFLAGS) -o $@ newProg.o $(LDLIBS$(LDLIBS-
$(@)))
cp newProg /targetfs/
romfs:
$(ROMFSINST) /bin/newProg
clean:
rm –f newProg *.elf *.gdb *.o
...
dir_y = kbusapi ... newProg
...

Table of Contents

Other manuals for WAGO 750 Series

Related product manuals