Main Site Documentation

Updating project with firmware updates


#1

Every time I update firmware I have to go through and figure out how to fix all of my DLL references. Usually I end up copying out my code files and then recreating the whole project, but I know there has to be a better way. Now I’m stuck there again, so, is there a better way to get the DLLs to sync up with the firmware version?

Found debugger!

Create TS.

Loading start at 2018f198, end 201bc4dc

Assembly: mscorlib (4.2.0.0) Assembly: Microsoft.SPOT.Native (4.2.0.0) Assembly: Microsoft.SPOT.Hardware (4.2.0.0)
Assembly: Microsoft.SPOT.Graphics (4.2.0.0) Assembly: Microsoft.SPOT.TinyCore (4.2.0.0)
Assembly: Microsoft.SPOT.IO (4.2.0.0) Assembly: System.IO (4.2.0.0) Assembly: Microsoft.SPOT.Hardware.Usb (4.2.0.0)
Assembly: Microsoft.SPOT.Hardware.SerialPort (4.2.0.0) Assembly: Microsoft.SPOT.Touch (4.2.0.0)
Assembly: Microsoft.SPOT.Ink (4.2.0.0) Assembly: Microsoft.SPOT.Hardware.PWM (4.2.0.1)
Assembly: Microsoft.SPOT.Hardware.OneWire (4.2.0.0) Assembly: System.Xml (4.2.0.0)
Assembly: Microsoft.SPOT.Time (4.2.0.0) Assembly: Microsoft.SPOT.Net (4.2.0.0)
Assembly: System (4.2.0.0) Assembly: Microsoft.SPOT.Net.Security (4.2.0.0)
Assembly: System.Net.Security (4.2.0.0) Loading Deployment Assemblies.

Attaching deployed file.

Assembly: Gadgeteer.WebServer (2.42.0.0) Attaching deployed file.

Assembly: HydraController (1.0.0.0) Attaching deployed file.

Assembly: GHI.OSHW.Hardware (4.2.3.1) ***********************************************************************

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

  •                                                                 *
    
  •                                                                 *
    
  • Invalid native checksum: GHI.OSHW.Hardware 0xF0D4135D!=0xF75E8662 *

  •                                                                 *
    

Resolving.

Link failure: some assembly references cannot be resolved!!

Assembly: Gadgeteer.WebServer (2.42.0.0) needs assembly ‘Gadgeteer’ (2.42.0.0)

Assembly: HydraController (1.0.0.0) needs assembly ‘Gadgeteer’ (2.42.0.0)

Assembly: HydraController (1.0.0.0) needs assembly ‘GTM.GHIElectronics.UsbClientSP’ (1.1.2.0)

Assembly: HydraController (1.0.0.0) needs assembly ‘GTM.GHIElectronics.SDCard’ (1.1.2.0)

Assembly: HydraController (1.0.0.0) needs assembly ‘GTM.GHIElectronics.Display_HD44780’ (1.1.5.0)

Assembly: HydraController (1.0.0.0) needs assembly ‘GTM.Seeed.TemperatureHumidity’ (1.6.0.0)

Assembly: HydraController (1.0.0.0) needs assembly ‘GTM.Seeed.Relays’ (1.6.0.0)

Assembly: HydraController (1.0.0.0) needs assembly ‘GTM.GHIElectronics.GasSense’ (1.1.3.0)

Assembly: HydraController (1.0.0.0) needs assembly ‘GTM.GHIElectronics.Button’ (1.1.2.0)

Assembly: HydraController (1.0.0.0) needs assembly ‘GTM.PintSize.Piezo’ (1.0.0.0)

Assembly: HydraController (1.0.0.0) needs assembly ‘GTM.IanLee.IO60P16’ (4.1.0.0)

Assembly: HydraController (1.0.0.0) needs assembly ‘Gadgeteer.WebServer’ (2.42.0.0)

Assembly: HydraController (1.0.0.0) needs assembly ‘Gadgeteer.WebClient’ (2.42.0.0)

Assembly: HydraController (1.0.0.0) needs assembly ‘GHIElectronics.Gadgeteer.FEZHydra’ (1.1.3.0)

Error: a3000000

Waiting for debug commands…

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


#2

There are probably two problems that you have.

The first one is in the project references, when you add a non Microsoft reference, the property settings are set to make a local copy to reference and also the look for specific version. Just make these false and that is step one.

Step 2, usually deleting the bin and obj folders from the project folder will delete the local copy.

This should be all that you would need for less of a hassle.


#3

Aron,
I just tried deleting the bin contents. All the non-MS stuff was set to copy local and specific version is set to false.

The line that concerns me most at the moment is the checksum failure (tell me if it isn’t an issue).

  • Invalid native checksum: GHI.OSHW.Hardware 0xF0D4135D!=0xF75E8662 *

I just downloaded the GHI SDK yesterday and it has stuff dated 4/30/2013.

In the framework deployment output it lists the assemblies on the device, but I am not seeing all the ones that I have in my project, such as Gadgeteer.WebClient or any of the module DLLs, should I be seeing those? When I deploy and try to debug it just fails out, I assume because of version errors.

Found Assembly mscorlib 4.2.0.0
Found Assembly Microsoft.SPOT.Native 4.2.0.0
Found Assembly Microsoft.SPOT.Hardware 4.2.0.0
Found Assembly Microsoft.SPOT.Graphics 4.2.0.0
Found Assembly Microsoft.SPOT.TinyCore 4.2.0.0
Found Assembly Microsoft.SPOT.IO 4.2.0.0
Found Assembly System.IO 4.2.0.0
Found Assembly Microsoft.SPOT.Hardware.Usb 4.2.0.0
Found Assembly Microsoft.SPOT.Hardware.SerialPort 4.2.0.0
Found Assembly Microsoft.SPOT.Touch 4.2.0.0
Found Assembly Microsoft.SPOT.Ink 4.2.0.0
Found Assembly Microsoft.SPOT.Hardware.PWM 4.2.0.1
Found Assembly Microsoft.SPOT.Hardware.OneWire 4.2.0.0
Found Assembly System.Xml 4.2.0.0
Found Assembly Microsoft.SPOT.Time 4.2.0.0
Found Assembly Microsoft.SPOT.Net 4.2.0.0
Found Assembly System 4.2.0.0
Found Assembly Microsoft.SPOT.Net.Security 4.2.0.0
Found Assembly System.Net.Security 4.2.0.0
Found Assembly Gadgeteer.WebServer 2.42.0.0
Found Assembly HydraController 1.0.0.0


#4

What version of the Firmware is on the Hydra right now? Can you use MFDeploy or the our Config tool and verify the version?


#5

Device Capabilities says:

HalSystemInfo.halVersion: 4.2.0.0
HalSystemInfo.halVendorInfo: Microsoft Copyright © Microsoft Corporation. All rig
HalSystemInfo.oemCode: 255
HalSystemInfo.modelCode: 0
HalSystemInfo.skuCode: 65535
HalSystemInfo.moduleSerialNumber: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
HalSystemInfo.systemSerialNumber: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
ClrInfo.clrVersion: 4.2.0.0
ClrInfo.clrVendorInfo: Microsoft Copyright © Microsoft Corporation. All rig
ClrInfo.targetFrameworkVersion: 4.2.0.0
SolutionReleaseInfo.solutionVersion: 4.2.5.0
SolutionReleaseInfo.solutionVendorInfo: Copyright © GHI Electronics, LLC
SoftwareVersion.BuildDate: Apr 25 2013
SoftwareVersion.CompilerVersion: 410713
FloatingPoint: True
SourceLevelDebugging: True
ThreadCreateEx: True
LCD.Width: 320
LCD.Height: 240
LCD.BitsPerPixel: 16
AppDomains: True
ExceptionFilters: True
IncrementalDeployment: True
SoftReboot: True
Profiling: False
ProfilingAllocations: False
ProfilingCalls: False
IsUnknown: False


#6

Can you completely uninstall the GHI SDK and reinstall it?


#7

Yes I can, I’ll be back in a few hours with the results.


#8

Just need to fix my Seeed references then I will be back to provide a failure/success update.


#9

Aron,
Thanks, it looks like the uninstalling and re-installing, then clearing the bins and rebuilding all the projects, did take care of it.