This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SOFTDEVICE_PRESENT defined in Makefile and Project?

In Nordic's example GCC projects, the Makefile of the SD examples have -DSOFTDEVICE_PRESENT defined. However I noted that even though it is defined here, in nrf_drv_common.h it does not unlock the section dependent on this DEFINE. It seems I need to ALSO add SOFTDEVICE_PRESENT to the Project Symbol's section.

  1. Why does SOFTDEVICE_PRESENT have to be defined twice?

  2. Is this a new requirement for SDK 12?

Thanks,

-DC

Parents
  • Little do I know about Eclipse, however it has two build modes does it not, one where it just runs the Makefile and one where it uses the project settings to generate the build line and entirely ignores the Makefile. I did not believe there is a mode in which it parses the Makefile and then adds in more stuff from the project settings. So if you're using the latter, as it sounds like you are, then you do have to add the setting to the project settings because .. it's not using the Makefile.

    If you remove it from the project settings and it's still on the build line, then it's defined and your problem is something different.

    Perhaps it's time to find a better tool than Eclipse, it seems to cause you more trouble than its worth.

Reply
  • Little do I know about Eclipse, however it has two build modes does it not, one where it just runs the Makefile and one where it uses the project settings to generate the build line and entirely ignores the Makefile. I did not believe there is a mode in which it parses the Makefile and then adds in more stuff from the project settings. So if you're using the latter, as it sounds like you are, then you do have to add the setting to the project settings because .. it's not using the Makefile.

    If you remove it from the project settings and it's still on the build line, then it's defined and your problem is something different.

    Perhaps it's time to find a better tool than Eclipse, it seems to cause you more trouble than its worth.

Children
No Data
Related