How to include pre-processor directives in an SES Nordic Edition project?

Hello,

I am using SES Nordic Edition v5.60 and I would like to be able to include pre-processor directives in my project but I could not find the pre-processor optins.

Please help.

Kind regards

Mohamed

Parents Reply
  • Hi Abhijith,

    In the SES-Nordic edition if you use project-->Configure nRF connect sdk project you will end up in a screen as shown below where you can load your file.
    Load which file?
    What goes in this file?
    Can you share with me a template or example for this file?

    I thought the user can configure the project by selecting the appropriate options from the screenshot above. I looked for pre-processor settings but I could not find them.

    Finally, can you please explain how each of the fields "Load", "Save As" and "Configure"  in the screenshot above are used?

    Kind regards
    Mohamed
Children
  • Hello,

    Really sorry, but with Nordic SES edition and NCS it is not possible to add the preprocessor via nRF configuration option, if you open your file via Open nRf connect SDK project   (File-->open nRF connect SDK project... ). But if you are creating a new project from file option(File-->New Project), then you can see the preprocessor option. I tested it now and the previous answer was based on an older version(SDK). I have raised the question internally about whether there is any option to add preprocessor directives from SES IDE with NCS. My apologies if the last answer consumed your time a lot. You can add preprocessor directives by updating Cmake file.

    Kind Regards,

    Abhijith

     

  • Thank you Abhijith,

    Could you please explain how each of the fields "Load""Save As" and "Configure"  in the screenshot below are used?

    Kind regards
    Mohamed
Related