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.

File access in Cyclone Board

Altera_Forum
Honored Contributor II
1,073 Views

Hi, 

 

I'm a newbie for FGPAs. Currently I have a Altera Cyclone II Development Board using Quartus 5.0. I want to write a simple program using NIOS IDE to read a file and write into another file.  

 

I tried to mount my project directory to the board through Host Based File System but it didn't work because it can only be used in Debug mode. Even in Debug Mode, the code just gets stuck at fopen(). 

 

I am hoping to find if there's a easy way to do this. There are also USB interfaces (USB key) and a SD card slot. If those can be used, it's also cool. I just want to know how to use file handling in NIOS. 

 

Thanks so much
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
344 Views

 

--- Quote Start ---  

originally posted by boblee@Nov 20 2006, 11:02 AM 

hi, 

 

i'm a newbie for fgpas. currently i have a altera cyclone ii development board using quartus 5.0. i want to write a simple program using nios ide to read a file and write into another file.  

 

i tried to mount my project directory to the board through host based file system but it didn't work because it can only be used in debug mode. even in debug mode, the code just gets stuck at fopen(). 

 

i am hoping to find if there's a easy way to do this. there are also usb interfaces (usb key) and a sd card slot. if those can be used, it's also cool. i just want to know how to use file handling in nios. 

 

thanks so much 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19526) 

--- quote end ---  

 

--- Quote End ---  

 

Try uClinux. 

http://nioswiki.jot.com/%c2%b5clinux (http://nioswiki.jot.com/%c2%b5clinux)
0 Kudos
Reply