EmbDev.net

Forum: ARM programming with GCC/GNU tools lpc2129_adc_stdio compile


von Lourens V. (aptotek-lourens)


Rate this post
useful
not useful
Hello all. I have installed Winarm and Eclipse and have been working
through the Winarm\examples on my LPC-2138-MT board from Olimex. I am
using Winarm 20060606 and the newest Eclipse/CDT/OpedOCD/Wiggler. The
following examples worked fine:
LPC2106 and LPC2129 ARM7 GPIO example
LPC2106 and LPC2129 ARM7 GPIO and timer interrupt example
LPC2106 ARM7 UART example
LPC2106, LPC2129 and LPC2138 ARM7 interrupt-driven UART

With "lpc2129_adc_stdio" I have run into problems. I am using the
example as provided in the Winarm download. When I try to perform a
"make clean" from within Eclipse I get the output listed at the end of
this mail. I think that I need to add a path to some library files, but
do not know what to include here as I have not used any of the libraries
yet. I have searched the project files and Winarm documentation files
but have not found any clues.

Any help would be greatly appreciated

Lourens van der Merwe


make -k all

-------- begin --------
arm-elf-gcc (GCC) 4.1.1 (WinARM)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.


Assembling (ARM-only): crt0.S
arm-elf-gcc -c -mcpu=arm7tdmi-s -mthumb-interwork -I. -x
assembler-with-cpp -DROM_RUN -Wa,-adhlns=crt0.lst,-gstabs crt0.S -o
crt0.o

Compiling C: ADC.c
arm-elf-gcc -c -mthumb -mcpu=arm7tdmi-s -mthumb-interwork -I. -gstabs
-DROM_RUN  -Os -Wall -Wcast-align -Wcast-qual -Wimplicit
-Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow
-Wunused -Wa,-adhlns=ADC.lst   -MD -MP -MF .dep/ADC.o.d
-Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes
-Wnested-externs  -std=gnu99 ADC.c -o ADC.o
C:\DOCUME~1\Lourens\LOCALS~1\Temp/ccUFaaaa.s: Assembler messages:
C:\DOCUME~1\Lourens\LOCALS~1\Temp/ccUFaaaa.s:406: Error: can't resolve
`main' {.text section} - `main' {.text section}
make: *** [ADC.o] Error 1

Compiling C: syscalls.c
arm-elf-gcc -c -mthumb -mcpu=arm7tdmi-s -mthumb-interwork -I. -gstabs
-DROM_RUN  -Os -Wall -Wcast-align -Wcast-qual -Wimplicit
-Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow
-Wunused -Wa,-adhlns=syscalls.lst   -MD -MP -MF .dep/syscalls.o.d
-Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes
-Wnested-externs  -std=gnu99 syscalls.c -o syscalls.o
C:\DOCUME~1\Lourens\LOCALS~1\Temp/ccKGaaaa.s: Assembler messages:
C:\DOCUME~1\Lourens\LOCALS~1\Temp/ccKGaaaa.s:284: Error: can't resolve
`_sbrk_r' {.text section} - `_sbrk_r' {.text section}
C:\DOCUME~1\Lourens\LOCALS~1\Temp/ccKGaaaa.s:337: Error: can't resolve
`_write_r' {.text section} - `_write_r' {.text section}
C:\DOCUME~1\Lourens\LOCALS~1\Temp/ccKGaaaa.s:406: Error: can't resolve
`_read_r' {.text section} - `_read_r' {.text section}
make: *** [syscalls.o] Error 1

Compiling C: uart.c
arm-elf-gcc -c -mthumb -mcpu=arm7tdmi-s -mthumb-interwork -I. -gstabs
-DROM_RUN  -Os -Wall -Wcast-align -Wcast-qual -Wimplicit
-Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow
-Wunused -Wa,-adhlns=uart.lst   -MD -MP -MF .dep/uart.o.d
-Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes
-Wnested-externs  -std=gnu99 uart.c -o uart.o
C:\DOCUME~1\Lourens\LOCALS~1\Temp/ccgnaaaa.s: Assembler messages:
C:\DOCUME~1\Lourens\LOCALS~1\Temp/ccgnaaaa.s:211: Error: can't resolve
`uart0Puts' {.text section} - `uart0Puts' {.text section}
make: *** [uart.o] Error 1
Errors: none
-------- end --------

make: Target `all' not remade because of errors.

von Martin Thomas (Guest)


Rate this post
useful
not useful
Lourens van der Merwe wrote:
> ...
> With "lpc2129_adc_stdio" I have run into problems.

I have just uploaded an updated version of the example. Please give it a
try.
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/index.html
(WinARM->Add-ons and updates).

Martin Thomas

von Lourens V. (aptotek-lourens)


Rate this post
useful
not useful
>> Lourens van der Merwe wrote:
>> ...
>> With "lpc2129_adc_stdio" I have run into problems.

> Martin Thomas wrote:
> I have just uploaded an updated version of the example. Please give it a
> try.
> http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/index.html
> (WinARM->Add-ons and updates).

Thanks Martin, that works great.

Lourens

von Jonathan D. (dumarjo)


Rate this post
useful
not useful
Lourens Van der merwe wrote:
>>> Lourens van der Merwe wrote:
>>> ...
>>> With "lpc2129_adc_stdio" I have run into problems.
>
>> Martin Thomas wrote:
>> I have just uploaded an updated version of the example. Please give it a
>> try.
>> http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/index.html
>> (WinARM->Add-ons and updates).
>
> Thanks Martin, that works great.
>
> Lourens

what you done to remove thoses error ?

Dumarjo

von Martin Thomas (Guest)


Rate this post
useful
not useful
Jonathan Dumarjo wrote:
> what you done to remove thoses error ?

I do not remember. But the old version is still on the server. You can
"diff" yourself. URL of the old version:
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/lpc_2129_adc_stdio_20050514c.zip

Martin Thomas

von Jonathan D. (dumarjo)


Rate this post
useful
not useful
Martin Thomas wrote:
> Jonathan Dumarjo wrote:
>> what you done to remove thoses error ?
>
> I do not remember. But the old version is still on the server. You can
> "diff" yourself. URL of the old version:
> 
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/lpc_2129_adc_stdio_20050514c.zip
>
> Martin Thomas

I found that if i put all my code in srcarm, i don't have the problem .
I only have the problem if i put some Csource file in the src and some
in the srcarm.

Dumarjo

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.