2015-02-06 07:31 AM
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 advanceDavide
#redirection #printf #fwrite2015-02-06 10:08 AM
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.