Forum Discussion
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
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
- BoonBengT_Altera5 years ago
Moderator
Hi @서박사,
Hope this message find you well and good day, as we do not receive any response from you to the previous clarification that we have provided. Please post a response in the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you with your follow-up questions.
Warm Regards