I'm getting different bin files when I move a driver file?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I'm getting different bin files when I move a driver file?

1,432 Views
BetoGreen
Contributor III

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.

 

 

0 Kudos
Reply
3 Replies

1,406 Views
BetoGreen
Contributor III

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.

 

0 Kudos
Reply

1,405 Views
ErichStyger
Specialist I

Yes, there is a way to disable the asserts, see the NDEBUG thing in the mentioned article.

0 Kudos
Reply

1,412 Views
ErichStyger
Specialist I

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

0 Kudos
Reply