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

Nios2----->PC(windows)

Altera_Forum
Honored Contributor II
1,281 Views

I have to connect a Nios2 with a PC on which there's WINXP OS 

 

I cannot use any OS for Nios2 and so I'll use the RAW Api of LWIP. 

The question is.... 

Can I use a telnet client to send and recieve strings? 

Do I have to use LWIP also on my PC? or can I use windows sockets?  

 

Thank you all
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
388 Views

You can use ordinary windows sockets

0 Kudos
Altera_Forum
Honored Contributor II
388 Views

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/ohmy.gif  

Hi, i am a c/c++ programmer, sorry but i don&#39;t know nothing about fpga programming but i have to estabilish a connection whith an fpga which does the server side. 

I have a great problem: standard socket blocking recv functions in c return 0 only if the connection is closed by the remote side. 

I&#39;ve noticed that often the fpga makes my recv function returns with 0 value even if non one forces the disconnection. 

Does someone could exlpain it? 

Have i to use different functions? 

Thanks to all (even for the patience)!!
0 Kudos
Reply