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

what is SOFTDEVICE_PRESENT ?

Please understand my low English level.

I am writing code to use nrf52840 dongle.
I'm putting together a few examples now.
However, some functions are not performed because they are coded for SOFTDEVICE_PRESENT to be set off (or false).
I have no idea what this SOFTDEVICE_PRESENT means.
What's this?
And how do you activate it?

Please help me.

Parents
  • Hi,

    SOFTDEVICE_PRESENT is a preprocessor symbol, indicating to the drivers and libraries that a softdevice (protocol stack) is used in the project. The softdevice blocks and restricts access to certain hardware resources. This symbol allows the drivers/libraries to use the softdevice API when a softdevice is present, to avoid errors and asserts in the application.

    The symbol should already be set in all s140 projects in the SDK, but you can also set it yourself in the project settings. How to do this will depend on which IDE/compiler you are using.

    Best regards,
    Jørgen

Reply
  • Hi,

    SOFTDEVICE_PRESENT is a preprocessor symbol, indicating to the drivers and libraries that a softdevice (protocol stack) is used in the project. The softdevice blocks and restricts access to certain hardware resources. This symbol allows the drivers/libraries to use the softdevice API when a softdevice is present, to avoid errors and asserts in the application.

    The symbol should already be set in all s140 projects in the SDK, but you can also set it yourself in the project settings. How to do this will depend on which IDE/compiler you are using.

    Best regards,
    Jørgen

Children
Related