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
If you have the Lan91c111 ethernet controller, you'll need to use the appropriate module in SOPC builder which will load the appropriate HAL driver into your BSP system when you create it.
The solution I have posted is for the altera de2 development board which uses a different ethernet controller device not natively supported by Altera. You should be able to modify my software/Quartus project to use your lan91c111 device: * Remove the DM9000a device in SOPC builder and add the Altera SOPC component for the lan91c111. Generate SOPC system. Ensure any other devices used (ie. flash memory and SDRAM are compatible with your development board - I assume you are using Nios II dev kit?) * You'll need to modify the pin mappings file to suit your dev board and you most likely will be using a different FPGA - so this will need to be changed as well. * Build Quartus project and download .SOF file. * Regenerate the BSP in Nios II Build tools based on the updated .SOPCINFO file. Rebuild the project and download the ELF file to the NIOS processor. You should have everything working by this point. Alternatively - check out the Nios II SDK and reference examples. There are a number of H/W ref examples (Quartus projects) which support the dev kit and socket server example. You should then be able to create the software from the reference template in Nios II SBT and deploy straight to your dev board. - Altera_Forum
Honored Contributor
okI changed to lan91c111 but now i´m not sure how to connect the pins..First there is address_to_the_lan91c111[15..0] but in the manuel of the board there are only 15 addressline pins for the ethernet. And whats the tri-state-bridge? the in sopc builded block has a tristate-bridge with a 32 biit buffer output ( tristate-bridge[31..0] ) and an output zs_dqm_from_the_sdram[3..0] i don´t know how to connect them wihch pins i should take.
- Altera_Forum
Honored Contributor
Everithing went ok for me until I downloaded the software to the FPGA, I get this error on NIOS Terminal.
I have quartus II 9.0 whit a valid license. Can't somebody help me? JairoInterNiche Portable TCP/IP, v3.1 Copyright 1996-2008 by InterNiche Technologies. All rights reserved. prepped 0 interfaces, initializing... inet startup error: unable to find any working interfaces panic: IP dtrap - needs breakpoin - Altera_Forum
Honored Contributor
Will check this out jtrad. Will post back soon.
- Altera_Forum
Honored Contributor
Hi, I can't download the file:"DE2_SimpleSocketServer.zip".May you send me an email that include the file.My email:[email protected]
- Altera_Forum
Honored Contributor
Thank you !
I can't download the file:"DE2_SimpleSocketServer.zip". May you send me an email that include the file.My email:[email protected] - Altera_Forum
Honored Contributor
i run the software,but it shows that
"prepped 0 interfaces, initializing... inet startup error: unable to find any working interfaces dtrap - needs breakpoint panic: IP" i don't know why? - Altera_Forum
Honored Contributor
Hi,
Could you email me the file:"DE2_SimpleSocketServer.zip" since I download it unsuccessful many times.My address is [email protected]. Thank you in advance. - Altera_Forum
Honored Contributor
i have send you email.we can do it together.
- Altera_Forum
Honored Contributor
Hi,
I have loaded the code into my custom board.After 3 minute it displayed as: Simple Socket Server starting up [sss_task] Simple Socket Server listening on port 30 And I can ping the board from PC successful,but there was no result output to console.If I send a upd from PC to the board there was also no result output to console. Is that all right?How Can I display the received upd?