I'm trying to test the 'Low Level Ethernet Demo'. But I can't find any instructions. I assume once setup correctly, all I would have to do is in terminal is
Code: Select all
$ ping X.X.X.X
Setting up the Slicekit and Ethernet Slice
I have plugged in the Ethernet Slice to 'Circle' on the Slicekit:
My understanding of ethernet_board_conf.h from the folders 'SLICEKIT-L16' and 'SLICEKIT-L2' in '
module_ethernet_board_support', is that not defining one of 'ETHERNET_USE_SQUARE_SLOT' etc will cause the setup to default to 'CIRCLE'. I cannot see any defines for 'ETHERNET_USE_XXXX_SLOT' in the demo, so 'Circle' it is.
Ethernet Network Wiring
I assume that I can't just connect the Slicekit directly into the Ethernet port of my laptop, as there would be no allocation of IP addresses via DHCP? So should I connect Slicekit to a network switch, and likewise my laptop?
Does it matter whether a crossover or standard Ethernet cable is used? (Does the PHY deal with that issue?)
Selecting an appropriate IP Address for the Slicekit
Demo.xc states:
Code: Select all
// NOTE: YOU MAY NEED TO REDEFINE THIS TO AN IP ADDRESS THAT WORKS
// FOR YOUR NETWORK
#define OWN_IP_ADDRESS {192, 168, 1, 178}
OWN_IP_ADDRESS is the IP of the Slicekit? Does this set a static IP address for the Slicekit?
How would I go about choosing an appropriate address using Linux?
Any help getting this demo to work would be appreciated
Thanks
Senthil