The Segger generated hex file contains the absolute path to the development environment. How can I remove this information from the file?

I generate the hex file for a release and then tried to rebuild it in a different folder.  This is to ensure that all the required files are checked into the archive system.  The two files did not match!  I compared and found the differences is the two different path names.  The SQA people are not happy!

Thank You.

James

  

Parents
  • Hi James,

    What kind of absolute path names are you reading from the hex-file?

    Are you building the application in Release or Debug mode?

    Have you defined the DEBUG/DEBUG_NRF preprocessor symbols in your project? I suspect that the paths you are seeing is related to debug log prints of filename in case an error code puts the application in the error handler.

    Best regards,
    Jørgen

  • Hello Jørgen,

    Thank you very much for getting back to me.

    The path names were C:\Users\myname\Projects..

    I was using release mode as this is for a production release.  HOWEVER, DEBUG_NRF was listed in the preprocessor definitions in the project options just as you suspected.  Removing it resolves my issue completely!

    Not sure how I would have found that without your help.  Thanks again,

    James

Reply
  • Hello Jørgen,

    Thank you very much for getting back to me.

    The path names were C:\Users\myname\Projects..

    I was using release mode as this is for a production release.  HOWEVER, DEBUG_NRF was listed in the preprocessor definitions in the project options just as you suspected.  Removing it resolves my issue completely!

    Not sure how I would have found that without your help.  Thanks again,

    James

Children
No Data
Related