Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Errors when compiling code in WinARM

Status
Not open for further replies.

kamejoko80

Member level 3
Joined
Apr 7, 2004
Messages
55
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,288
Location
VietNam
Activity points
418
Hi every body ! I interested in this page **broken link removed**
About building MP3 player only use the LPC2106 microcontroller
I've made this hardware and load the .hex file, wowww it had worked ok!
Now, I want to improve the software, by using the WinARM compiler in this page
**broken link removed**
First, I using the origin source code,
while compiling the source code, an error has occur, but I can't fix this problem, who had done with it please give some advances. I'm sorry, my english is rather pour!
 

_sbrk_r

I'm sorry, I've forgot it, here is the output message :

(error part) :

Linking: main.elf
arm-elf-gcc -mcpu=arm7tdmi-s -I. -gdwarf-2 -DROM_RUN -D ARM -O2 -Wall -Wcast-align -Wcast-qual -Wimplicit -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow -Wunused -Wa,-adhlns=crt0.lst -I./efsl -I./efsl/inc -I./efsl/conf -I./mp3dec -I./mp3dec/pub -MD -MP -MF .dep/main.elf.d crt0.o ./mp3dec/real/arm/asmpoly_gcc.o main.o uart.o timer.o VIClowlevel.o pwm.o dac.o led.o debug.o utilities.o lpc.o ./efsl/src/efs.o ./efsl/src/plibc.o ./efsl/src/disc.o ./efsl/src/partition.o ./efsl/src/time.o ./efsl/src/fs.o ./efsl/src/fat.o ./efsl/src/file.o ./efsl/src/dir.o ./efsl/src/ls.o ./efsl/src/mkfs.o ./efsl/src/debug.o ./efsl/src/ioman.o ./efsl/src/ui.o ./efsl/src/extract.o ./efsl/src/interfaces/sd.o ./efsl/src/interfaces/efsl_dbg_printf_arm.o ./efsl/src/interfaces/lpc2000_spi.o ./mp3dec/mp3dec.o ./mp3dec/mp3tabs.o ./mp3dec/real/bitstream.o ./mp3dec/real/buffers.o ./mp3dec/real/dct32.o ./mp3dec/real/dequant.o ./mp3dec/real/dqchan.o ./mp3dec/real/huffman.o ./mp3dec/real/hufftabs.o ./mp3dec/real/imdct.o ./mp3dec/real/scalfact.o ./mp3dec/real/stproc.o ./mp3dec/real/subband.o ./mp3dec/real/trigtabs.o --output main.elf -nostartfiles -Wl,-Map=main.map,--cref -lc -lm -lc -lgcc -TLPC2106-ROM.ld
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libc.a(mallocr.o): In function `_malloc_r':
mallocr.c:(.text+0x424): undefined reference to `_sbrk_r'
mallocr.c:(.text+0x4cc): undefined reference to `_sbrk_r'
c:/winarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib\libc.a(freer.o): In function `_malloc_trim_r':
mallocr.c:(.text+0x48): undefined reference to `_sbrk_r'
mallocr.c:(.text+0x64): undefined reference to `_sbrk_r'
mallocr.c:(.text+0x84): undefined reference to `_sbrk_r'
collect2: ld returned 1 exit status
make.exe: *** [main.elf] Error 1
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top