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.

Output files to host

Altera_Forum
Honored Contributor II
1,408 Views

I want my NisoII Processor send real-time information to the host, and write these information into a file. 

This is my C code. 

 

FIFE* fp=fopen("/mnt/host/h.txt"); 

if(fp==NULL){ 

printf("Error in opening file\n"); 

return -1; 

}  

fprintf(fp,"Hello world\n"); 

fclose(fp); 

return 0; 

 

This code will work well in debug mode step by step, and it will generate a file named h.txt in my host PC machine. 

But It will not work in release mode. 

Can anyone help me? 

Thanks
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
470 Views

You need a data channel to the host. 

In debug mode the jtag interface can be used. 

For releases you need to add some other interface between the fpga and whatever host you are using.
0 Kudos
Altera_Forum
Honored Contributor II
470 Views

 

--- Quote Start ---  

You need a data channel to the host. 

In debug mode the jtag interface can be used. 

For releases you need to add some other interface between the fpga and whatever host you are using. 

--- Quote End ---  

 

Can you describe detail? 

what kind of interface need add? 

Is there any interface already existed in the SOPC Build? 

Thanks
0 Kudos
Reply