The HEX file will always be at least twice the size of the compiled program. I suggest you use the file's timestamp and name rather than the size to determine which is the correct file.
The HEX file will always be at least twice the size of the compiled program. I suggest you use the file's timestamp and name rather than the size to determine which is the correct file.