I am trying to compile a simple C application for a SoloX Cortex-A9 using Eclipse in a Windows Environment.
#include <stdio.h>
int main () {
int ch;
for( ch = 75 ; ch <= 100; ch++ )
{
printf("ASCII value = %d, Character = %c\n", ch , ch );
}
return(0);
}
I am looking for a assistance setting up Eclipse and getting the Toolchain/Command Sorted.
So far I have tried the following with varying degree's of success.
arm-none-eabi-gcc with --specs=nosys.specs to remove some issues.
This compiles, but when executed produces a Segmentation Fault
It was then suggested that the solox (Cortexa9) is a armhf and not an armel so I tried arm-linux-gnueabihf
This also complies but much to my irritation also produces a "Segmentation Fault."
Eclipse Plugins; I have The GNU ARM Eclipse Plug-in is an Eclipse CDT Manged Build Extension for GNU ARM Toolchains like CodeSourcery G++ Lite, GNUARM, WinARM, Yagarto, and supports the development of managed C/C++ applications for the ARM series of processors. Version: 0.5.3.201010141144
Feeling very out of depth and hoping someone can point me in the right direction.
Edit to provide additional information;
"All Options" command is - "-I"D:\SDKC_imx6Sandbox\SDK\Projects\Test_6_1" -I"D:\SDKC_imx6Sandbox\SDK\Projects\Test_6_1/source" -O3 -Wall -Wa,-adhlns="$@.lst" -c -fmessage-length=0 -mcpu=cortex-a9"
The Target is running Linux and I am loading the binary via winscp over Ethernet.