Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

File access in Cyclone Board

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

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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)