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

SOFTDEVICE_PRESENT

Hi, 

I use sdk15.3, with segger embedded and with PCA10040.

I try to combine two programs to display the actual date on an lcd screen:

- one using Bluetooth to have the actual date (ble_app_proximity)

- one using gfx library to display something on the screen with st7735

I have a problem with SOFTDEVICE_PRESENT, because it isn't defined in the program using gfx, so nrf_error.h looks like this:

And it's defined in the program using Bluetooth, so nrf_error.h looks like this:

When I built my combined program, the error is: 'NRF_SUCCESS' undeclared (first use in this function); did you mean 'EXIT_SUCCESS'? 

It's normal because the compiler ignores nrf_error.h

So I don't know what to do. In fact, I don't know what is SOFTDEVICE_PRESENT real use, where is defined, and if I need to define it or not.

Can I get some help to get a clearer picture?

Thanks,

Lydie

Related