[En-Nut-Discussion] AVR32 build broken

Harald Kipp harald.kipp at egnite.de
Tue Aug 28 10:18:14 CEST 2012

On 27.08.2012 13:33, Thiago A. Corrêa wrote:
> I've built evk1100-intram with qnutconf and it didn't fail.
> uc3a0512_rom.ld also exists in nut\arch\avr32\ldscripts, I thought it
> might have been renamed but it's not the case. Perhaps there is a
> problem with the tools. What do you use to build?


I'm using

avr32-gcc (WinAVR 20100110) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.

so this is nothing new. After replacing

LDFLAGS = $(MCFLAGS) -nostartfiles -Wl,-T$(LDSCRIPT),-Map=$(PROJ).map,--cref,--no-warn-mismatch -L$(LIBDIR)


LDFLAGS = $(MCFLAGS) -nostartfiles -L$(LDPATH) -T$(LDSCRIPT) -Wl,-Map=$(PROJ).map,--cref,--no-warn-mismatch -L$(LIBDIR)

the linker script is found. I have absolutely no idea what is going on and why this stopped working.

Now, after it starts linking I still get an error:

avr32-gcc caltime.o -mpart=uc3a0512 -nostartfiles -L../.././nut/arch/avr32/ldscripts -Tuc3a0512_rom_extram.ld -Wl,-Map=caltime.map,--cref,--no-warn-mismatch -L../../evk1100-extram-avr32-gcc-bld/lib -Wl,--start-group ../../evk1100-extram-avr32-gcc-bld/lib/nutinit.o -lnutpro -lnutgorp -lnutcrt -lnutos -lnutdev -lnutarch  -Wl,--end-group -o caltime.elf
../../evk1100-extram-avr32-gcc-bld/lib\libnutarch.a(pm.o): In function `Avr32InitClockTree':
pm.c:(.text.Avr32InitClockTree+0x78): undefined reference to `pm_wait_for_pll0_locked'
pm.c:(.text.Avr32InitClockTree+0x7c): undefined reference to `pm_cksel'

I'm sure I'm missing something, because this had been working a few months ago.



More information about the En-Nut-Discussion mailing list