Forum Discussion

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

how to use hostfs in IDE

how to use the hostfs(file system) that altera provided .

i want to read data from file in my computer

when it evoke the alt_hostfs_open() function and execute where

(__asm__ volidata) ,it can not continue.

who can use it?

thanks

4 Replies

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

    --- Quote Start ---

    originally posted by mjl-0708@May 16 2006, 10:27 PM

    how to use the hostfs(file system) that altera provided .

    i want to read data from file in my computer

    when it evoke the alt_hostfs_open() function and execute where

    (__asm__ volidata) ,it can not continue.

    who can use it?

    thanks

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

    --- quote end ---

    --- Quote End ---

    the hostfs is added as software component

    mount:/mnt/host

    but i can&#39;t open file when using fp=fopen(/mnt/host/test","r")

    fp always returns 0

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

    Why don&#39;t you try the host filing system example, shipped with the 5.1 kit? It seem to work, just fine, here, and contains useful comments about how/why it works...

    Best Regards,

    - slacker