mIP Stack on FEZ Hydra

Hello,

I wanted to test the mIP stack on my FEZ Hydra with the ENC28 connected to socket 3. The biggest problem so far is the InterfaceProfile which I have created for the Hydra.


 case InterfaceProfile.FEZHydra_Socket3_ENC28:
                    //Adopted from DriverENC28.cs
                    Cpu.Pin cs = (Cpu.Pin)45; 
                    Cpu.Pin interrupt = (Cpu.Pin)40;
                    Start(MacAddress, name, SPI.SPI_module.SPI1, interrupt, cs);

I think my pin assignments are not correct because later when creating the interrrupt port I get an exception.


		public ENC28J60Driver(Cpu.Pin irqPin, Cpu.Pin csPin, SPI.SPI_module spiModule)
		{
			irq = new InterruptPort(irqPin, true, Port.ResistorMode.PullDown, Port.InterruptMode.InterruptEdgeLevelLow);
			irq.OnInterrupt += new NativeEventHandler(irq_OnInterrupt);

            

            // http://www.mikroe.com/forum/viewtopic.php?f=91&p=192252
			var cfg = new SPI.Configuration(csPin, false, 0, 0, false, true, 8000, spiModule);
			spi = new MultiSPI(cfg);
		}



Exception: An unhandled exception of type ‘System.ArgumentException’ occurred in Microsoft.SPOT.Hardware.dll

Can anybody tell me the right pin numbers? The schematics is not very clear for me as there are no numbers…

Thank you.

@ tester56723 - You can see what specific pins are on socket three in the Gadgeteer source as well: https://bitbucket.org/ghi_elect/gadgeteer/src/04be1b7195fc5f7a7eaedec34238e1d8dac4607d/Mainboards/GHIElectronics/FEZHydra/FEZHydra_43/FEZHydra_43.cs?at=master#cl-58

The pin assignment was correct but the interrupt port must be pull up instead of pull down. Nevertheless the mIP is much too slow for me. Ping reply takes 40ms :open_mouth: