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)

Hello!

It's the first time using Nordic devices so i´m doing some SDK examples and trying to merge them. I'm using SEGGER Embedded Studio. Right now i´m using ble_app_blinky and tried to merge pwm_library. I already added the existing files from pwm_library to ble_app_blinky and i get the 'NRF_SUCCESS' undeclared (first use in this function).

I went to User Include Directories and added the addresses for every file i added and still have the same problem. For example,the file app_button.c has #include "app_error.h" and i see the error there.

Any idea what could be happening?

Thanks!

Parents Reply
  • Hello!

    What i find pretty weird is that files, like ‘nrf_log_frontend.c’ and ‘nrf_log_backend_uart.c’,  has that error. If I compile ble_app_blinky that error doesn´t exist in those files. Maybe, somehow, the files i added interfere and creates this problem?

    The files i added were:
    nrfx_ppi.c
    nrf_drv_ppi.c
    nrf_nvic.c
    nrf_soc.c
    nrfx_timer.c
    app_pwm.c

    No other errors or warnings after adding all the files from pwm_library project. 

Children
Related