Main Site Documentation

G120. Hex file Extract fails


#1

Has anyone tried it.
I am trying to generate the hex file for in-field update

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.NetMicroFramework.Tools.MFDeployTool.Engine.MFApplicationDeployment.CreateDeploymentData(BackgroundWorker backgroundWorker, DoWorkEventArgs doWorkEventArgs) in d:\SD\current\client_v4_3_dev\Framework\Tools\MFDeploy\Library\MFAppDeploy.cs:line 124
at Microsoft.NetMicroFramework.Tools.MFDeployTool.MFAppDeployConfigDialog.OnCreateDeployment_DoWork(Object sender, DoWorkEventArgs e) in d:\SD\current\client_v4_3_dev\Framework\Tools\MFDeploy\Application\MFAppDeployDialog.cs:line 359
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

MFDeploy
Assembly Version: 4.3.1.0
Win32 Version: 4.3.1.0
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20.NET%20Micro%20Framework/v4.3/Tools/MFDeploy.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

MFDeployEngine
Assembly Version: 4.3.1.0
Win32 Version: 4.3.1.0
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20.NET%20Micro%20Framework/v4.3/Tools/MFDeployEngine.DLL

Microsoft.SPOT.Debugger
Assembly Version: 4.3.1.0
Win32 Version: 4.3.1.0
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20.NET%20Micro%20Framework/v4.3/Tools/Microsoft.SPOT.Debugger.DLL

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll


#2

I’m not sure what this output has to do with creating a hex file !?
How do you try to generate the file?


#3

I am using MFDeploy.
And it crashes with this log


#4

You could try FEZConfig.
If I remember right it’s the top left button on the deployment page.
Worked fine for me with G120 so far


#5

FEZ Config works.But it generates only the hex file.

Do I need the config file to deploy on other boards


#6

only hex file is needed.
The config file is part of the Firmware bundle


#7

When this function is called
InFieldUpdate.Load(type, data, BLOCK_SIZE);
There is an exception. Not sure why?
The values are type = 2
and the data is an array of 65K values…so it looks ok

#### Exception System.ArgumentException - 0xfd000000 (8) ####
#### Message: 
#### GHI.Processor.InFieldUpdate::NativeLoad [IP: 0000] ####
#### GHI.Processor.InFieldUpdate::Load [IP: 004d] ####
#### TouchLogger.Programmer::LoadFile [IP: 002c] ####
#### TouchLogger.Programmer::FlashFirmware [IP: 000b] ####

A first chance exception of type ‘System.ArgumentException’ occurred in GHI.Hardware.dll


#8

From what file did you initialize the Array from?
If it’s you application hex file, you have created with FezConfig, then type must be 4 (Application)

For Firmaware1.hex and Firmware2.hex it wist be 2 (Firmware) and for Config.hex it must bo 8 (Configuration)