Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by slacker@Jul 28 2005, 12:37 AM pal,
if you're using >=5.0, then take a look at the zipfs example. it's got some hostfs filesystem stuff. that might be what you're looking for.
other than that, you could also just dump data out your jtag_uart or uart and use 'nios2-terminal' to capture this data, on the pc, like so:
nios2-terminal > <filename>
cheers,
- slacker --- Quote End --- slacker: Thank you firstly. But I want to save some variable in my program to PC hard disk,then I have some touble in how to use the File subsystems. In software handbook : " File subsystems register themselves as mount points within the global HAL file system. Attempts to access files below that mount point are directed to that file subsystem. For example, if a zip filing subsystem is mounted as /mount/zipfs0, a call to fopen() for /mount/zipfs0/myfile is handled by the associated zipfs file subsystem." But what is the mount point? how can I define the mount point? how to use the "fopen","fread" and "fwrite" ?