Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12600 Discussions

ZIPFS not working. fopen always returning NULL

Altera_Forum
Honored Contributor II
1,163 Views

Hi, 

 

I'm using Quartus/NIOS 9.1 with SP1 and I'm trying read a binary file using Zip File System. I'm using the Legacy NIOS IDE and for test my code is: 

 

# include "sys/alt_stdio.h" # include "system.h" # include <stdio.h> # include <string.h> # include "altera_avalon_cfi_flash.h" # include "altera_ro_zipfs.h" # include "alt_types.h" int main(void) { ... Some Code .... FILE *pf= fopen("/mnt/rozipfs/screen.bmp","rb"); if(pf == NULL) { printf("File Error"); } fread(imageDataOrigin, sizeof(float),307200,pf); ... More Code ... }  

 

 

I create the uncompressed Zip file using pkzip -e0 zipname files... 

 

After, I added the file to _syslib of project and activate the ZIPFS in Properties -> System Library -> ZIPFS.  

 

However when execute my program, I can't open my file.  

 

What I'm doing wrong? 

 

Thanks.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
403 Views

Sorry about, but the forum system can't leave me put URL images if my post count is less then 5. So, I'm writing some bla bla bla until fix this problem. Sorry

0 Kudos
Altera_Forum
Honored Contributor II
403 Views

Bla bla bla Bla

0 Kudos
Altera_Forum
Honored Contributor II
403 Views

Bla Bla Bla

0 Kudos
Reply