Hi, I want to use printf () to print the formatted string on serial port. I tried with cs-make and -T stm32.ld option and i had the following errors: D:\nagendra\Example7>cs-make arm-none-eabi-gcc -Wl,--gc-sections,-Map=main.elf.map,-cref,-u,Reset_Handler -I . -I lib/inc -L lib -T stm32.ld main.o stm32f10x_it.o lib/libstm32.a --output ma in.elf c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none -eabi/4.2 .1/../../../../arm-none-eabi/lib\libc.a(lib_a-makebuf.o): In function `__smakebu f': makebuf.c:(.text+0xf8): undefined reference to `isatty' c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.2 .1/../../../../arm-none-eabi/lib\libc.a(lib_a-sbrkr.o): In function `_sbrk_r': sbrkr.c:(.text+0x18): undefined reference to `_sbrk' c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.2 .1/../../../../arm-none-eabi/lib\libc.a(lib_a-writer.o): In function `_write_r': writer.c:(.text+0x20): undefined reference to `_write' c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.2 .1/../../../../arm-none-eabi/lib\libc.a(lib_a-closer.o): In function `_close_r': closer.c:(.text+0x18): undefined reference to `_close' c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.2 .1/../../../../arm-none-eabi/lib\libc.a(lib_a-fstatr.o): In function `_fstat_r': fstatr.c:(.text+0x1c): undefined reference to `_fstat' c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.2 .1/../../../../arm-none-eabi/lib\libc.a(lib_a-lseekr.o): In function `_lseek_r': lseekr.c:(.text+0x20): undefined reference to `_lseek' c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.2 .1/../../../../arm-none-eabi/lib\libc.a(lib_a-readr.o): In function `_read_r': readr.c:(.text+0x20): undefined reference to `_read' c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.2 .1/../../../../arm-none-eabi/lib\libc.a(lib_a-abort.o): In function `abort': abort.c:(.text+0xc): undefined reference to `_exit' c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.2 .1/../../../../arm-none-eabi/lib\libc.a(lib_a-signalr.o): In function `_getpid_r ': signalr.c:(.text+0x4): undefined reference to `_getpid' c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.2 .1/../../../../arm-none-eabi/lib\libc.a(lib_a-signalr.o): In function `_kill_r': signalr.c:(.text+0x2c): undefined reference to `_kill' collect2: ld returned 1 exit status cs-make: *** [main.elf] Error 1 to resolve this error what to do? i tried another Ld option -T generic-hosted.ld stm32.ld main.bin file size much greater tham elf file the following file sizes as: Volume in drive D is Data Volume Serial Number is 681B-B60B Directory of D:\nagendra\Example7 03/13/2008 10:38 AM <DIR> . 03/13/2008 10:38 AM <DIR> .. 03/13/2008 10:12 AM <DIR> lib 03/13/2008 10:36 AM 402,653,192 main.bin 03/13/2008 10:15 AM 8,885 main.c 03/13/2008 10:36 AM 152,026 main.elf 03/13/2008 10:36 AM 103,545 main.elf.map 10/08/2007 12:50 AM 2,580 main.h 03/13/2008 10:36 AM 6,128 main.o 03/13/2008 10:36 AM 1,915 makefile 03/13/2008 10:37 AM 104 nagen 10/08/2007 12:50 AM 2,759 readme.txt 02/01/2008 12:18 AM 973 stm32.ld 10/08/2007 12:50 AM 5,570 stm32f10x_conf.h 10/08/2007 12:50 AM 22,695 stm32f10x_it.c 10/08/2007 12:50 AM 3,267 stm32f10x_it.h 03/13/2008 10:36 AM 13,128 stm32f10x_it.o 03/13/2008 10:38 AM 0 test.txt 15 File(s) 402,976,767 bytes 3 Dir(s) 19,790,196,736 bytes free is ther any other option to do? can any one help regarding this problem ? attched stm32.ld Thanks and Regards Nagendra
Attachment:
stm32.ld
Description: Binary data