Hi there
happy to help out.
I’ve grabbed the code from the brochure [url]http://www.tinyclr.com/downloads/Shield/Broch_EthernatShield.pdf[/url]
Pasting that into a new project (console app template) and adding the references it needs, including the W5100 module, all errors are clean.
Here’s the relevant section of code that I have used:
const Int32 c_port = 80;
byte[] ip = { 192, 168, 0, 200 };
byte[] subnet = { 255, 255, 255, 0 };
byte[] gateway = { 192, 168, 0, 1 };
byte[] mac = { 43, 185, 44, 2, 206, 127 };
WIZnet_W5100.Enable(SPI.SPI_module.SPI1, (Cpu.Pin)FEZ_Pin.Digital.Di10, (Cpu.Pin)FEZ_Pin.Digital.Di9,true);
NetworkInterface.EnableStaticIP(ip, subnet, gateway, mac);
NetworkInterface.EnableStaticDns(new byte[] { 192, 168, 0, 1 });
Socket server = new Socket(AddressFamily.InterNetwork,SocketType.Stream, ProtocolType.Tcp);
IPEndPoint localEndPoint = new IPEndPoint(IPAddress.Any, c_port);
server.Bind(localEndPoint);
server.Listen(1);
The sample does not seem to be missing the parameter for the enable call:
WIZnet_W5100.Enable(SPI.SPI_module.SPI1, (Cpu.Pin)FEZ_Pin.Digital.Di10, (Cpu.Pin)FEZ_Pin.Digital.Di9,true);
Where did you get the sample code? The above PDF?
If you take a step back, I am assuming you have the latest GHI SDK installed, and the firmware on your Domino updated to the latest?