Setting up Eclipse for Cross Development - NicolasSchuck/EmbeddedLinux_De1-SOC GitHub Wiki
Now we are going to set up Eclipse to Cross Compile executable Software for our embedded Linux System.
- Open a terminal and type 'eclipse'
- Open the eclipse Marketplace and install Eclipse Embedded C/C++
- Create a new Project "C Managed Build -> Executable/Hello World Arm C Project -> Arm Cross GCC
- Setup your toolchain
- compile your "HelloWorld" and push it (via ssh) to your DE1-SoC
- execute the program by going to the location of "HelloWorld" (via terminal) and type
./HelloWorld
- your terminal should print "Hello Arm World!"
Source Code:
#include <stdio.h>
int main(void) {
printf("Hello Arm World!" "\n");
return 0;
}