Can anyone that has successfully compiled and ran a helloworld.c for the mentioned target provide the correct compile options or anyone having some insight of suggestions on this.
I used several variations but settled on the following without errors but it did not run.
Quote:
“./arm-toolchain/bin/arm-elf-gcc -mthumb -mcpu=arm926ej-s -mfpu=fpa -g -o hello-arm test.c”
|
After putting onto the target I got:
Quote:
GESBC:/home# ./hello-arm
Illegal instruction
GESBC:/home#
|
My tool chain, that I built returns the following configuration:
Quote:
john@DEB1:~$ ./arm-toolchain/bin/arm-elf-gcc -v
Using built-in specs.
Target: arm-elf
Configured with: ../gcc-4.3.3/configure --target=arm-elf --prefix=/tmp/arm-toolchain --enable-interwork --enable-multilib --enable-languages=c,c++ --with-newlib --disable-shared --with-gnu-as --with-gnu-ld
Thread model: single
gcc version 4.3.3 (GCC)
|
Here are some other sundry info:
Quote:
john@DEB1:~$ uname -a
Linux DEB1 2.6.26-2-686 #1 SMP Sun Jun 21 04:57:38 UTC 2009 i686 GNU/Linux.
|