RE: Problem building an eCos application

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

 



Azhar - An eCos project consists of 3 parts, RedBoot (which you seem to have successfully built), a library to link with applications and your application.

The ecc file you created is used to create the eCos application library. Using either configtool, or ecosconfig one generates this library. This library
is linked to your application. The application library DOES NOT have the RedBoot package included.

Hope this helps.

Keith M Smith
PerkinElmer Inc.


-----Original Message-----
From: az83 [mailto:azhar.ntu@xxxxxxxxx] 
Sent: Monday, January 09, 2012 11:28 PM
To: ecos-discuss@xxxxxxxxxxxxxxxxxxx
Subject:  Problem building an eCos application


Hi,

I have a problem building an eCos application.  Just a bit of background
info:

-I have eCos 3.0 installed in cygwin.
-I'm working on LPC1768 - since the default folder doesn't contain a
hardware template for LPC17xx, I had to download from anoncvs and use the
Olimex LPC1766 template with very little modification.
-set my repository accordingly (C:\cygwin\opt\ecos\ecos-3.0\repository\ecos)
-installed the arm-eabi toolchain when downloading eCos >> Build Tools Path
set as C:\cygwin\opt\ecos\gnutools\arm-eabi\bin.
-[extra info] also have Codesourcery G++ Lite (for ARM CM3) installed in a
folder outside of cygwin

When I tried to build a redboot package for my target, I was able to build
and download it successfully, as the Hyperterminal output printed out the
correct message (LPC1766 since I was using this template).

When I tried building a new eCos application, I was able to generate the
.ecc file, but in order for me to generate the .elf file, I had to run a
Makefile which contained only one main.c file.  I ran into this error when
running make in cygwin:

$ make
cc -I/opt/ecos/ecos-3.0/redboot/ecc_one/redboot_lpc17xx_install/include 
-nostartfiles
-L/opt/ecos/ecos-3.0/redboot/ecc_one/redboot_lpc17xx_install/lib -Ttarget.ld 
main.c   -o main
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld:
skipping incompatible
/opt/ecos/ecos-3.0/redboot/ecc_one/redboot_lpc17xx_install/lib/vectors.o
when searching for vectors.o
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld:
skipping incompatible
/opt/ecos/ecos-3.0/redboot/ecc_one/redboot_lpc17xx_install/lib/vectors.o
when searching for vectors.o
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot
find vectors.o
collect2: ld returned 1 exit status
<builtin>: recipe for target `main' failed
make: *** [main] Error 1

I read from elsewhere that the linker file is wrong in this case, but I
really have no idea where and how to modify my linker file.  I have checked
that C:\cygwin\usr\lib does not exist at all.  Any form of help is greatly
appreciated.

Thank you!
-- 
View this message in context: http://old.nabble.com/Problem-building-an-eCos-application-tp33108389p33108389.html
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com.


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss




[Index of Archives]     [Linux Embedded]     [U-Boot V2]     [Linux Kernel]     [Linux MIPS]     [Linux ARM]     [Linux for the Blind]     [Yosemite]     [ISDN Cause Codes]     [eCos Home]

  Powered by Linux