[En-Nut-Discussion] Problem in MMC MP3 Player wiki example

Harald Kipp harald.kipp at egnite.de
Fri Apr 27 10:35:15 CEST 2012


Hi André,

On 26.04.2012 16:31, André Aureliano wrote:
> I still having problem. Can anyone help me?
> 
> When I try to build the application for AT91SAM7X_EK board appears this
> error:
> 
> C:/ethernut-4.10/nutbld/liblibcontrib.a(subband.o): In function
> 'xmp3_Subband':
> subband.c:(.text+0xac): undefined reference to 'xmp3_PolyphaseStereo'
> subband.c:(.text+0x114): undefined reference to 'xmp3_PolyphaseMono'

I'm not able to reproduce this problem. Can you please be more specific
about the versions you are using and provide the output of the make?

Here is my output, using Nut/OS 4.10.3 and ewebradio 2.3.1:

arm-none-eabi-gcc webradio.o httpserv.o httpcgis.o httpmajs.o xmlserv.o
xmlutils.o config.o favlist.o station.o receiver.o shoutcast
.o userif.o utils.o logmsg.o buttons.o -mcpu=arm7tdmi -nostartfiles
-T../../nut/arch/arm/ldscripts/at91sam7x256_rom.ld -Wl,-Map=webr
adio.map,--cref,--no-warn-mismatch -L../../nutbld-sam7xek/lib
-Wl,--start-group ../../nutbld-sam7xek/lib/nutinit.o ../../nutbld-sam7
xek/lib/asmpoly_gcc.o -lnutcontrib -lnutpro -lnutnet -lnutfs -lnutos
-lnutcrt -lnutgorp -lnutdev -lnutarch  -Wl,--end-group -o webra
dio.elf
arm-none-eabi-objcopy  -O ihex webradio.elf webradio.hex
arm-none-eabi-objcopy  -O binary webradio.elf webradio.bin

C:\ethernut-4.10\nutapp-sam7xek\ewebradio>make clean all
rm -f
rm -f webradio.o httpserv.o httpcgis.o httpmajs.o xmlserv.o xmlutils.o
config.o favlist.o station.o receiver.o shoutcast.o userif.o
utils.o logmsg.o buttons.o
rm -f webradio.hex webradio.bin webradio.elf
rm -f webradio.eep
rm -f webradio.obj
rm -f webradio.map
rm -f webradio.lst httpserv.lst httpcgis.lst httpmajs.lst xmlserv.lst
xmlutils.lst config.lst favlist.lst station.lst receiver.lst s
houtcast.lst userif.lst utils.lst logmsg.lst buttons.lst
rm -f webradio.bak httpserv.bak httpcgis.bak httpmajs.bak xmlserv.bak
xmlutils.bak config.bak favlist.bak station.bak receiver.bak s
houtcast.bak userif.bak utils.bak logmsg.bak buttons.bak
rm -f webradio.i httpserv.i httpcgis.i httpmajs.i xmlserv.i xmlutils.i
config.i favlist.i station.i receiver.i shoutcast.i userif.i
utils.i logmsg.i buttons.i
arm-none-eabi-gcc -c -I../../nutbld-sam7xek/include  -I../../nut/include
 -DAT91SAM7X_EK  -mcpu=arm7tdmi -mthumb-interwork -Os -Wall
 -Wstrict-prototypes -Wa,-a=webradio.lst  -o webradio.o webradio.c
arm-none-eabi-gcc -c -I../../nutbld-sam7xek/include  -I../../nut/include
 -DAT91SAM7X_EK  -mcpu=arm7tdmi -mthumb-interwork -Os -Wall
 -Wstrict-prototypes -Wa,-a=httpserv.lst  -o httpserv.o httpserv.c
arm-none-eabi-gcc -c -I../../nutbld-sam7xek/include  -I../../nut/include
 -DAT91SAM7X_EK  -mcpu=arm7tdmi -mthumb-interwork -Os -Wall
 -Wstrict-prototypes -Wa,-a=httpcgis.lst  -o httpcgis.o httpcgis.c
arm-none-eabi-gcc -c -I../../nutbld-sam7xek/include  -I../../nut/include
 -DAT91SAM7X_EK  -mcpu=arm7tdmi -mthumb-interwork -Os -Wall
 -Wstrict-prototypes -Wa,-a=httpmajs.lst  -o httpmajs.o httpmajs.c
arm-none-eabi-gcc -c -I../../nutbld-sam7xek/include  -I../../nut/include
 -DAT91SAM7X_EK  -mcpu=arm7tdmi -mthumb-interwork -Os -Wall
 -Wstrict-prototypes -Wa,-a=xmlserv.lst  -o xmlserv.o xmlserv.c
arm-none-eabi-gcc -c -I../../nutbld-sam7xek/include  -I../../nut/include
 -DAT91SAM7X_EK  -mcpu=arm7tdmi -mthumb-interwork -Os -Wall
 -Wstrict-prototypes -Wa,-a=xmlutils.lst  -o xmlutils.o xmlutils.c
arm-none-eabi-gcc -c -I../../nutbld-sam7xek/include  -I../../nut/include
 -DAT91SAM7X_EK  -mcpu=arm7tdmi -mthumb-interwork -Os -Wall
 -Wstrict-prototypes -Wa,-a=config.lst  -o config.o config.c
arm-none-eabi-gcc -c -I../../nutbld-sam7xek/include  -I../../nut/include
 -DAT91SAM7X_EK  -mcpu=arm7tdmi -mthumb-interwork -Os -Wall
 -Wstrict-prototypes -Wa,-a=favlist.lst  -o favlist.o favlist.c
arm-none-eabi-gcc -c -I../../nutbld-sam7xek/include  -I../../nut/include
 -DAT91SAM7X_EK  -mcpu=arm7tdmi -mthumb-interwork -Os -Wall
 -Wstrict-prototypes -Wa,-a=station.lst  -o station.o station.c
arm-none-eabi-gcc -c -I../../nutbld-sam7xek/include  -I../../nut/include
 -DAT91SAM7X_EK  -mcpu=arm7tdmi -mthumb-interwork -Os -Wall
 -Wstrict-prototypes -Wa,-a=receiver.lst  -o receiver.o receiver.c
arm-none-eabi-gcc -c -I../../nutbld-sam7xek/include  -I../../nut/include
 -DAT91SAM7X_EK  -mcpu=arm7tdmi -mthumb-interwork -Os -Wall
 -Wstrict-prototypes -Wa,-a=shoutcast.lst  -o shoutcast.o shoutcast.c
arm-none-eabi-gcc -c -I../../nutbld-sam7xek/include  -I../../nut/include
 -DAT91SAM7X_EK  -mcpu=arm7tdmi -mthumb-interwork -Os -Wall
 -Wstrict-prototypes -Wa,-a=userif.lst  -o userif.o userif.c
arm-none-eabi-gcc -c -I../../nutbld-sam7xek/include  -I../../nut/include
 -DAT91SAM7X_EK  -mcpu=arm7tdmi -mthumb-interwork -Os -Wall
 -Wstrict-prototypes -Wa,-a=utils.lst  -o utils.o utils.c
arm-none-eabi-gcc -c -I../../nutbld-sam7xek/include  -I../../nut/include
 -DAT91SAM7X_EK  -mcpu=arm7tdmi -mthumb-interwork -Os -Wall
 -Wstrict-prototypes -Wa,-a=logmsg.lst  -o logmsg.o logmsg.c
arm-none-eabi-gcc -c -I../../nutbld-sam7xek/include  -I../../nut/include
 -DAT91SAM7X_EK  -mcpu=arm7tdmi -mthumb-interwork -Os -Wall
 -Wstrict-prototypes -Wa,-a=buttons.lst  -o buttons.o buttons.c
buttons.c: In function 'ButtonInit':
buttons.c:349:9: warning: variable 'dummy' set but not used
[-Wunused-but-set-variable]
arm-none-eabi-gcc webradio.o httpserv.o httpcgis.o httpmajs.o xmlserv.o
xmlutils.o config.o favlist.o station.o receiver.o shoutcast
.o userif.o utils.o logmsg.o buttons.o -mcpu=arm7tdmi -nostartfiles
-T../../nut/arch/arm/ldscripts/at91sam7x256_rom.ld -Wl,-Map=webr
adio.map,--cref,--no-warn-mismatch -L../../nutbld-sam7xek/lib
-Wl,--start-group ../../nutbld-sam7xek/lib/nutinit.o ../../nutbld-sam7
xek/lib/asmpoly_gcc.o -lnutcontrib -lnutpro -lnutnet -lnutfs -lnutos
-lnutcrt -lnutgorp -lnutdev -lnutarch  -Wl,--end-group -o webra
dio.elf
arm-none-eabi-objcopy  -O ihex webradio.elf webradio.hex
arm-none-eabi-objcopy  -O binary webradio.elf webradio.bin

Note also, that the SAM7X does not have sufficient RAM for a SHOUTcast
radio. It works in general, but is somewhat limited to low bitrate streams.

Regards,

Harald





More information about the En-Nut-Discussion mailing list