nobody wrote on Wednesday, July 05, 2006:
Hi,
I’m going to use FreeRTOS on AT91SAM7X256 ARM uC. I’ve downloaded FreeRTOS v4.0.4 and tried to compile Demo code with WinARM-2006.06.06 (on Windows XP machine) by simply entering the directory and typing “make”. But my compilation fails (probably on linker stage?) with following errors:
f:/winarm/bin/…/lib/gcc/arm-elf/4.1.1/…/…/…/…/arm-elf/lib/interwork\libg.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’
f:/winarm/bin/…/lib/gcc/arm-elf/4.1.1/…/…/…/…/arm-elf/lib/interwork\libg.a(
makebuf.o): In function `__smakebuf’:
makebuf.c:(.text+0x3c): undefined reference to `_fstat_r’
makebuf.c:(.text+0x110): undefined reference to `isatty’
f:/winarm/bin/…/lib/gcc/arm-elf/4.1.1/…/…/…/…/arm-elf/lib/interwork\libg.a(
mallocr.o): In function `_malloc_r’:
mallocr.c:(.text+0x40c): undefined reference to `_sbrk_r’
mallocr.c:(.text+0x4b4): undefined reference to `_sbrk_r’
f:/winarm/bin/…/lib/gcc/arm-elf/4.1.1/…/…/…/…/arm-elf/lib/interwork\libg.a(
stdio.o): In function `__sclose’:
stdio.c:(.text+0x10): undefined reference to `_close_r’
f:/winarm/bin/…/lib/gcc/arm-elf/4.1.1/…/…/…/…/arm-elf/lib/interwork\libg.a(
stdio.o): In function `__sseek’:
stdio.c:(.text+0x3c): undefined reference to `_lseek_r’
f:/winarm/bin/…/lib/gcc/arm-elf/4.1.1/…/…/…/…/arm-elf/lib/interwork\libg.a(
stdio.o): In function `__swrite’:
stdio.c:(.text+0x94): undefined reference to `_lseek_r’
stdio.c:(.text+0xb8): undefined reference to `_write_r’
f:/winarm/bin/…/lib/gcc/arm-elf/4.1.1/…/…/…/…/arm-elf/lib/interwork\libg.a(
stdio.o): In function `__sread’:
stdio.c:(.text+0xe4): undefined reference to `_read_r’
collect2: ld returned 1 exit status
make: *** [rtosdemo.elf] Error 1
Can anyone tell me what can I do to solve this problem? It looks like it this could be the problem of WinARM libraries, not the FreeRTOS code, but I’m not sure (earlier i’ve only written software in assembler and simple C programs for AVR).