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

Missing header files while compiling example code from Nordic support team

Hello

I have been trying to use this repository: https://github.com/NordicPlayground/nrf51-ADC-examples and upon building, i get several errors due to certain header files being absent.

The project from the repository i have tried is the ble_app_hrs_adc_battery_measurement.

Some of the missing header files are- boards.c, bsp_nfc.c, nrf_ble_gatt.c, etc.

I tried using the nRF5 SDK11.0 as well as SDK12.0 but neither had the required files.

The software I am using to build these projects is Keil uvision V5.24.2.0

Is there an online repository to perhaps download these header files selectively?

If not, please suggest solutions for this.

Thank you

Parents
  • Hi,

    Did you follow the steps under "Requirements" in the README.md, and either "clone the repository in the \nRF5_SDK_12.2.0_f012efa\examples\peripheral\ or \nRF5_SDK_12.2.0_f012efa\examples\ble_peripheral\ folder" or "[place the project folder] into the \nRF5_SDK_12.2.0_f012efa\examples\peripheral\ folder"? As long as you use SDK v12.2.0 and place the project folder correctly in the SDK file hierarchy all of the include paths and source code paths should be included.

    Regards,
    Terje

Reply
  • Hi,

    Did you follow the steps under "Requirements" in the README.md, and either "clone the repository in the \nRF5_SDK_12.2.0_f012efa\examples\peripheral\ or \nRF5_SDK_12.2.0_f012efa\examples\ble_peripheral\ folder" or "[place the project folder] into the \nRF5_SDK_12.2.0_f012efa\examples\peripheral\ folder"? As long as you use SDK v12.2.0 and place the project folder correctly in the SDK file hierarchy all of the include paths and source code paths should be included.

    Regards,
    Terje

Children
  • Thank you,

    That specific version of the SDK solved my problem.

    Edit: after compilation though, in the linking stage, 3 errors were caused-

    .\_build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol app_sched_event_put (referred from main.o).
    .\_build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol nrf_drv_adc_buffer_convert (referred from main.o).
    .\_build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol nrf_drv_adc_sample (referred from main.o).
    Not enough information to list image symbols.
    Not enough information to list load addresses in the image map.
    Finished: 2 information, 0 warning and 3 error messages.

    Any solutions for this?

    Edit 2: Apparently I'm not the only one with these issues.

    https://github.com/NordicPlayground/nrf51-ADC-examples/issues/5

    Edit 3: My issue has been resolved. The repository was updated and the errors don't appear anymore.

Related