File handling using Nios II Software Build Tools for Eclipse
- 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