Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
expansionport [2018/04/15 19:07]
renaudschweingruber_txg59n64 [Quickstart Guide]
expansionport [2018/09/29 11:50] (current)
bax [Driver installation and configuration]
Line 45: Line 45:
 | 1 | MOSI | TXD || | 1 | MOSI | TXD ||
 | 2 | +3.3V | +3.3V || | 2 | +3.3V | +3.3V ||
-| 3 | nCS1 (SDNet) | CTS | Pullup 50k | +| 3 | nCS1 (SDNet) | CTS | FPGA internal ​Pullup 50k | 
-| 4 | nCS2 (USB, etc.) | GPO1 | Pullup 50k | +| 4 | nCS2 (USB, etc.) | GPO1 | FPGA internal ​Pullup 50k | 
-| 5 | IRQ | RTS | Pullup 50k |+| 5 | IRQ | RTS | FPGA internal ​Pullup 50k |
 | 6 | CLK | GPO2 || | 6 | CLK | GPO2 ||
 | 7 | GND | GND || | 7 | GND | GND ||
-| 8 | MISO | RX | Pullup 50k |+| 8 | MISO | RX | FPGA internal ​Pullup 50k |
  
 {{::​capture.png|}} {{::​capture.png|}}
 +{{::​img_20180925_204810.jpg?​direct&​432|}}
 +===== Testing =====
  
 +A set of test programs is available for newly made cables. Please make sure that the TCP/IP stack is inactive/​offline before conducting the test. The SDNet distribution contains drivers, documentation and the test programs. In case of the V500v2 Expansion port described in this article, the test program is named v2expethtest. Please make sure that a LAN cable is connected from the module to an active Ethernet port (Switch,​Router,​...).
 +
 +Open a CLI/Shell window, go with "​CD"​ to the directory where v2expethtest is located ("​bin"​ subdirectory of the SDNet distribution) and call v2expethtest without further arguments.
 +
 +The tool will first verify that communication to the module is possible via SPI and then test available speeds. Please note that the speed index 0 is expected to fail. That is normal. Depending on the installed Core speed you may or may not be able to run speed index 1 successfully (speed 1 should work on Core x11, may fail on Core x12 and above). ​
 +
 +After the memory transfer test, the tool will send out valid DHCP requests. You should see at least one of the LEDs blink periodically. Typical home networks do have a DHCP server running. In that case it should answer the requests.
 +
 +The tool quits automatically after about 1 minute and prints out a conclusion to the performed tests.
 +
 +===== Driver installation and configuration =====
 +
 +The SANA-II driver for the ENC28J60 chip connected to the V500V2+ expansion port is named v2expeth.device. Please copy this file to the directory Devs:​Networks. Create Devs:​Networks if it didn't exist. Please consult the manual of your chosen TCP/IP stack how to add an Ethernet interface.
 +
 +
 +From version 1.94 on, v2expeth.device supports interrupt driven receive timing. On Core Gold 2.10 or later, you can enable the interrupt driven mode by the following CLI command sequence
 +  makedir ENVARC:​sana2
 +  echo "​TIMER=0 INTERRUPT PRI=6" >​ENVARC:​sana2/​v2expeth.config
 +Less commonly used configuration options are outlined in the README file that comes with the SDNet distribution.
 +
 +===== Download =====
 +
 +The full distribution of SDNet and V2Expeth can be downloaded here: [[http://​bax.comlab.uni-rostock.de/​fileadmin/​downloads/​SDNet-1.95.lha|SDNet-1.95.lha]]. In that archive you find the mentioned tools. Source code included.
  
  • expansionport.1523812056.txt.gz
  • Last modified: 2018/04/15 19:07
  • by renaudschweingruber_txg59n64