Hi everyone,
I have written a code for a single board computer (PC104). the board has linux as its operating system.
I am having some trouble debugging the code. The way i am doin it now is to insert printf commands at several points in my code. the printf output is sent to a text file. I check the output of the program later on from this text file.
Right now, When executing the code, the PC get stuck and I have to switch off the PC and turn it on again. I open the text file where i sent the printf commands to find it empty.
Is the text file empty because I aborted the system while it was running the c code?
Is there some error log I can access that saved the activities of my code?
Note: I dont have a debugger on my sytem (dgb).
Thanks.