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
  • Note that it is the Simulator's Serial Window that simulates the serial IO - not the SLOG command.
    The SLOG command simly records ("logs") the activity in the Serial Window.

    You can simulate serial input by just typing in the Serial Window.
    To read from a file, you would have to write a uVision Debug Function - see the manual.

    Alternatively, the uVision Simulator can use the PC's COM: port(s) - so you could have another PC application sending the required data to the COM: port?

Reply
  • Note that it is the Simulator's Serial Window that simulates the serial IO - not the SLOG command.
    The SLOG command simly records ("logs") the activity in the Serial Window.

    You can simulate serial input by just typing in the Serial Window.
    To read from a file, you would have to write a uVision Debug Function - see the manual.

    Alternatively, the uVision Simulator can use the PC's COM: port(s) - so you could have another PC application sending the required data to the COM: port?

Children