MAXQ30 debug_fprintf and debug_fclose not working for debug terminal
I have a simple program shown below:
#include <cross_studio_io.h>
void main(void)
{
DEBUG_FILE *trngFile = "TRNG_Data.txt";
int stat = 0;
// Open File stream (Works)
if ( debug_fopen(trngFile, "a+t") == 0 )
debug_printf("File open failed!");
stat = debug_enabled(); // Works
stat = debug_fprintf(trngFile, "test line 1"); // Doesn't work: (stat > 359)
stat = debug_fclose(trngFile); // Doesn't work: (stat = -1)
}
The file is created as expected but writing and closing do not work.
As noted in my comments, debug_fprintf and debug_fclose are not working as expected.
Anyone have similar issues?
Please sign in to leave a comment.
Comments
2 comments