Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

RE: sprintf with float?

$
0
0

I wondered where my answer to Jeremy was, now saw I replied to his E-Mail, sorry!

Here my reply:

Hello Jeremy,

thank you for your reply.

I’m using ThreadX the code snippet was only an example.

linker script seems to be OK:

/* Stacks are stored in this section. */

      .stack_dummy (NOLOAD):

      {

       . = ALIGN(8);

          __StackLimit = .;

            KEEP(*(.stack*))

            __StackTop = .;

      } > RAM

Before posting the problem I’ve tested a renesas  sample for console “printf”, and that project sprintf + float doesn’t work as well.

Now I’ve created a blinky project with RTOS from the scratch:  now printf + float works!

And then I had an assumption what the trouble maker could be:

initialise_monitor_handles();           //     necessary for printf() debug console output!

After removing initialise_monitor_handles() and all printf -> sprintf() + float works again proper in my application!

May be here is still a small problem in the SSP.

Best regards

Ralph


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>