[SOLVED] howto: file location using shell variable or custom made macro

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

  • [SOLVED] howto: file location using shell variable or custom made macro

    Hello All,
    I am new to SES and using it with Nordic NRF52840 and Nordic SDK 15.2.

    I want to adopt some examples found in the SDK. There are given project files for Makefile and SES generation (and others).
    Basically I do not want to develop inside the SDK but outside.

    The Makefile examples support this
    Makefile:
    SRC_FILES += \
    $(SDK_ROOT)/modules/nrfx/mdk/gcc_startup_nrf52840.S \

    SES looks as following:
    SES:
    <folder Name="Application">
    <file file_name="../../../main.c" />
    <file file_name="../config/sdk_config.h" />

    So in SES I do not find this customization.
    Although there is possible to use predefined Macros as following:
    <file file_name="$(StudioDir)/source/thumb_crt0.s" />


    How can I place a logical link instead of giving an absolute path?
    Can I create my own custom Macros?
    such as $(SDK_ROOT) defined in environment or SES.

    Thanks,

    adib.

    The post was edited 1 time, last by adib ().

  • Hello,

    Thank you for your inquiry.
    You can add custom macros under Tools->Options->Building->Global Macros

    A list with predefined macros can be found if you first need to open project options, then open any option that allows macros, e.g. "Additional Assembler Options".
    There you will find in the bottom right corner an arrow. If you hower over it it will say "Show Marcos". Expand it and you should see the full list of ES macros available.

    Best regards,
    Nino
    Please read the forum rules before posting: Forum Rules

    Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
    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.
  • Hi Nino, thanks for your response.

    I do not find how to add a new custom Macro.
    In the dialogue I do not see Global Macros.

    Could you guide me please.

    attached is a screenshot of my tools->options window with all the building keys.

    Thanks, Adib.
    --
    Images
    • tools_options.png

      37.03 kB, 1,169×504, viewed 115 times
  • Hello,

    You should be able to expand these topics, see attached.

    Best regards,
    Nino
    Images
    • Capture.PNG

      24.68 kB, 616×538, viewed 128 times
    Please read the forum rules before posting: Forum Rules

    Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
    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.