lpc2129_adc_stdio compile

OP #1171728
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.
#1171731
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
#1171733
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

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.