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
  • I'm using Eclipse. In the makefile examples, Nordic has defined the following: CFLAGS += -DSOFTDEVICE_PRESENT ASMFLAGS += -DSOFTDEVICE_PRESENT

    But it does not unlock the SOFTDEVICE_PRESENT sections in nrf_drv_common.h. I have add SOFTDEVICE_PRESENT as a Project Symbol include in order to unlock these sections, which seems incorrect and redundant.

    In the build console I do see -DSOFTDEVICE_PRESENT.

Reply
  • I'm using Eclipse. In the makefile examples, Nordic has defined the following: CFLAGS += -DSOFTDEVICE_PRESENT ASMFLAGS += -DSOFTDEVICE_PRESENT

    But it does not unlock the SOFTDEVICE_PRESENT sections in nrf_drv_common.h. I have add SOFTDEVICE_PRESENT as a Project Symbol include in order to unlock these sections, which seems incorrect and redundant.

    In the build console I do see -DSOFTDEVICE_PRESENT.

Children
No Data
Related