2 compiling on linux, 3 compiling with lemonide, 4 uploading and executing an application via ftp – Solvline Eddy DK Ver 2.20 User Manual

Page 35: 2 compiling on linux -5, 3 compiling with lemonide -5, Compiling on linux, Compiling with lemonide

Advertising
background image

Chapter4. Compiling Application

C:\eddy_DK_2xx[\src/Eddy_APPs> ls

Hello_world

SB_APIs def.c eddy kt.c pinetd portview.o tcp_client.c

tcp_client tcp_multiplex.o . . .

C:\eddy_DK_2xx[\src/Eddy_APPs> make hello_world

/opt/lemonix/cdt/bin/arm-linux-gcc -O2 -g -Wall -Wno-nonnull -c -o Hello_World.o Hello_World.c

/opt/lemonix/cdt/bin/arm-linux-gcc -L/opt/lemonix/cdt/lib -L/opt/lemonix/cdt/bin Hello_World.o -o Hello_World

C:\eddy_DK_2xx[\src/Eddy_APPs>

4.3.2

Compiling on Linux

To compile a source file on Linux environment, type in “make” command in directory where Makefile is located.

As shown below, if successfully compiled, execution file named Hello_World will be created. Of course, as this file

was cross-compiled, it can not run on Linux environment. Upload this file to Eddy with a FTP to execute this file on

Eddy, (Files uploaded with FTPs are not permanently saved on Eddy.). This will be further explained on next

chapter, Chpater 5 Creating Firmware.

[shlee@localhost Eddy_APPs]$make

/opt/lemonix/cdt/bin/arm-linux-gcc -O2 -g -Wall -Wno-nonnull -c -o Hello_World.o Hello_World.c

/opt/lemonix/cdt/bin/arm-linux-gcc -L/opt/lemonix/cdt/lib -L/opt/lemonix/cdt/bin Hello_World.o -o Hello_World

[shlee@localhost Eddy_APPs]$ ls

Hello_World*

SB_APIs/ def.c* eddy* kt.c pinetd* portview.o server*

tcp_client* tcp_multiplex.o tcps* upgrade* . . .

4.3.3

Compiling with LemonIDE

LemonIDE is an IDE(Integrated Development Environment) based on Eclipse platform and provides an

intuitive GUI interface. LemonIDE can be used in both Windows and Linux environments. Source coding,

compile, remote debugging and creating a firmware image can all be carried out with LemonIDE. Refer to

“LemonIDE_User_Guide” for detailed information on LemonIDE.

4.4 Uploading and executing an application via FTP

In order to execute user's application on the Eddy, you can create a firmware and write it on the Eddy’s flash

memory. This is not a good idea for the frequent debugging purpose since it's a time consuming process. Therefore,

during the development process, it is better to simply upload your application to the RAM file system through FTP

Server. The uploaded file will run directly on the module, making it a simple and quick solution for the frequent

4-5

Advertising