--- Quote Start ---
I recommend becoming familar with and trying out this example:
http://www.alterawiki.com/wiki/host_file_system If that example fails the next logical step would be to have the software attempt to write a file to the file system and then searching the host for that file (so make it a very unique name).
--- Quote End ---
I have the same problem but I'm using a Cyclone 3c25 FPGA and I'm not using any CFI , only on-chip memory. I've pasted the txt file I want to communicate via jtag uart with in my project folder but it's till doesnt work.
Here's an example of the code:
char *msg = “hello world”;
FILE *fp;
fp = fopen (“/mnt/host/test.txt”, “w”);
if (fp)
{
fprintf(fp, “%s”,msg);
fclose (fp);
}
But it gives me errors such as:
Compiling topavalon.c...
../topavalon.c: In function `main':
../topavalon.c:33: error: stray '\147' in program
../topavalon.c:33: error: `hello' undeclared (first use in this function)
../topavalon.c:33: error: (Each undeclared identifier is reported only once
../topavalon.c:33: error: for each function it appears in.)
../topavalon.c:33: error: syntax error before "world"
../topavalon.c:33: error: stray '\148' in program
../topavalon.c:35: error: stray '\147' in program
../topavalon.c:35: error: syntax error before '/' token
../topavalon.c:35: error: stray '\148' in program
../topavalon.c:35: error: stray '\147' in program
../topavalon.c:35: error: stray '\148' in program
../topavalon.c:38: error: stray '\147' in program
../topavalon.c:38: error: syntax error before '%' token
../topavalon.c:38: error: stray '\148' in program
../topavalon.c:73: warning: implicit declaration of function `floor'
../topavalon.c:33: warning: unused variable `msg'
make: *** [obj/topavalon.o] Error 1
Build completed in 10.312 seconds
The software component (mount point) was added as mnt/host, so what could be the problem?
Please help...Thanks