«hello world» application, Hello world» application – Rainbow Electronics QIL-A9260-C11 User Manual

Page 12

Advertising
background image

1.2. «Hello world» application

Once you have setup your environment, you can compile the hello_world.c example by
issuing the following command.

arm-linux-gcc -o hello_world hello_world.c

#include <stdio.h>
int main(void)
{

printf("hello world\n");
return 0;

}

Note: --static option can be added to the LDFLAGS in order to link the application

statically.

Now you can download the hello_world program on the QIL-A9260 target.

From your target, you can use for example tftp as it is available in the default busysbox
configuration.

tftp -g -r hello_world « ip_address » (ip_address: host ip)

chmod +x hello_world

Now, you can start the hello_world program by issuing

# ./hello_world
hello world
#

Datasheet GSG-00006-A01

12/34

Advertising