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

cannot compile example/ble_peripheral/ble_app_uart project

Hi,

I cannot compile the example/ble_peripheral/ble_app_uart  project (others examples are compiled ok). I didin't make any changes. The errors are some files in the library folder failed:

    <folder Name="nRF_Libraries">
      <file file_name="../../../../../../components/libraries/button/app_button.c" />
      <file file_name="../../../../../../components/libraries/util/app_error.c" />
      <file file_name="../../../../../../components/libraries/util/app_error_handler_gcc.c" />
      <file file_name="../../../../../../components/libraries/util/app_error_weak.c" />
      <file file_name="../../../../../../components/libraries/fifo/app_fifo.c" />                               //failed compilation
      <file file_name="../../../../../../components/libraries/scheduler/app_scheduler.c" />
       .... //more files
      <file file_name="../../../../../../components/libraries/uart/retarget.c" />
    </folder>

NRF_SUCCESS

NRF_ERROR_NULL,

etc. undefined (first use in this function)

The above are defined in the nrf_error.h file. But why that file is automatically included in the other .c files in the folder of nRF_Libraries, while it is not included in the app_fifo.c. How to include nrf_error.h?  ( I assume I don't need to edit library file such as app_fifo.c ).

Thank You,

David

Related