This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SLOG scanf and printf

I use the SLOG function to do some printf in an ouptut file but how is it possible to do some scanf in another file (input file)?

Parents
  • In µVision2 Debug Commands SLOG is:
    "SLOG > path filename"
    "Creates the file filename as a log file.
    Input and output from the Serial window is written to this file. "

    This is very useful to 'simulate' the printf
    on simulator or evaluation board

    The problem is how to write some values in one file (simulate the printf)
    and read some value in another file(simulate the scanf) by example for dhrystone test.

Reply
  • In µVision2 Debug Commands SLOG is:
    "SLOG > path filename"
    "Creates the file filename as a log file.
    Input and output from the Serial window is written to this file. "

    This is very useful to 'simulate' the printf
    on simulator or evaluation board

    The problem is how to write some values in one file (simulate the printf)
    and read some value in another file(simulate the scanf) by example for dhrystone test.

Children