2. replace few files so that the code matches the original code (but .cproject file of the projects is different)
3. build the project to generate .s37
But when a file comparison is done on the resultant .s37 binary with the original .s37 binary, both are not same.
Is this expected behavior, if so, will this affect the functionality of the resultant binary?
Thanks a lot,
Vaishnavi
Discussion Forums
Simplicity Studio
Answered
Answered
Hi Vaishnavi,
So if the files that are replaced in the project have a different path even though the code is the same, there might be some differences in the output file in a few instances.
First is the linker order the same for both projects? [Project Properties] > [GNU ARM C Linker] > [Ordering]
Second, is the Debug Setting or any "DEBUG" style defines affecting the output:
look at the project properties [C/C++ Build] > [Settings]
a. [Debug Settings] - try setting it to [None]
b. [GNU ARM C Compiler] look in the -D options under [All Options] are there any with DEBUG in them?
I have sometimes used a tool such as Hex Edit on the .bin file as it will also display the data in ASCII making it easy to see if the output has any paths in it as that could explain the reason for the differences.
Difference in 2 projects containing same code
Hi All,
I have a task in which I need to
1. create a project
2. replace few files so that the code matches the original code (but .cproject file of the projects is different)
3. build the project to generate .s37
But when a file comparison is done on the resultant .s37 binary with the original .s37 binary, both are not same.
Is this expected behavior, if so, will this affect the functionality of the resultant binary?
Thanks a lot,
Vaishnavi
Hi Vaishnavi,
So if the files that are replaced in the project have a different path even though the code is the same, there might be some differences in the output file in a few instances.
First is the linker order the same for both projects? [Project Properties] > [GNU ARM C Linker] > [Ordering]
Second, is the Debug Setting or any "DEBUG" style defines affecting the output:
look at the project properties [C/C++ Build] > [Settings]
a. [Debug Settings] - try setting it to [None]
b. [GNU ARM C Compiler] look in the -D options under [All Options] are there any with DEBUG in them?
I have sometimes used a tool such as Hex Edit on the .bin file as it will also display the data in ASCII making it easy to see if the output has any paths in it as that could explain the reason for the differences.
I hope that helps.
Thank you,
jpitt