RE:
Product: MCUXpresso IDE
Version: MCUXpresso IDE v11.4.1 [Build 6260] [2021-09-15]
Operating system: Windows 7
VM: OpenJDK 64-Bit Server VM (64 bit)
I am trying to reorganize a project and when I move a driver file fsl_adc.c to its own folder, then the compiled bin file is different yes different. Any ideas? I would like the bin file to stay the same since I am not making changes..I'm loosing hair on this one.
Yes I see lots of asserts in the driver files and some path stuff references in the bin compare
Is there a compiler switch to turn off asserts in the code or am i out of luck trying to keep the bin file the same.
I'm trying not to change the bin file to save expensive retesting if the bin file changes.
Yes, there is a way to disable the asserts, see the NDEBUG thing in the mentioned article.
Can you show a diff of the two bin files?
I suspect that you have asserts in your code, and they use the file path.
See https://mcuoneclipse.com/2021/01/23/assert-__file__-path-and-other-cool-gnu-gcc-tricks-to-be-aware-o... how to address that.
I hope this helps,
Erich