Forum Discussion

서박사's avatar
서박사
Icon for Occasional Contributor rankOccasional Contributor
5 years ago
Solved

File handling using Nios II Software Build Tools for Eclipse

Hello, I'm trying to use the Eclipse to compile the program for Nios II on the DE1-SoC FPGA. I thought that the memory controller should be used for generating data logic (which means, generating...
  • BoonBengT_Altera's avatar
    5 years ago

    Hi @서박사,

    Is it possible to share the link to the NIOS demo mentioned? and also your NIOS project?
    Also when you mention the inputs files cannot be read by the program, just curious what are the error that you are seeing?

    And to answer the question that you have below:
    1. Answer: Per my understanding only those FPGA board with CFI compliant flash component are able to do so.

    2. So how may I read the input file at the FPGA board?
    - Answer : Yes there is a way to do so, the easier options to use the read-only zip filesystem (http://www.altera.com/literature/hb/nios2/n2sw_nii52012.pdf). Example as image files, you can put your bmp file in an uncompressed .zip file, flash that file to a specific location, and enable the filesystem option in Eclipse. Then you'll be able to read your file with the standard file functions. There are other more complex options involving SD card or USB solution. You may also refer to this references design.(https://www.intel.com/content/www/us/en/programmable/support/support-resources/design-examples/intellectual-property/embedded/exm-c-readonly.html)

    Warms Regards