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

'NRF_EVT_FLASH_OPERATION_SUCCESS' undeclared (first use in this function)

I am trying to Compiling ‘ble_advertising.c’ and get 'NRF_EVT_FLASH_OPERATION_SUCCESS' undeclared (first use in this function).

This declaretion is already in the nrf_soc.h and i have set system include directories with path of the nrf_soc.h but still getting this error. Thank you.

Parents
  • Hi

    Usually, "undecleared" errors are due to the limited path length in Windows (if that's the OS you're using). Please try moving the SDK folder to a shorter path, for instance C:\SDK_FOLDER\.

    Please provide some more information on your application. Is this one of the default SDK examples or a project you have modified/created yourself?Do you see any errors if you try compiling the main.c file or build and run the application as a whole?

    Best regards,

    Simon

Reply
  • Hi

    Usually, "undecleared" errors are due to the limited path length in Windows (if that's the OS you're using). Please try moving the SDK folder to a shorter path, for instance C:\SDK_FOLDER\.

    Please provide some more information on your application. Is this one of the default SDK examples or a project you have modified/created yourself?Do you see any errors if you try compiling the main.c file or build and run the application as a whole?

    Best regards,

    Simon

Children
  • I saw that anwser in the forum but my path is already short "C:\nRF5_SDK_14.2.0_17b948a\components\softdevice\s132\headers"

    Actually i have created this project without ble using. I was using nrf52832 as ordinary mcu but now i need to use dfu with ble so i started to merge my project with buttonless dfu example. Main.c is ok. I am just getting errors at multiple nrf ble libraries because of the nrf_soc.h

    • implicit declaration of function 'sd_flash_page_erase' [-Wimplicit-function-declaration]
    • 'NRF_EVT_FLASH_OPERATION_SUCCESS' undeclared (first use in this function)
    • 'NRF_EVT_FLASH_OPERATION_ERROR' undeclared (first use in this function)
    • Output/nrf52832_xxaa/Obj/DWM1001_Tag/nrf_sdh_soc.o: in function `nrf_sdh_soc_evts_poll':
    • implicit declaration of function 'sd_evt_get' [-Wimplicit-function-declaration]
Related