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

how to use hostfs in IDE

Altera_Forum
Honored Contributor II
1,728 Views

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
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
638 Views

 

--- 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?
0 Kudos
Altera_Forum
Honored Contributor II
638 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
638 Views

thank you 

i try
0 Kudos
Altera_Forum
Honored Contributor II
638 Views

Hi 

I record a tutorial on how to mount text file using NIOS II Processor and hostfs feature which enables us to mount files (such as text file) and perform read and write operation on that file 

http://youtu.be/kbicxwtfbiy (http://youtu.be/kbicxwtfbiy)
0 Kudos
Reply