This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Different Keil Versions produce different .Hex files for the same code. Keil-4 Vs Keil-5??

Will the .hex files be different if there is any change in the Keil version. 

  • Almost certainly Yes!

    The same would apply to any compiler.

    Especially when there's a change in the Major version number!

  • Indeed, the files will be different, probably significantly, changes within the code may be more subtle, you'd need to review listing files to understand the real scope of the changes.

    To ensure the same output you'd need to control the tools, settings and all the libraries from which it composes the output.

    Minor changes in size and placement of code will have significant and compounding effects in the .HEX and .BIN outputs.