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

  • Hello,

    Please share which SDK you are trying with.

    I assume you are using nRF connect SDK, in that case you won't be able to see the preprocessor definition in the option tab. You need to configure your CMakeLists.txt and prj.conf file in the project you are trying with.

    Or in the Nordic SES IDE you can go to the project tab and find the Configure nRF connect sdk project option and add there (project-->Configure nRF connect sdk project).

    Kind Regards,

    Abhijith

  • Hi Abhijith,

    I am using nRF Connect SDK 1.7.0.

    In SES-Nordic Edition Project > Configure nRF Connect SDK Project I get two options:

    menuconfig and mcuboot_menuconfig

    I guessed I needed to click menuconfig. so I did. Then I got two options again

    Homebeacon Settings - Homebeacon is the name of my project

    Zephyr Kernel - I was hoping I will be able to see under this the pre-processor option but I could not find.

    So, how do I add my preprocessor directives such as -DNRF52_SERIES?

    Thank you.

    Kind regards

    Mohamed

  • Hi Abhijith,
    I managed to add a definition for NRF52_SERIES in CMakeLists.txt 
    add_definitions(-DNRF52_SERIES)
    How can I do the same thing if I wanted to do it in prj_conf.
    I am still interested in your answer to my previous question on how to use 
    SES-Nordic Edition: Project > Configure nRF Connect SDK Project
    Thank you.
    Kind regard
    Mohamed
  • Hello Mohammed,

    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.

    Kind Regards,

    Abhijith

  • 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
Related