EmbDev.net

Forum: ARM programming with GCC/GNU tools lpc2129_adc_stdio compile


Author: Lourens Van der merwe (aptotek-lourens)
Posted on:

Rate this post
0 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.

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 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...
(WinARM->Add-ons and updates).

Martin Thomas

Author: Lourens Van der merwe (aptotek-lourens)
Posted on:

Rate this post
0 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...
> (WinARM->Add-ons and updates).

Thanks Martin, that works great.

Lourens

Author: Jonathan Dumaresq (dumarjo)
Posted on:

Rate this post
0 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...
>> (WinARM->Add-ons and updates).
>
> Thanks Martin, that works great.
>
> Lourens

what you done to remove thoses error ?

Dumarjo

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 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...

Martin Thomas

Author: Jonathan Dumaresq (dumarjo)
Posted on:

Rate this post
0 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...
>
> 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

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.