Re: ARM7TDMI problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 11, 2011 at 2:55 PM, Pawel Sikora <pluto@xxxxxxxx> wrote:
> On Tuesday 11 of October 2011 14:35:30 Hadi Aminzadeh wrote:
>> Hi Dear,
>>
>> I have a LPC2478 arm processor and want to use gcc to cross compile my
>> code in x86 for LPC2478
>> I use arm-linux-gnueabi-gcc to do that but (I think) the output of gcc
>> is an application that can be run in arm ported linux kernel but I
>> need Intel HEX-like format that can be programmed to micro controller
>> (I haven't any OS)
>> I haven't any idea what to do or what keyword I must search.
>
> you basically need a proper linker script for small embedded device.
> please, see an example at http://www.dreamislife.com/arm/ -> lpc2106_gcc.zip
> and search arm groups for similar one tuned for LPC2478...
>
>

Thanks for your replay
I find a linker script for my device (that tested with my board) and
used gnuarm pre-compiled binary and eclipse to compile my tested
simple LED flasher program. but no success :-(
you can see the output of eclipse. have any idea?

make all
Building file: ../main.c
Invoking: GCC C Compiler
/home/noBackup/arm/gnuarm-4.0.2/bin/arm-elf-gcc -O3 -g -Wall -c
-fmessage-length=0 -mcpu=arm7tdmi-s -MMD -MP -MF"main.d" -MT"main.d"
-o"main.o" "../main.c"
Finished building: ../main.c

Building target: lpc2478
Invoking: GCC C Linker
/home/noBackup/arm/gnuarm-4.0.2/bin/arm-elf-gcc -mcpu=arm7tdmi-s
-nostartfiles -T /home/hadi/workspace/lpc2478/LPC2478.ld -o"lpc2478"
./main.o
Finished building target: lpc2478

make --no-print-directory post-build
/home/noBackup/arm/gnuarm-4.0.2/bin/arm-elf-objcopy --output-target
ihex lpc2478 lpc2478.hex


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux