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
  • What do you mean 'add it to the Project Symbols' section? What development environment are you using? Is it even using the Makefile? If it's defined, it's defined and will be used by the preprocessor, so if it's not 'unlocking' the section in nrf_drv_common.h then it's because it's not defined, or has been undefined.

    Go check the actual build lines which are being emitted by whatever you're using to build it, if the symbol isn't on the build line, it's not defined.

Reply
  • What do you mean 'add it to the Project Symbols' section? What development environment are you using? Is it even using the Makefile? If it's defined, it's defined and will be used by the preprocessor, so if it's not 'unlocking' the section in nrf_drv_common.h then it's because it's not defined, or has been undefined.

    Go check the actual build lines which are being emitted by whatever you're using to build it, if the symbol isn't on the build line, it's not defined.

Children
No Data
Related