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 Reply Children
No Data
Related