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

NRF_success undeclared error

Hi,

I included pwm code in my code and its related libraries and drivers.I am getting errors like these :

  Compiling ‘nrf_log_frontend.c’
    'NRF_ERROR_INVALID_PARAM' undeclared (first use in this function); did you mean 'NRF_ERROR_IO_PENDING'?
    each undeclared identifier is reported only once for each function it appears in
    'NRF_SUCCESS' undeclared (first use in this function); did you mean 'EXIT_SUCCESS'?
    'NRF_SUCCESS' undeclared (first use in this function); did you mean 'EXIT_SUCCESS'?
    'NRF_ERROR_NOT_FOUND' undeclared (first use in this function); did you mean 'NRF_ERROR_IO_PENDING'?
    'NRF_SUCCESS' undeclared (first use in this function); did you mean 'EXIT_SUCCESS'?
    'NRF_SUCCESS' undeclared (first use in this function); did you mean 'EXIT_SUCCESS'?
    'NRF_SUCCESS' undeclared (first use in this function); did you mean 'EXIT_SUCCESS'?
  Output/ble_app_hrs_rscs_relay_pca10040_s132 Release/Obj/nrf_log_str_formatter.o does not exist.
  Compiling ‘nrf_log_str_formatter.c’
  Output/ble_app_hrs_rscs_relay_pca10040_s132 Release/Obj/app_button.o does not exist.
  Compiling ‘app_button.c’
    'NRF_SUCCESS' undeclared (first use in this function); did you mean 'NRFX_SUCCESS'?
    each undeclared identifier is reported only once for each function it appears in
    'NRF_ERROR_INVALID_PARAM' undeclared (first use in this function); did you mean 'NRFX_ERROR_INVALID_PARAM'?
    sdk_common.h
    app_button.c
    'NRF_SUCCESS' undeclared (first use in this function); did you mean 'NRFX_SUCCESS'?
    in expansion of macro 'VERIFY_SUCCESS'
    'NRF_SUCCESS' undeclared (first use in this function); did you mean 'NRFX_SUCCESS'?
  Output/ble_app_hrs_rscs_relay_pca10040_s132 Release/Obj/app_error.o does not exist.
  Compiling ‘app_error.c’
Build failed

I removed non-Softdevice paths from the user include directory and it looks like this:

Thank you

Parents
  • I have the same error.

    I had a working non-BLE application (i.e. no SOFTDEVICE used) and decided to port across the BLE_UART example code.

    In new code application, I added in SOFTDEVICE_PRESENT within the preprocessor definitions which is used in the <sdk root>/components/drivers_nrf/nrf_Soc_nosd/nrf_error.h file as a check. So this definition triggers correctly.

    What I cannot work out is how does the BLE UART example point to the <sdk_root>/components/softdevice/s132/headers/nrf_error.h file as there is no explicit path reference to this nrf_error.h file.

Reply
  • I have the same error.

    I had a working non-BLE application (i.e. no SOFTDEVICE used) and decided to port across the BLE_UART example code.

    In new code application, I added in SOFTDEVICE_PRESENT within the preprocessor definitions which is used in the <sdk root>/components/drivers_nrf/nrf_Soc_nosd/nrf_error.h file as a check. So this definition triggers correctly.

    What I cannot work out is how does the BLE UART example point to the <sdk_root>/components/softdevice/s132/headers/nrf_error.h file as there is no explicit path reference to this nrf_error.h file.

Children
Related