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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

fopen a file that resides in flash

Altera_Forum
Honored Contributor II
1,109 Views

Using the Nios IDE, I flashed a bitmap into memory. 

 

The problem I am having is that I want to use Altera file functions, like fopen, fclose on the file that resides in flash. 

 

Is there a way to force fopen to look at a memory address rather than a const char*? fopen seems to lookup an index of names based on the passed in filename.. but I don't see where the list it's comparing against resides. How can I fake it out so that it just uses a fixed flash address as the source?
0 Kudos
0 Replies
Reply