Linux Software Applications On Rsb-4210; Writing Your Own "Hello World!" Application And Executing It On The Rsb-4210 - Advantech RSB-4210 Evaluation Kit User Manual

Evaluation kit, freescale i.mx53 processor -arm cortex a8 architecture
Table of Contents

Advertisement

Figure 3-6 HyperTerminal Settings for Terminal Setup
3.7

Linux Software Applications on RSB-4210

This section will guide you how to write a sample application "Hello World" and
run some of pre-installed applications on RSB-4210 platform.
3.7.1
Writing your own "Hello World!" application and
executing it on the RSB-4210
This section will guide you how to write a sample application "Hello World", you
can refer below steps to do it.
1. Open "Terminal" utility
2. Type #sudo su (Change to "root" authority)
3. Type user password
4. Type #cd Desktop/RSB-4210_Linux_source_code/scripts/
5. Type #. setenv.sh (To configure the developing environment automatically)
6. Type #cd /home/user/Desktop
7. Type #mkdir helloworld (Create your own work directory on the Desktop)
8. Type #cd helloworld (Enter the work directory)
9. Type # gedit helloworld.c (Create a new C source file)
10. Edit the helloworld.c with the following source code:
#include <stdio.h>
void main()
{
printf("Hello World!\n");
}
11.Save the file and exit.
12.Type #$CC -o helloworld helloworld.c (To compile helloworld.c)
65
RSB-4210 Evaluation Kit User Manual

Advertisement

Table of Contents
loading

Table of Contents