cancel
Showing results for 
Search instead for 
Did you mean: 

Retarget printf() on GCC / IDEaliST?

ccowdery9
Associate III
Posted on October 16, 2009 at 08:52

Retarget printf() on GCC / IDEaliST?

12 REPLIES 12
slawcus
Associate II
Posted on May 17, 2011 at 12:55

Try adding -msoft-float

pramod
Associate II
Posted on May 17, 2011 at 12:55

Hi slawcus,

Tried -msoft-float already, but it does not work :(

It produces error:

...libc.a uses Hardware FP, whereas Hello.elf uses Software FP.

Once again, I feel that Cortex-M3 does not have hardware FP, but the

gcc library is built using hardware FP option. So can't use this

library for Cortex-M3. Question is how / where to get library built

with sofware FP (suitable for Cortex-M3) ?

Regards,

Pramod

pramod
Associate II
Posted on May 17, 2011 at 12:55

Hi,

Thanks to Jeff, (

http://sourceware.org/ml/newlib/2009/msg00073.html

)

I found that I am using wrong library version. I changed it to another

version found under sub-directory thumb/thumb2 and then it works fine!

I did not have to ''build'' any new library. It already had many different

versions, built using different options. Only I was using wrong version.

Thank you all for your help.

Regards,

Pramod