In-Field Update hex size

If I deploy my project in VS it says that “Deploying assemblies for a total size of 686716 bytes”

but when I create a HEX file for IFU in FEZ config the file gets 2060152 bytes which is much more.??

Why?

The hex file is basically just a text representation of a binary file and contains additional data such a address and checksum etc. It is converted to binary at the time it gets programmed into the device. In binary format the file would be much smaller.

Thanks!

I generated a BIN file and then I get the same size as you say.

Can the SystemUpdate.Load handle the BIN format as byte array? Or is just HEX that works?