cancel
Showing results for 
Search instead for 
Did you mean: 

redirection

davide2
Associate
Posted on February 06, 2015 at 16:31

Hi All,

I'm developing an application with STM32F407, keil RTC rtos and keil libraries.

I've implemented the redirection of the printf message as suggested in many examples. It works fine, and I see the application messages in my teraterm console.

Now i'm trying to write to a file in the filesystem using the function ''fwrite'' and ''fputs''.... the message are not stored in the file, but they are flushed to the console.

I'm wondering where I made a mistake...

Could anyone help me?

Thanks in advance

Davide

#redirection #printf #fwrite
1 REPLY 1
Posted on February 06, 2015 at 19:08

Review how your hosting/retargeting routine deal with FILE*

Somehow I think you're going to have to wade deeper into the library code to get the level of integration you want. Things like FatFs avoid this by having there own equivalent functions.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..