[En-Nut-Discussion] Where are pm_cksel and pm_wait_for_pll0_locked

Harald Kipp harald.kipp at egnite.de
Mon Oct 8 14:46:33 CEST 2012


Hi Thiago,

We are probably lost without your help.

On 07.10.2012 23:40, Thiago A. Corrêa wrote:
> On Sun, Oct 7, 2012 at 2:54 PM, Harald Kipp <harald.kipp at egnite.de> wrote:
>> On 01.10.2012 09:33, Harald Kipp wrote:
>>> Avr32InitClockTree references pm_cksel and pm_wait_for_pll0_locked.
>>>
>>> At least pm_cksel() had been available in pm.c and then was removed in
>>> r4036.
>>
>> This is still broken. Any solution?
>>
> 
> It works for me, which board conf are you building?

I don't think it's related to a specific setup (see log below). The
question is, that these two function are referenced, but not defined.
One of them, pm_cksel(), had been available since r4036, where it was
removed:

http://ethernut.svn.sourceforge.net/viewvc/ethernut/trunk/nut/arch/avr32/dev/pm.c?r1=3071&r2=4036

Still referenced at lines 309 and 312:

http://ethernut.svn.sourceforge.net/viewvc/ethernut/trunk/nut/arch/avr32/dev/pm_uc3a.c?revision=4268&view=markup

Regards,

Harald


------------------------------------------------------------------------
Target : evk1100-extram-avr32-gcc-app
Command: SET
PATH=e:\ethernut\nut-trunk\nut\tools\win32;E:\AVRToolchain\bin;e:\apps\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;&make
clean all install
Error  : 2
------------------------------------------------------------------------
jtagtest.c:88: warning: unused variable 'inbuf'
jtagtest.c:87: warning: unused variable 'jtag'
avr32-gcc jtagtest.o -mpart=uc3a0512 -nostartfiles
-L../.././nut/arch/avr32/ldscripts
-Wl,-Tuc3a0512_rom.ld,-Map=jtagtest.map,--cref,--no-warn-mismatch
-L../../evk1100-extram-avr32-gcc-bld/lib -Wl,--start-group
../../evk1100-extram-avr32-gcc-bld/lib/nutinit.o -lnutos -lnutarch
-lnutdev -lnutarch -lnutcrt   -Wl,--end-group -o jtagtest.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'
collect2: ld returned 1 exit status
make[1]: *** [jtagtest.elf] Error 1
make[1]: Leaving directory
`E:/ethernut/ethernut-5.0.5/evk1100-extram-avr32-gcc-app/jtagtest'
make: *** [clean] Error 2


------------------------------------------------------------------------
Target : evk1100-extram-avr32-gccdbg-app
Command: SET
PATH=e:\ethernut\nut-trunk\nut\tools\win32;E:\AVRToolchain\bin;e:\apps\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;&make
clean all install
Error  : 2
------------------------------------------------------------------------
jtagtest.c:88: warning: unused variable 'inbuf'
jtagtest.c:87: warning: unused variable 'jtag'
avr32-gcc jtagtest.o -mpart=uc3a0512 -nostartfiles
-L../.././nut/arch/avr32/ldscripts
-Wl,-Tuc3a0512_rom.ld,-Map=jtagtest.map,--cref,--no-warn-mismatch
-L../../evk1100-extram-avr32-gccdbg-bld/lib -Wl,--start-group
../../evk1100-extram-avr32-gccdbg-bld/lib/nutinit.o -lnutos -lnutarch
-lnutdev -lnutarch -lnutcrt   -Wl,--end-group -o jtagtest.elf
../../evk1100-extram-avr32-gccdbg-bld/lib\libnutarch.a(pm.o): In
function `Avr32InitClockTree':
E:\ethernut\ethernut-5.0.5\evk1100-extram-avr32-gccdbg-bld\arch/../.././nut/arch/avr32/dev/pm_uc3a.c:337:
undefined reference to `pm_wait_for_pll0_locked'
E:\ethernut\ethernut-5.0.5\evk1100-extram-avr32-gccdbg-bld\arch/../.././nut/arch/avr32/dev/pm_uc3a.c:337:
undefined reference to `pm_cksel'
collect2: ld returned 1 exit status
make[1]: *** [jtagtest.elf] Error 1
make[1]: Leaving directory
`E:/ethernut/ethernut-5.0.5/evk1100-extram-avr32-gccdbg-app/jtagtest'
make: *** [clean] Error 2


------------------------------------------------------------------------
Target : evk1100-intram-avr32-gcc-app
Command: SET
PATH=e:\ethernut\nut-trunk\nut\tools\win32;E:\AVRToolchain\bin;e:\apps\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;&make
clean all install
Error  : 2
------------------------------------------------------------------------
jtagtest.c:88: warning: unused variable 'inbuf'
jtagtest.c:87: warning: unused variable 'jtag'
avr32-gcc jtagtest.o -mpart=uc3a0512 -nostartfiles
-L../.././nut/arch/avr32/ldscripts
-Wl,-Tuc3a0512_rom.ld,-Map=jtagtest.map,--cref,--no-warn-mismatch
-L../../evk1100-intram-avr32-gcc-bld/lib -Wl,--start-group
../../evk1100-intram-avr32-gcc-bld/lib/nutinit.o -lnutos -lnutarch
-lnutdev -lnutarch -lnutcrt   -Wl,--end-group -o jtagtest.elf
../../evk1100-intram-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'
collect2: ld returned 1 exit status
make[1]: *** [jtagtest.elf] Error 1
make[1]: Leaving directory
`E:/ethernut/ethernut-5.0.5/evk1100-intram-avr32-gcc-app/jtagtest'
make: *** [clean] Error 2


------------------------------------------------------------------------
Target : evk1100-intram-avr32-gccdbg-app
Command: SET
PATH=e:\ethernut\nut-trunk\nut\tools\win32;E:\AVRToolchain\bin;e:\apps\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;&make
clean all install
Error  : 2
------------------------------------------------------------------------
jtagtest.c:88: warning: unused variable 'inbuf'
jtagtest.c:87: warning: unused variable 'jtag'
avr32-gcc jtagtest.o -mpart=uc3a0512 -nostartfiles
-L../.././nut/arch/avr32/ldscripts
-Wl,-Tuc3a0512_rom.ld,-Map=jtagtest.map,--cref,--no-warn-mismatch
-L../../evk1100-intram-avr32-gccdbg-bld/lib -Wl,--start-group
../../evk1100-intram-avr32-gccdbg-bld/lib/nutinit.o -lnutos -lnutarch
-lnutdev -lnutarch -lnutcrt   -Wl,--end-group -o jtagtest.elf
../../evk1100-intram-avr32-gccdbg-bld/lib\libnutarch.a(pm.o): In
function `Avr32InitClockTree':
E:\ethernut\ethernut-5.0.5\evk1100-intram-avr32-gccdbg-bld\arch/../.././nut/arch/avr32/dev/pm_uc3a.c:337:
undefined reference to `pm_wait_for_pll0_locked'
E:\ethernut\ethernut-5.0.5\evk1100-intram-avr32-gccdbg-bld\arch/../.././nut/arch/avr32/dev/pm_uc3a.c:337:
undefined reference to `pm_cksel'
collect2: ld returned 1 exit status
make[1]: *** [jtagtest.elf] Error 1
make[1]: Leaving directory
`E:/ethernut/ethernut-5.0.5/evk1100-intram-avr32-gccdbg-app/jtagtest'
make: *** [clean] Error 2


------------------------------------------------------------------------
Target : evk1101-avr32-gcc-app
Command: SET
PATH=e:\ethernut\nut-trunk\nut\tools\win32;E:\AVRToolchain\bin;e:\apps\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;&make
clean all install
Error  : 2
------------------------------------------------------------------------
jtagtest.c:88: warning: unused variable 'inbuf'
jtagtest.c:87: warning: unused variable 'jtag'
avr32-gcc jtagtest.o -mpart=uc3b0256 -nostartfiles
-L../.././nut/arch/avr32/ldscripts
-Wl,-Tuc3b0256_rom.ld,-Map=jtagtest.map,--cref,--no-warn-mismatch
-L../../evk1101-avr32-gcc-bld/lib -Wl,--start-group
../../evk1101-avr32-gcc-bld/lib/nutinit.o -lnutos -lnutarch -lnutdev
-lnutarch -lnutcrt   -Wl,--end-group -o jtagtest.elf
../../evk1101-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'
collect2: ld returned 1 exit status
make[1]: *** [jtagtest.elf] Error 1
make[1]: Leaving directory
`E:/ethernut/ethernut-5.0.5/evk1101-avr32-gcc-app/jtagtest'
make: *** [clean] Error 2


------------------------------------------------------------------------
Target : evk1101-avr32-gccdbg-app
Command: SET
PATH=e:\ethernut\nut-trunk\nut\tools\win32;E:\AVRToolchain\bin;e:\apps\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;&make
clean all install
Error  : 2
------------------------------------------------------------------------
jtagtest.c:88: warning: unused variable 'inbuf'
jtagtest.c:87: warning: unused variable 'jtag'
avr32-gcc jtagtest.o -mpart=uc3b0256 -nostartfiles
-L../.././nut/arch/avr32/ldscripts
-Wl,-Tuc3b0256_rom.ld,-Map=jtagtest.map,--cref,--no-warn-mismatch
-L../../evk1101-avr32-gccdbg-bld/lib -Wl,--start-group
../../evk1101-avr32-gccdbg-bld/lib/nutinit.o -lnutos -lnutarch -lnutdev
-lnutarch -lnutcrt   -Wl,--end-group -o jtagtest.elf
../../evk1101-avr32-gccdbg-bld/lib\libnutarch.a(pm.o): In function
`Avr32InitClockTree':
E:\ethernut\ethernut-5.0.5\evk1101-avr32-gccdbg-bld\arch/../.././nut/arch/avr32/dev/pm_uc3a.c:337:
undefined reference to `pm_wait_for_pll0_locked'
E:\ethernut\ethernut-5.0.5\evk1101-avr32-gccdbg-bld\arch/../.././nut/arch/avr32/dev/pm_uc3a.c:337:
undefined reference to `pm_cksel'
collect2: ld returned 1 exit status
make[1]: *** [jtagtest.elf] Error 1
make[1]: Leaving directory
`E:/ethernut/ethernut-5.0.5/evk1101-avr32-gccdbg-app/jtagtest'
make: *** [clean] Error 2


------------------------------------------------------------------------
Target : evk1104-extram-avr32-gcc-app
Command: SET
PATH=e:\ethernut\nut-trunk\nut\tools\win32;E:\AVRToolchain\bin;e:\apps\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;&make
clean all install
Error  : 2
------------------------------------------------------------------------
jtagtest.c:88: warning: unused variable 'inbuf'
jtagtest.c:87: warning: unused variable 'jtag'
avr32-gcc jtagtest.o -mpart=uc3a3256 -nostartfiles
-L../.././nut/arch/avr32/ldscripts
-Wl,-Tuc3a3256_rom_extram.ld,-Map=jtagtest.map,--cref,--no-warn-mismatch
-L../../evk1104-extram-avr32-gcc-bld/lib -Wl,--start-group
../../evk1104-extram-avr32-gcc-bld/lib/nutinit.o -lnutos -lnutarch
-lnutdev -lnutarch -lnutcrt   -Wl,--end-group -o jtagtest.elf
../../evk1104-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'
collect2: ld returned 1 exit status
make[1]: *** [jtagtest.elf] Error 1
make[1]: Leaving directory
`E:/ethernut/ethernut-5.0.5/evk1104-extram-avr32-gcc-app/jtagtest'
make: *** [clean] Error 2


------------------------------------------------------------------------
Target : evk1104-extram-avr32-gccdbg-app
Command: SET
PATH=e:\ethernut\nut-trunk\nut\tools\win32;E:\AVRToolchain\bin;e:\apps\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;&make
clean all install
Error  : 2
------------------------------------------------------------------------
jtagtest.c:88: warning: unused variable 'inbuf'
jtagtest.c:87: warning: unused variable 'jtag'
avr32-gcc jtagtest.o -mpart=uc3a3256 -nostartfiles
-L../.././nut/arch/avr32/ldscripts
-Wl,-Tuc3a3256_rom_extram.ld,-Map=jtagtest.map,--cref,--no-warn-mismatch
-L../../evk1104-extram-avr32-gccdbg-bld/lib -Wl,--start-group
../../evk1104-extram-avr32-gccdbg-bld/lib/nutinit.o -lnutos -lnutarch
-lnutdev -lnutarch -lnutcrt   -Wl,--end-group -o jtagtest.elf
../../evk1104-extram-avr32-gccdbg-bld/lib\libnutarch.a(pm.o): In
function `Avr32InitClockTree':
E:\ethernut\ethernut-5.0.5\evk1104-extram-avr32-gccdbg-bld\arch/../.././nut/arch/avr32/dev/pm_uc3a.c:337:
undefined reference to `pm_wait_for_pll0_locked'
E:\ethernut\ethernut-5.0.5\evk1104-extram-avr32-gccdbg-bld\arch/../.././nut/arch/avr32/dev/pm_uc3a.c:337:
undefined reference to `pm_cksel'
collect2: ld returned 1 exit status
make[1]: *** [jtagtest.elf] Error 1
make[1]: Leaving directory
`E:/ethernut/ethernut-5.0.5/evk1104-extram-avr32-gccdbg-app/jtagtest'
make: *** [clean] Error 2


------------------------------------------------------------------------
Target : evk1104-intram-avr32-gcc-app
Command: SET
PATH=e:\ethernut\nut-trunk\nut\tools\win32;E:\AVRToolchain\bin;e:\apps\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;&make
clean all install
Error  : 2
------------------------------------------------------------------------
jtagtest.c:88: warning: unused variable 'inbuf'
jtagtest.c:87: warning: unused variable 'jtag'
avr32-gcc jtagtest.o -mpart=uc3a3256 -nostartfiles
-L../.././nut/arch/avr32/ldscripts
-Wl,-Tuc3a3256_rom.ld,-Map=jtagtest.map,--cref,--no-warn-mismatch
-L../../evk1104-intram-avr32-gcc-bld/lib -Wl,--start-group
../../evk1104-intram-avr32-gcc-bld/lib/nutinit.o -lnutos -lnutarch
-lnutdev -lnutarch -lnutcrt   -Wl,--end-group -o jtagtest.elf
../../evk1104-intram-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'
collect2: ld returned 1 exit status
make[1]: *** [jtagtest.elf] Error 1
make[1]: Leaving directory
`E:/ethernut/ethernut-5.0.5/evk1104-intram-avr32-gcc-app/jtagtest'
make: *** [clean] Error 2






More information about the En-Nut-Discussion mailing list