Forum Discussion
Simple 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
Are you running DHCP to a switch?...or, better still, to a DHCP server that you have access to? That way you can see (or not) the packets that your board is generating. Of course, if you are statically assigning IPs then that doesn't apply.
Simply hangs doesn't really help me to help you much. What happens if you Debug the code and step through it to see where it's actually hanging? So...throw me some more info and I'll see if I can help. Cheers, and Good luck... --slacker - Altera_Forum
Honored Contributor
Please refer to the following links to the VOIP project @ Columbia Uni.
I have sourced the DM9000a SOPC component + Nichestack driver from this project. http://www1.cs.columbia.edu/~sedwards/classes/2009/4840/reports/voip.pdf (http://www1.cs.columbia.edu/~sedwards/classes/2009/4840/reports/vp.pdf) http://www1.cs.columbia.edu/~sedwards/classes/2009/4840/reports/voip.tar.gz - Altera_Forum
Honored Contributor
Well, I haven't got much time tonight to post, but in short....i have now the simple socket server running on the de2 board!
It works - telnet works, ping works...and using the Davicom DM9000a controller which Altera provide no inherent support for. All credit to Columbia Uni for their Nichestack driver, which I can now confirm works successfully. Hardware design was a little more tricky, integrating the Simple Socket server reference design and DM9000a hardware/HAL/uCOS driver on the DE2, but will post back soon with detailed instructions on how I got it all working. But the good news here is, it can be done! Will post up working source/code for this soon. Hurrah! Hurray! - Altera_Forum
Honored Contributor
Hi,
can u post how you solved that problem ? I'm currently working with NicheStack and Nios IDE 8.0SP1 and the Simple Socket Server Example compiles just fine. I can ping my devboard and connect to the socket server via telnet. But after a few Minutes the whole thing just seems to hang itself up ... No response to pings from then on. Can anybody help with this issue? - Altera_Forum
Honored Contributor
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! - Altera_Forum
Honored Contributor
Hi can you explain the second step (open the software workspace...) more detailed? Thanks
I get the message by downloading on Nios" 'Launching ethernet NIOS II Hardware configuration' has encountered a problem. Downloading Elf Proceess failed" - Altera_Forum
Honored Contributor
Hi Catmoe. Have just revised the instructions. (See above).
Make sure you follow Step (3), otherwise you may experience failure due to mismatched system timestamp/ID. Also, if you're not using DHCP, you can disable in the BSP settings for Nichestack. But the app should auto-default to a static IP anyway, so this shouldn't be a problem. If all goes well, you should see in the console the program being loaded into SDRAM, verified and then in the Nios II console on the right of your screen, you should see the Nichestack initialisation and the debug output from the socket server program. Let me know how you get on with that! - Altera_Forum
Honored Contributor
--- Quote Start --- here it is....zipped downloaded project source for sss on the de2 board. http://www.tnndesign.com/ee/fpga/de2_simplesocketserver.zip 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! --- Quote End --- 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
Just a wee note for those who have tried it and are having problems. As an alternative (if Nios II Built Tools for Eclipse is not liking the project directory structure)...
- Delete the /software directory from the main project directory - Create a new application/BSP from the given examples and select "Simple Socket Server" from the available list. Point to the .SOPCINFO file in the project directory - Let the IDE create the project and the BSP incl all necessary HAL drivers etc - Build the project, and the program to the DE2 - The project should build with the default ref design (all the components in SOPC builded required in the example are present). Anyone who has trouble running it PM me and I'd be happy to give you a hand. - Altera_Forum
Honored Contributor
Ok When i open IDE Eclipse, i select a workspace ( i created a new workspace) when the platform opens i choose File -> new -> Nios II Aplication and BSP from Template. Then i select the sopcinfo file , which was in the zip-order and choose an Projectname (ethernetconnection) and choose simple socket server and 'finish'. then run -> run configurations-> NIOS II HARDware-> new configuration and selcet the Projectname( ethernetconnection). but under Elf File name there is no object which you can select, there is only an empty field. so i cant run the project. have i forgotten something? or how can i solve this problem?