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

fstorage compilation problem

i am compiling an code just to store a data to flash and retrieve it. i wrote the code for that i included fstorage.h,section_vars.h and added fstorage.c. I am not using any soft device now but while compiling i am getting the errors as

 compiling fstorage.c...
..\..\..\..\..\..\components\libraries\fstorage\fstorage.c(90): warning:  #223-D: function "sd_flash_write" declared implicitly
      return sd_flash_write((uint32_t*)p_op->store.p_dest + p_op->store.offset,
..\..\..\..\..\..\components\libraries\fstorage\fstorage.c(99): warning:  #223-D: function "sd_flash_page_erase" declared implicitly
      return sd_flash_page_erase(p_op->erase.page);

*..**\..\..\..\..\..\components\libraries\fstorage\fstorage.c(498): error:  #20: identifier "NRF_EVT_FLASH_OPERATION_SUCCESS" is undefined
              case NRF_EVT_FLASH_OPERATION_SUCCESS:
..\..\..\..\..\..\components\libraries\fstorage\fstorage.c(502): error:  #20: identifier "NRF_EVT_FLASH_OPERATION_ERROR" is undefined
              case NRF_EVT_FLASH_OPERATION_ERROR:***

..\..\..\..\..\..\components\libraries\fstorage\fstorage.c: 2 warnings, 2 errors
compiling RTT_Syscalls_KEIL.c...

whether i am missing any include file or library please guide...

Related