Main Site Documentation

Problem with ethernet shield driver, please help


#1

I know the driver is still in beta testing but im not able to even run the Initialize on the driver…
My code in my program is

byte[] ip = { 10, 98, 1, 240 };
byte[] subnet = { 255, 255, 255, 0 };
byte[] gateway = { 10, 98, 0, 1 };
byte[] mac = { 43, 185, 44, 2, 206, 127 };
FEZ_Shields.Ethernet.Initialize(ip, subnet, gateway, mac);

Im getting an exception at

spi = new SPI(config);

The exception output is

#### Exception System.Exception - CLR_E_PIN_UNAVAILABLE (1) ####
#### Microsoft.SPOT.Hardware.Port::.ctor [IP: 0000] ####
#### Microsoft.SPOT.Hardware.OutputPort::.ctor [IP: 0006] ####
#### Microsoft.SPOT.Hardware.SPI::.ctor [IP: 004d] ####
#### GHIElectronics.NETMF.FEZ.FEZ_Shields+W5100::Init [IP: 0016] ####
#### GHIElectronics.NETMF.FEZ.FEZ_Shields+Ethernet::Initialize [IP: 0008] ####
#### testapp1.Program::Main [IP: 0146] ####

Any ideas here?


#2

Have you read this comment??

Are all pins you used available??


#3

I did see that comment… I am very new to the FEZ and am still learning the terminology…

Dont think they are all used up, all I have connected to my Domino is the ethernet shield…


#4

Maybe you have code in other files that is using the same pins. Make new project and add only the beta driver then try to run


#5

Ah crap… The backlight for the lcd also uses Di10… :frowning:

Thanks for your help…