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

'NRF_SUCCESS' undeclared (first use in this function); did you mean 'NRFX_SUCCESS'?

Hi ,

Im trying to merge uart_app_ble and adafruit_tag_reader .

i have added all files but still im finding some errors like this.

have anyone came across this?

Parents
  • Hi,

    NRF_SUCCESS is defined in nrf_error.h, of which there are multiple variants. There is one for each SoftDevice (for instance in <SDK>/components/softdevice/s132/headers/) and a non-SoftDevice version (in <SDK>/components/drivers_nrf/nrf_soc_nosd/). As you use a BLE example on the nRF52832 I would expect you should have<SDK>/components/softdevice/s132/headers/ in the include path. Is that the case?

Reply
  • Hi,

    NRF_SUCCESS is defined in nrf_error.h, of which there are multiple variants. There is one for each SoftDevice (for instance in <SDK>/components/softdevice/s132/headers/) and a non-SoftDevice version (in <SDK>/components/drivers_nrf/nrf_soc_nosd/). As you use a BLE example on the nRF52832 I would expect you should have<SDK>/components/softdevice/s132/headers/ in the include path. Is that the case?

Children
Related