We made an new board with a EMX and a ZG2100MC wifi module. We used the same SPI interface as on the EMX development board but different CS and INT signals.
Software related I can enable the wifi with the next code:
WiFi.Enable(SPI.SPI_module.SPI1, GHIElectronics.NETMF.Hardware.EMX.Pin.IO5, GHIElectronics.NETMF.Hardware.EMX.Pin.IO9);
But the wifi never comes up. We I debug the application I get the following error message:
Exception System.Exception - CLR_E_FAIL (4)
Message:
Microsoft.SPOT.Net.NetworkInformation.NetworkInterface::UpdateConfiguration [IP: 0000]
#### Microsoft.SPOT.Net.NetworkInformation.NetworkInterface::EnableDhcp [IP: 000f] ####
I also checked with MFDeploy a saw the following messages:
Initialize WiFi Module…
It should not take more than several seconds… make sure that MFW-WiFi Expansion in connected correctly
WiFi Assert
Error Enable interrupt.
Initialize WiFi Module…done
ip address from interface info: 0.0.0.0
mac address from interface info: 0.1a.f1.0.42.d
What did I do wrong?