This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
ROM lib on Triscend A7 compilation
- From: Fabrizio Sebastiani <fsnergalists at inwind dot it>
- To: ecos-discuss at sources dot redhat dot com
- Date: Mon, 29 Apr 2002 16:53:46 +0200
- Subject: [ECOS] ROM lib on Triscend A7 compilation
- Organization: Nergal srl
I had some problems with the "eCos 1.3.1 for Windows" configuration tool
when compiling the cygmon library.
I previously added the Triscend a7eb.epk package to ecos.db using the
administration tool.
This package is provided by Triscend and I followed step by step the pdf
guide "Triscend_a7hal_users_guide.pdf"/"building the cygmon ROM".
After upgrading the two tools Configtool.exe and ecosconfig.exe
(as described in "Updated configuration tools for Windows" from
http://sources.redhat.com/ecos/anoncvs.html),
I tried to build the ROM lib but I got the following unresolved reference:
arm-elf-gcc -mcpu=arm7tdmi -g -nostdlib -Wl,--gc-sections -Wl,-static
-L/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/Triscend/examples/eCos/cygmon_install/lib
-Ttarget.ld -o
/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/Triscend/examples/eCos/cygmon_install/bin/cygmon.elf
misc/ecos_bsp.o misc/ecos_dummy.o misc/cpu-mon.o misc/monitor.o
misc/monitor_cmd.o misc/ledit.o misc/breakpoints.o misc/bplist-dynamic.o
misc/utils.o misc/generic_fmt32.o misc/generic_mem.o
misc/bsp/common/bsp.o misc/bsp/common/bsp_if.o
misc/bsp/common/shared-data.o misc/bsp/common/sysinfo.o
misc/bsp/common/console-io.o misc/bsp/common/debug-io.o
misc/bsp/common/sprintf.o misc/bsp/common/syscall.o
misc/bsp/common/printf.o misc/bsp/common/vprintf.o
misc/bsp/common/breakpoint.o misc/bsp/common/singlestep.o
misc/bsp/common/generic-mem.o misc/bsp/common/bsp_cache.o
misc/bsp/common/gdb-cpu.o misc/bsp/common/hex-utils.o
/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/Triscend/examples/eCos/cygmon_install/lib/libtarget.a(hal_arm_a7eb_icu.o):
In function `a7hal_icu_init':
/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/hal/arm/a7eb/v1_0_0/src/icu.c:81:
undefined reference to `__vectors_end'
collect2: ld returned 1 exit status
make[1]: ***
[/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/Triscend/examples/eCos/cygmon_install/bin/cygmon.elf]
Error 1
make[1]: Leaving directory
`/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/Triscend/examples/eCos/cygmon_build/cygmon/v1_3_1'
make: *** [build] Error 2
make: Leaving directory
`/ecos-c/PROGRA~1/REDHAT~1/eCos/packages/Triscend/examples/eCos/cygmon_build'
I changed the definition of "__vectorend" to "__vectors_end" in file
C:\Program
Files\RedHat\eCos\packages\hal\arm\a7eb\v1_0_0\include\hal_platform_setup.h
and now compilation works.
Is it really correct? Has anybody already encountered the same?
Maybe some other clean solution?
thanks for attention :-)
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss