- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bla bla bla Bla
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bla Bla Bla
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Right, Now some pictures to show parts of my project
http://img543.imageshack.us/img543/4353/sopc.png http://img6.imageshack.us/img6/2081/nioside4.png http://img208.imageshack.us/img208/1407/nioside3.png http://img27.imageshack.us/img27/1669/nioside2.png http://img829.imageshack.us/img829/9889/nioside1.png
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page