Forum Discussion
Altera_Forum
Honored Contributor
22 years agoHOL filesystem does not seem to work.
Hi I have tried to follow the exsample in the tutorial how to use a HOL filesystem(the one where you include your filesystem as a ZIP file). my code: # include <stdio.h> int main() ...
Altera_Forum
Honored Contributor
22 years agoHi GreatWhite,
Your code looks okay (you can check the web server example design for an example of the code used to access the file system, http.c in http_find_file() and http_send_file_chunk(), but again, your code looks OK). The problem is that the file system won't be found unless it is properly programmed into flash... the 'mount point' is defined OK, and points off into flash memory (to the device & offset you specified in the ROZIPFS GUI), but unless that memory is programmed there will be no valid file system in place showing the various files present, etc. If you write back with what sorts of problems you're having with the flash programmer I'll try to provide some insight, otherwise I'd reccomend checking out the flash programmer literature and giving it a try -- the flash programmer GUI in Nios II IDE will program flash with your filesystem automatically, assuming that you compiled your project with the zip file system enabled.