Forum Discussion
Altera_Forum
Honored Contributor
16 years agoSimple Socket Server on DE2 w/Davicom DM9000A
updated.
Altera's Simple Socket Server demo running on a DE2 board with the Davicom DM9000a driver. here it is....zipped downloaded project source for sss on the de2 board. download link currently unavailable. Includes: - Hardware design (TLD in schematic block diagram format) - Programmable .SOF (time-limited, as developed in Quartus Web Edition v9.2) - SOPC builder system file - DM9000A driver for Nichestack TCP/IP stack / Altera HAL environment (courtesy of Columbia Uni) - Simple socket server software Simply... - (1) Download the .SOF in Quartus Programmer - (2) Open the software workspace in the "/software" directory in Nios II Build Tools (Eclipse IDE) - (3) Open Run >> Run Configurations. Delete the current configuration. Create a new launch configuration selecting the project name under the Project Tab. Ensure your DE2 board is plugged into USB. Check the target connection tab and make sure it is present. - (4) Plug into your local network (DHCP is enabled, or app will default to static IP) - (5) View the Nios II console for debugging information (via JTAG UART) - (6) Telnet into the board from a pc: telnet <ip address> 30. Enjoy the simple socket server demo from Altera! Questions/comments? Fire away below!98 Replies
- Altera_Forum
Honored Contributor
Thanks for the answer. It seems I got the ethernet device to be detected. The problem was that HAL could not find the right driver (I had put the include files in the wrong directory).
I now have the problem that after calling:
the following code keeps on sleeping because the interniche stack can't be initialized:alt_iniche_init(); netmain();
Any ideas on what might cause this? The getIP and getMac methods are called correctly but I don't see any light flicker on my ethernet port or on the switch. Also, I have the DE2-70 board which has the Davicom chip. But could this issue still be related to me not having the regular DE2 board? Thanks.while (!iniche_net_ready) TK_SLEEP(1); - Altera_Forum
Honored Contributor
Hi tnndesign,
Thanks for uploading this solution for DE2, However I have a couple of questions regarding your design. 1) Your design works fine as it is, now after I recompile the design (no changes to anything), just regenerating bsp and build the libraries, I experience problems. The simple socket server starts (establishes connection, assigns IP, and even the LED's start blinking) and then for some it reason abruptly stops(cannot ping, cannot establish connection to server, LED's stop blinking). 2) I noticed that the driver in the example( VOIP pdf) was developed for uclinux, how did you transfer it to Ucos? what changes did you make? 3) You had earlier said there was a problem you had experienced regarding some directories, maybe I am also experiencing the same problem, could you elaborate on that? 4) I have a feeling that my compilation error could be because of version compatibility ( I am using quartus 9.0 and do not have any SP updates). So could you update a backward's compatible project archive? and lastly 5) I noticed that you have only attached a time limited sof file, I couldnt find any opencores component, have you used any? or is it because that u only have a web edition? - Altera_Forum
Honored Contributor
Hi
i think the Simple Socket Server on DE2 w/Davicom DM9000A.zip link is expired and i cannot download it plz send me a mail of this project or at least the Niche stack compatible dm9000a ip at [email protected] need it urgent as i am using it in my project. thanks Muhammad Juanid Sarwar - Altera_Forum
Honored Contributor
hey,i have some problems to download the code,i have tried many times but not successed,can you send it to my e-mail,i'll be appreaited!
my email : [email protected] - Altera_Forum
Honored Contributor
Hi.
I'm also having trouble to download the file. Can anyone make it available again or mail it to me? My e-mail: leandro _ guida at hotmail dot com Tanks in advance. - Altera_Forum
Honored Contributor
i have posted it.but you email seems to be small to receive it
- Altera_Forum
Honored Contributor
Hi xiongxin18
Thank for the fast reply. I don't know the limitations of hotmail. Perhaps gmail could handle the size. Or, if there's a possibility, you could upload to a server (skydrive, rapidshare, or other one). My gmail e-mail: lcguida at gmail dot com Thanks. - Altera_Forum
Honored Contributor
i did,but it failed.
- Altera_Forum
Honored Contributor
Ok. Thanks anyway.
- Altera_Forum
Honored Contributor
try to use proxy server.i did it and downloaded successfully.