cancel
Showing results for 
Search instead for 
Did you mean: 

compilation issue

nagendrapilladi
Associate II
Posted on March 13, 2008 at 09:12

compilation issue

3 REPLIES 3
nagendrapilladi
Associate II
Posted on May 17, 2011 at 12:26

Hi,

i use codesourcery g++ lite. i used ld - T generic.hosted.ld stm32.ld

i got main.bin file size more in MBs.I want use sprintf ,printf function.

what is the procedure to do ld?

following files size:

Volume in drive D is Data

Volume Serial Number is 681B-B60B

Directory of D:\nagendra\Example7

03/13/2008 10:38 AM .

03/13/2008 10:38 AM ..

03/13/2008 10:12 AM 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 there any solution to resolve size ?

regards

nagendra

lanchon
Associate III
Posted on May 17, 2011 at 12:26

where did you get the linker scripts from?

nagendrapilladi
Associate II
Posted on May 17, 2011 at 12:26

Hi,

I use stm32.ld in stm32fwlib folder.

what to do resolve the size and how to use c printf functions using that examples ? is there any procedure to add more linking and compile options?

can any one help me ?