Guest
#1543622
Hi Guys, I have just bought a single board computer that has an atmel AT91SAM9260 ARM9 core onboard. Linux is also installed on this core. I am trying to get started, but am having real problems with the cross compiling. I am currently running windows and am using cygwin as my shell. I have downloaded this file from the GNUarm website "bu-2.17_gcc-4.1.1-c-c++_nl-1.14.0_gi-6.5" and installed this. I can compile a simple hello world .c file and transfer over to the SBC, but then I get the error "illegal instruction" when I try to run it. Below is my process carried out... Installed cygwin and GNUarm file above wrote hello world file in text editor and saved as .c using command arm-elf-gcc test.c it converted the .c file into an a.out file transferred binary file to SBC via USB typed command ./a.out and got error "illegal instruction" If anyone could help with this I'd be very grateful, I have spent hours trying to figure this out and have gone nowhere