Main Site Documentation

Firmware upgrade problem?


#1

Hi,

I followed the procedure to upgrade to the latest firmware again. My programs that worked in the last version now exit with the code 0x0 message again during debug.

I used the MFDeploy tool to check the firmware and it seems right. When I do a reset and then ping I get the following message as it boots:

Pinging… TinyCLR
Connecting to USBizi_USBizi…Connected
Rebooting…
Pinging… NoTinyCLR
debugger!
Create TS.
Loading start at 49a78, end 524d4
Attaching file.
Assembly: mscorlib (4.0.1681.0) (3572 RAM - 29700 ROM - 17609 METADATA)

AssemblyRef = 0 bytes ( 0 elements)
TypeRef = 0 bytes ( 0 elements)
FieldRef = 0 bytes ( 0 elements)
MethodRef = 0 bytes ( 0 elements)
TypeDef = 1032 bytes ( 129 elements)
FieldDef = 232 bytes ( 115 elements)
MethodDef = 1448 bytes ( 723 elements)

Attributes = 0 bytes ( 0 elements)
TypeSpec = 16 bytes ( 4 elements)
Resources = 232 bytes ( 29 elements)
Resources Files = 16 bytes ( 2 elements)
Resources Data = 437 bytes
Strings = 990 bytes
Signatures = 2009 bytes
ByteCode = 10251 bytes

Attaching file.
Assembly: Microsoft.SPOT.Native (4.0.1681.0) (1064 RAM - 5716 ROM - 4140 METADATA)

AssemblyRef = 4 bytes ( 1 elements)
TypeRef = 80 bytes ( 20 elements)
FieldRef = 0 bytes ( 0 elements)
MethodRef = 60 bytes ( 15 elements)
TypeDef = 328 bytes ( 41 elements)
FieldDef = 132 bytes ( 65 elements)
MethodDef = 216 bytes ( 107 elements)

Attributes = 48 bytes ( 6 elements)
TypeSpec = 0 bytes ( 0 elements)
Resources = 72 bytes ( 9 elements)
Resources Files = 8 bytes ( 1 elements)
Resources Data = 747 bytes
Strings = 191 bytes
Signatures = 584 bytes
ByteCode = 413 bytes

Loading Deployment Assemblies.
Attaching deployed file.
Assembly: GHIElectronics.NETMF.Hardware (4.0.2.0) (792 RAM - 4740 ROM - 2916 METADATA)

AssemblyRef = 8 bytes ( 2 elements)
TypeRef = 36 bytes ( 9 elements)
FieldRef = 0 bytes ( 0 elements)
MethodRef = 44 bytes ( 11 elements)
TypeDef = 208 bytes ( 26 elements)
FieldDef = 88 bytes ( 44 elements)
MethodDef = 180 bytes ( 90 elements)

Attributes = 0 bytes ( 0 elements)
TypeSpec = 0 bytes ( 0 elements)
Resources = 0 bytes ( 0 elements)
Resources Files = 0 bytes ( 0 elements)
Resources Data = 0 bytes
Strings = 1247 bytes
Signatures = 316 bytes
ByteCode = 450 bytes

Invalid native checksum: GHIElectronics.NETMF.Hardware 0x10B25019!=0x895FE012
Attaching deployed file.
Assembly: Microsoft.SPOT.Net (4.0.1681.0) (696 RAM - 4904 ROM - 2427 METADATA)

AssemblyRef = 12 bytes ( 3 elements)
TypeRef = 92 bytes ( 23 elements)
FieldRef = 0 bytes ( 0 elements)
MethodRef = 72 bytes ( 18 elements)
TypeDef = 120 bytes ( 15 elements)
FieldDef = 60 bytes ( 29 elements)
MethodDef = 136 bytes ( 68 elements)

Attributes = 0 bytes ( 0 elements)
TypeSpec = 4 bytes ( 1 elements)
Resources = 0 bytes ( 0 elements)
Resources Files = 0 bytes ( 0 elements)
Resources Data = 0 bytes
Strings = 1264 bytes
Signatures = 379 bytes
ByteCode = 1086 bytes

Attaching deployed file.
Assembly: FEZDomino_GHIElectronics.NETMF.FEZ (4.0.2.0) (264 RAM - 756 ROM - 394 METADATA)

AssemblyRef = 8 bytes ( 2 elements)
TypeRef = 20 bytes ( 5 elements)
FieldRef = 0 bytes ( 0 elements)
MethodRef = 8 bytes ( 2 elements)
TypeDef = 72 bytes ( 9 elements)
FieldDef = 12 bytes ( 6 elements)
MethodDef = 4 bytes ( 2 elements)

Attributes = 0 bytes ( 0 elements)
TypeSpec = 0 bytes ( 0 elements)
Resources = 0 bytes ( 0 elements)
Resources Files = 0 bytes ( 0 elements)
Resources Data = 0 bytes
Strings = 196 bytes
Signatures = 18 bytes
ByteCode = 37 bytes

Attaching deployed file.
Assembly: GHIElectronics.NETMF.Hardware.USBizi (4.0.2.0) (172 RAM - 304 ROM - 95 METADATA)

AssemblyRef = 4 bytes ( 1 elements)
TypeRef = 4 bytes ( 1 elements)
FieldRef = 0 bytes ( 0 elements)
MethodRef = 4 bytes ( 1 elements)
TypeDef = 16 bytes ( 2 elements)
FieldDef = 0 bytes ( 0 elements)
MethodDef = 4 bytes ( 1 elements)

Attributes = 0 bytes ( 0 elements)
TypeSpec = 0 bytes ( 0 elements)
Resources = 0 bytes ( 0 elements)
Resources Files = 0 bytes ( 0 elements)
Resources Data = 0 bytes
Strings = 75 bytes
Signatures = 3 bytes
ByteCode = 5 bytes

Attaching deployed file.
Assembly: Microsoft.SPOT.Hardware.Usb (4.0.1681.0) (580 RAM - 3740 ROM - 1844 METADATA)

AssemblyRef = 4 bytes ( 1 elements)
TypeRef = 40 bytes ( 10 elements)
FieldRef = 0 bytes ( 0 elements)
MethodRef = 68 bytes ( 17 elements)
TypeDef = 104 bytes ( 13 elements)
FieldDef = 96 bytes ( 47 elements)
MethodDef = 88 bytes ( 44 elements)

Attributes = 0 bytes ( 0 elements)
TypeSpec = 0 bytes ( 0 elements)
Resources = 0 bytes ( 0 elements)
Resources Files = 0 bytes ( 0 elements)
Resources Data = 0 bytes
Strings = 980 bytes
Signatures = 224 bytes
ByteCode = 790 bytes

Attaching deployed file.
Assembly: Microsoft.SPOT.IO (4.0.1681.0) (716 RAM - 4432 ROM - 2459 METADATA)

AssemblyRef = 12 bytes ( 3 elements)
TypeRef = 72 bytes ( 18 elements)
FieldRef = 0 bytes ( 0 elements)
MethodRef = 96 bytes ( 24 elements)
TypeDef = 120 bytes ( 15 elements)
FieldDef = 68 bytes ( 34 elements)
MethodDef = 140 bytes ( 70 elements)

Attributes = 0 bytes ( 0 elements)
TypeSpec = 0 bytes ( 0 elements)
Resources = 0 bytes ( 0 elements)
Resources Files = 0 bytes ( 0 elements)
Resources Data = 0 bytes
Strings = 646 bytes
Signatures = 335 bytes
ByteCode = 1199 bytes

Attaching deployed file.
Assembly: GHIElectronics.NETMF.IO (4.0.2.0) (204 RAM - 632 ROM - 270 METADATA)

AssemblyRef = 8 bytes ( 2 elements)
TypeRef = 12 bytes ( 3 elements)
FieldRef = 8 bytes ( 2 elements)
MethodRef = 4 bytes ( 1 elements)
TypeDef = 8 bytes ( 1 elements)
FieldDef = 4 bytes ( 2 elements)
MethodDef = 16 bytes ( 8 elements)

Attributes = 0 bytes ( 0 elements)
TypeSpec = 0 bytes ( 0 elements)
Resources = 0 bytes ( 0 elements)
Resources Files = 0 bytes ( 0 elements)
Resources Data = 0 bytes
Strings = 199 bytes
Signatures = 30 bytes
ByteCode = 36 bytes

Invalid native checksum: GHIElectronics.NETMF.IO 0xF3C2E347!=0x928EC238
Resolving.
Link failure: some assembly references cannot be resolved!!

Assembly: Microsoft.SPOT.Net (4.0.1681.0) needs assembly ‘Microsoft.SPOT.Hardware’ (4.0.1681.0)
Assembly: Microsoft.SPOT.IO (4.0.1681.0) needs assembly ‘Microsoft.SPOT.Hardware’ (4.0.1681.0)
Error: a3000000
Waiting for debug commands…

This is my device capabilities message response:

HalSystemInfo.halVersion:
HalSystemInfo.halVendorInfo:
HalSystemInfo.oemCode: 0
HalSystemInfo.modelCode: 0
HalSystemInfo.skuCode: 0
HalSystemInfo.moduleSerialNumber:
HalSystemInfo.systemSerialNumber:
ClrInfo.clrVersion: 4.0.1681.0
ClrInfo.clrVendorInfo: Microsoft Copyright © Microsoft Corporation. All rig
ClrInfo.targetFrameworkVersion: 4.0.1681.0
SolutionReleaseInfo.solutionVersion: 4.0.3.0
SolutionReleaseInfo.solutionVendorInfo: GHI Electronics, LLC
SoftwareVersion.BuildDate: May 21 2010
SoftwareVersion.CompilerVersion: 310739
FloatingPoint: True
SourceLevelDebugging: True
ThreadCreateEx: True
LCD.Width: 0
LCD.Height: 0
LCD.BitsPerPixel: 0
AppDomains: True
ExceptionFilters: True
IncrementalDeployment: True
SoftReboot: True
Profiling: False
ProfilingAllocations: False
ProfilingCalls: False
IsUnknown: False

Any help would be greatly appreciated!


#2

Sorry to raise the alarm. I figured out in VC# you need to delete your old GHI references used and make it load the new versions for it to use the new versions.


#3

You already posted the answer in the first post…look at it again :wink:

"GHIElectronics.NETMF.Hardware.USBizi (4.0.2.0) "
Look in your SDK release notes. You probably have SDK version 4.0.3.0 but see above text how the assembly loaded is 4.0.2.0

Also, "nvalid native checksum: GHIElectronics.NETMF.IO 0xF3C2E347!=0x928EC238"
the CLR refuse to load an assembly because of mismatch version

I am clarifying this so other users can benefit from reading the boot up messages


#4

That is how I figured it out. I’m making these sort of posts so others don’t follow me over the cliff of despair :slight_smile: