NOTE
Floating point support increases the sprintf size considerably, and therefore the define LIBDEF_PRINTF_FLOATING exists. Set LIBDEF_PRINTF_FLOATING if no floating point support is used. Some targets contain special libraries without floating point support.
The IEEE64 floating point implementation only supports printing numbers with up to nine decimal digits. This limitation occurs because the implementation is using unsigned long internally, which cannot hold more digits. Supporting more digits increases the printf size still more and also causes the application to run considerably slower.
I found a place in codewarrior where we can configure which variable types are allowed for printf
here is the pic
after select the int_FP in the print formats option, the printf function started to work fine..
hope it helps
Alfredo´s solution works perfect !! thanks man.
HI
Can you run your application without BDM with ewl_hosted option ?
With my Kinetis KL run without multilink is not possible in "ewl_hosted", only possible with "ewl". But in "ewl" sprintf, printf, scanf don't work.
(I do not understand the "ewl_hosted" mode interest if you can not operate without programmer connexion. The fate of a microcontroller is to live without debug connexion, is not it ?)
thanks
The link is broken because the forum is now running different software to what it was in 2008.
Cut/paste "LIBDEF_PRINTF_FLOATING" into the Search Bar at upper right, read the 9 or so matches, and then update this thread with the best answer to your problem.
Tom