G120 HDR and ENC28 Initialization failed

Hi all,

I just received my G120 HDR rev 1.1 (Solution Build 4.2.4.0), and sold the pins to the ENC28, such as it is written here :


S Socket like → G120 HDR
P1 → 3V3
P2 → 5V
P3 → P0.5
P4 → P1.14
P5 → P1.16
P6 → P1.17
P7 → MOSI2
P8 → MISO2
P9 → SCK2
P10 → GND


Here’s what MFDeploy shows :


HAL build info: 4.2.0.0, Microsoft Copyright (C) Microsoft Corporation. All rig
OEM Product codes (vendor, model, SKU): 255, 0, 65535
Serial Numbers (module, system):
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Solution Build Info: 4.2.4.0, GHI Electronics, LLC
AppDomains:
default, id=1
Assemblies:
mscorlib,4.2.0.0
Microsoft.SPOT.Native,4.2.0.0
Microsoft.SPOT.Hardware,4.2.0.0
Microsoft.SPOT.Hardware.PWM,4.2.0.1
HTTP Server Test,1.0.0.0
System.Http,4.2.0.0
Microsoft.SPOT.Net.Security,4.2.0.0
GHI.Premium.System,4.2.7.0
System,4.2.0.0
Microsoft.SPOT.Graphics,4.2.0.0
System.Net.Security,4.2.0.0
GHI.Premium.Net,4.2.7.0
Microsoft.SPOT.Net,4.2.0.0


And here’s the piece of code I’m using :


public class Program
    {
        static OutputPort ledGreen = new OutputPort(G120.Pin.P0_1, true);

        static EthernetENC28J60 Eth1 = null;
        static public ManualResetEvent NetworkAvailabilityBlocking = null;
        static public ManualResetEvent IPAddressSetResetEvent = null;
        static byte[] outBuffer = null;

        static string myIP = "192.168.2.107";

        public static void Main()
        {
            Blink(ref ledGreen, 10);

            Eth1 = new EthernetENC28J60(SPI.SPI_module.SPI2, G120.Pin.P1_17, G120.Pin.P0_5, G120.Pin.P1_14);
            Eth1.Open();
            .......



My Program crash during the Eth1 initialization with a message available in the attached image…

Question !: Am I wrong with something ? Did I mess a step before starting ? Is the firmware version OK ?

Thanks for your feedback !

OK,

finally it was a problem with the firmware. After Updated, everything comes fine !

OK. Then “P8 -> MISO3” was just a typo and you meant “P8 -> MISO2”

@ Lurch - Right !