I’m working with G120HDR and try to make it working with ENC28 module. I connect the INIT# pin to P0.5, but there a exception rise during driver initialization.
It seems P0.5 not support interrupt. I found from the G120 Module Brochure that P0_x and P2_x are Interrupt Capable, but from G120HDR_Developer web it says interrupt function is not implemented.
ENC28 on G120HDR works fine for me with firmware 4.2.5.0 and thefollowing pins:
SPI2
Chipselect: P1.9
Interrupt: P2.4 (P0.6 also works for sure)
Reset: not connected
WOL not connected
Init like this:
Eth1 = new EthernetENC28J60(SPI.SPI_module.SPI2, G120.Pin.P1_9, G120.Pin.P2_4, G120.Pin.GPIO_NONE);
The latest is detailed in this thread http://www.tinyclr.com/forum/topic?id=9388 and available from http://www.ghielectronics.com/support/dotnet-micro-framework but the GHI team are saying there’s a new one on the way tomorrow that addresses some of the known issues so it may be worthwhile holding off unless you really want to nut this out. Oh and if you have the SDK installed, you have to use the same firmware version as the SDK - so you should always update the SDK and firmware in sync.
Thanks.
I have download the latest GHI NETMF SDK v4.2(oct 26), and able to find the firmware then update.
But somehow after that I unable to install driver, it always shows like below.
No, they are included in the latest SDK.
When you install the SDK you can optionally check to install the legacy drivers (they are not installed by default).
When installed you get a 3rd subfolder in the USB Driver directory.