Hello,
I am testing an automated test run. I am logging the output of the serial debug printf viewer. This is the content of the ini file that will work after closing the uvision GUI: g, main slog > test.log
After executing the application, I can see that the log file gets created but it is empty. The only time that the log file will have its content written is when I close the uvison GUI.
However, what I need is a fully automated test that should not require the manual closing of the uvision GUI before the log file gets its content written.
What I did is to edit the ini file and append the EXIT command as shown below: g, main slog > test.log exit
However, this does not work. I can see that the log file gets created but its empty and the contents were not written into it. What seems to be the problem? Adding a sleep or delay before exit does not solve the problem. What can I do, please suggest some possible solution.
Thanks. Ako
I changed the sequence and this solved the logging issue. Here is my ini file:
slog > test.log G slog off exit
slog > test.log
G
slog off
exit