[SOLVED] Windows path name is included in hex image file

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Windows path name is included in hex image file

    I have a SES project targeting Nordic semi processors. Is there a way to prevent the compiler/linker from including the windows path name(s) in the hex file?

    I am about to release a tested version. As part of the process, I checked out the release candidate from version control into a empty folder. When I rebuilt the project the hex files did not match and saw the path name as part of the hex data. Both build environments are using the release configuration. I looked in the options but do not see anything obvious to omit the path names.

    Thank you,

    James
  • Hello James,

    Thank you for your inquiry.
    A hex file will only include exactly what is part of the application.
    So if you are using file paths in your application, they will be in your hex file.
    This has nothing to do with Embedded Studio.

    Check if your code has any asserts or uses macros like __FILE__ or __FILE_NAME__ and make sure they are not used in your application.
    If you need the file path references in your code you can set the file path macros that are generated by Embedded Studio to be relative instead of absolute by setting project option Code > Compiler > Supply Absolute File Path to No.

    Keep in mind however that it is possible that your code that uses that variables may not work anymore as expected so you would have to verify.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.