EMX IFU Argument exception

Hi I am trying to add IFU to my device (EMX) using [url]

https://www.ghielectronics.com/docs/147/in-field-update[/url] sample but i get an Argument Exception as below.

```cs
 #### Exception System.ArgumentException - 0xfd000000 (1) ####
    #### Message: 
    #### GHI.Processor.InFieldUpdate::NativeLoad [IP: 0000] ####
    #### GHI.Processor.InFieldUpdate::Load [IP: 004d] ####
    #### EMX.ComsController::LoadFile [IP: 004f] ####

I tested my hex file by directly updating the device with MFUpdate, works.
Created an sample app (120KB hex file) , for the possibility that my application hex file was to large (1.3 MB )
This is the code I use where the LoadFile is copied from IFU sample


Debug.Print("Update application");
InFieldUpdate.Initialize(InFieldUpdate.Types.Application);
LoadFile("\\SD\\Update.hex", InFieldUpdate.Types.Application);
File.Delete("\\SD\\Update.hex");
InFieldUpdate.FlashAndReset();

The exception occurs in InFieldUpdate.Load(type, data, BLOCK_SIZE); line

I can upload src or hex file if needed

@ sieslynner - Is your LoadFile function identical to the one in the document?

@ John - Yes the load file is identical

@ sieslynner - Can you try to load a minimal blink LED program instead? It should only be a few kilobytes.

@ John - Hi i made a hello world app, with IFU still gives the same exception [url]Dropbox - Error I create my hex file with MFUpdate,

@ andre.m - As andre.m said, I would try to create it with FEZ Config or MFDeploy. We do not support MFUpdate.

@ andre.m - Gives the same exception with FEZ Config or MFDeploy

@ sieslynner -

Send us the hex of “minimal blink LED program”, please.

The file you sent us in the link looks incorrectly. I even can not deploy it by MFDeploy, so the problem is not IFU, it is your hex file.
The “minimal blink LED program” should be very small, few KB. Just print “Hello world” so don’t include any dll references.
Are you using 4.3 SDK?

static void main()
{    
      
       while(true)
{
      Debug.print("Hello world");
     Thread.sleep(1000);
}
}

@ John - Thanks for the help , fault was hex file got damage by my file transfer, I will look into my file transfer