AAlas3
Occasional Contributor
6 years agoHost File System not working
Hey,
I built a simple Qsys system with Nios inside it and I would like to write and read from file in host machine, so I wrote the following:
#include "stdio.h"
#include "alt_sys_init.c"
int main()
{
FILE* ptr = fopen("Test.txt","w");
fprintf(ptr,"Helloooooo");
fclose(ptr);
return 0;
}
when I run this in debug mode, ptr is NULL, I checked the Host altera_hostfs but still not working
Help Please