Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12366 Discussions

How can I load a file into memory?

Altera_Forum
Honored Contributor I
1,292 Views

I'm using Nios II Ide to test some imaging software. By now I've used litttle images created pixel by pixel. I'd like to load a bigger image into memory, but I wasn't able.  

 

The C command fopen doesn't work, and I don't want to write the image pixel by pixel (I'd like to try with 640x480). 

 

Thanks
0 Kudos
4 Replies
Altera_Forum
Honored Contributor I
67 Views

Sorry, I forgot... 

 

I'm trying to simulate my programs with Nios II ISS (I'm not using a development board, it's only a simulation) 

 

Thanks
Altera_Forum
Honored Contributor I
67 Views

I think this topic got lost for a while. I've emailed someone. Hopefully They'll be able to help. Tell us if you've figured this out.

Altera_Forum
Honored Contributor I
67 Views

fopen will only work if you have a filesystem. The only one currently available is the zip filing system which would require you to put your data into an uncompressed zip file and then program this zip file into flash. 

 

As for getting data into memory you can just put your binary file through objcopy to convert into elf format with symbols around it. This will then be available in memory. Hope that helps
Altera_Forum
Honored Contributor I
67 Views

Did you solve your problem? 

Tell us if you didn't.
Reply