This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
On Code Composer Studio 6.1.3, I call the hex430 utility post build to convert my output file to hex using the following:
"${CG_TOOL_HEX}" -i "${BuildArtifactFileName}" -o "${BuildArtifactFileBaseName}.hex" -order MS -memwidth 8 -romwidth 16
However, I took this project over from someone else who was originally working on it and notice when I build the hex output, my hex file is larger and does not quite match up to theirs when I do a side-by-side comparison. Somewhere, my file is getting off by 0xB80 bytes and I believe is the root of my issue when I try to load this to my board. I am using an MSP430F5418A and have not modified the code that was given to me and cannot produce the same hex file from before. Does anyone know what may be the cause of this? The only difference in workstations I believe is he was using CCSv5 on a 32-bit machine while I am using CCSv6 on a 64-bit machine, but I'm not sure if that would cause a discrepancy in the output hex file. Any advice is greatly appreciated.
Thank you.
Is the same compiler version used on both workstations?Jacob Kenney said:The only difference in workstations I believe is he was using CCSv5 on a 32-bit machine while I am using CCSv6 on a 64-bit machine
The use of different compiler versions on the workstations is more likely than hex430 to explain the difference in the final hex file.
Are you sure the command line being used is the same in both computers? And is the .out file from which the hex file is being generated also the same on both machines?
Jacob Kenney said:I believe they are both using the same command line, how can I verify that?
If you still have access to the original project you can check it there (it should be in the .cproject file if you still have the original one archived somewhere).
If there is a difference in the .out files, then the hex files will also be different, even if the same command line is used for the hex conversion. A difference in .out file could occur due to a difference in compiler version or a difference in compiler or linker options.
If the .out files are identical then I would suspect the hex commands are different. If the version of hex utility, hex command line options and .out file are all the same, I can't explain why the hex outputs would be different.