Altera_Forum
Honored Contributor
13 years agoRead-Only Zip File System zipfs on nios ii
Hi
I'm using Quartus II 12.1 to develop software for nios II processor I fallowed this wiki page (http://www.alterawiki.com/wiki/readonlyzipfilesystem) to enable the zipfs on nios II but i can't access the zip files using nios ii and my pointer always return NULL I'm using EPCS as my flash memoy to store the zip file, i double check the base address and the offset and also program the epcs for several times (I was successfull in programming the EPCS) I don't know that may cause this problem below is the sample code that i used to access the zip file --- Quote Start --- FILE* fp = NULL; /* * Open and print contents of ZipFS file 1. */ printf("Reading file 'file1.txt' from ZipFS...\n"); fp = fopen ("/mnt/rozipfs/file1.txt", "r"); if (fp == NULL) { printf ("Cannot open file.\n"); exit (1); } --- Quote End --- Please give me some suggestion