WiFi fails during Scan or Join

I have the following code:

        string ipAddress = "";
        string nsk = "xxxxxxxx";

        void ProgramStarted()

                wifi_RS21.Interface.WirelessConnectivityChanged += new WiFiRS9110.WirelessConnectivityChangedEventHandler(Interface_WirelessConnectivityChanged);


                WiFiNetworkInfo[] scanResults = wifi_RS21.Interface.Scan();
                WiFiNetworkInfo info = new WiFiNetworkInfo(scanResults[0]);
                wifi_RS21.Interface.NetworkInterface.EnableStaticIP(ipAddress, "", "");
                wifi_RS21.Interface.Join(info, nsk);

            catch (Exception ex)
                Debug.Print("ERRRRRRRRRRRR" + ex.Message);
            Debug.Print("Program Started");

During the execution of wifi_RS21.Interface.Scan(); I think it resets itself; if I’m lucky it will pass the scan and reset at the wifi_RS21.Interface.Join(info, nsk); and if I’m really lucky (and lately happens extremely rare) it just works.

One more thing: No error is thrown.

So, am I doing something wrong? If so, why does it sometimes work?

@ andre.m
The link from that topic goes to page that was moved and from there a link goes to this page
http://www.ghielectronics.com/docs/40/netmf-4.2-developer where the download link is missing :frowning:

@ andre.m - thank you.

I’ve installed the new version, but now nothing works; I’ve tried with a new empty project:

Found debugger!

Create TS.

Loading start at a0e00000, end a0e1383c

Assembly: mscorlib ( Assembly: Microsoft.SPOT.Native ( Assembly: Microsoft.SPOT.Security.PKCS11 (4.2
.0.0) Assembly: System.Security ( Loading Deployment Assemblies.

Attaching deployed file.

Assembly: Microsoft.SPOT.IO ( Attaching deployed file.

Assembly: Gadgeteer ( Attaching deployed file.

Assembly: Microsoft.SPOT.Graphics ( Attaching deployed file.

Assembly: System.Http ( Attaching deployed file.

Assembly: Microsoft.SPOT.Hardware ( Attaching deployed file.

Assembly: System ( Attaching deployed file.

Assembly: Microsoft.SPOT.Net.Security ( Attaching deployed file.

Assembly: Microsoft.SPOT.Hardware.PWM ( Attaching deployed file.

Assembly: GHI.Premium.Hardware ( ***********************************************************************

  •                                                                 *
  • ERROR!!! Firmware version does not match managed code version!!! *

  •                                                                 *
  •                                                                 *
  • Invalid native checksum: GHI.Premium.Hardware 0xE9C5E572!=0x4814E574 *

  •                                                                 *

Attaching deployed file.

Assembly: GHI.Premium.System ( ***********************************************************************

  •                                                                 *
  • ERROR!!! Firmware version does not match managed code version!!! *

  •                                                                 *
  •                                                                 *
  • Invalid native checksum: GHI.Premium.System 0x8AF38F5C!=0x1D6C0EC2 *

  •                                                                 *


Link failure: some assembly references cannot be resolved!!

Assembly: Gadgeteer ( needs assembly ‘Microsoft.SPOT.TinyCore’ (

Assembly: Gadgeteer ( needs assembly ‘Microsoft.SPOT.Net’ (

Assembly: Gadgeteer ( needs assembly ‘System.IO’ (

Assembly: System.Http ( needs assembly ‘System’ (

Assembly: System.Http ( needs assembly ‘System.Net.Security’ (

Assembly: System ( needs assembly ‘Microsoft.SPOT.Net’ (

Error: a3000000

Waiting for debug commands…

The program ‘[1] Micro Framework application: Managed’ has exited with code 0 (0x0).


How do I change the firmware version to match managed code version?

@ allex4project

Can you use MFDeploy to tell us the firmware version that you are using?

@ Aron -

HalSystemInfo.halVendorInfo: Microsoft Copyright © Microsoft Corporation. All rig
HalSystemInfo.oemCode: 255
HalSystemInfo.modelCode: 0
HalSystemInfo.skuCode: 65535
ClrInfo.clrVendorInfo: Microsoft Copyright © Microsoft Corporation. All rig
SolutionReleaseInfo.solutionVendorInfo: Copyright © GHI Electronics, LLC
SoftwareVersion.BuildDate: Nov 29 2012
SoftwareVersion.CompilerVersion: 410462
FloatingPoint: True
SourceLevelDebugging: True
ThreadCreateEx: True
LCD.Width: 128
LCD.Height: 128
LCD.BitsPerPixel: 16
AppDomains: True
ExceptionFilters: True
IncrementalDeployment: True
SoftReboot: True
Profiling: False
ProfilingAllocations: False
ProfilingCalls: False
IsUnknown: False


Is your VS project targeting 4.1, 4.2 or 4.3?

@ mhectorgato -

4.2; I have VS2010; 4.3 isn’t in the list.

@ allex4project

Your firmware needs to be updated. Please see this link for help to update your firmware: http://www.ghielectronics.com/community/forum/topic?id=11849