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

i cant find lbs example on \SDK8.0.0\examples\ble_peripheral\nrf51-ble-app-lbs-master\arm and compile.

i cant find lbs example on \SDK8.0.0\examples\ble_peripheral\nrf51-ble-app-lbs-master\arm and compile.I planned to work with nrf51822 dk. The given example in github shows in keil 4 as

Build target 'nrf51822_xxaa_s110 (256K)' compiling system_nrf51.c... system_nrf51.c: Error: #5: cannot open source input file "........\components\toolchain\system_nrf51.c": No such file or directory Target not created

  • SDK 8.0 does not have this example. you have to get this project from Github and copy copy the folder nrf51-ble-app-lbs (you downloaded or cloned) to SDK8.0\examples\ble_peripheral folder. I have tried this example a month ago and it worked fine.

  • I have Keil5.15 so I cannot test it for Keil4 This is the compiler output image description

  • make sure that you extract it correctly like this

    nRF51_SDK_8.0.0_5fc2c3a\examples\ble_peripheral\nrf51-ble-app-lbs-master\

    instead of

    nRF51_SDK_8.0.0_5fc2c3a\examples\ble_peripheral\nrf51-ble-app-lbs-master\nrf51-ble-app-lbs-master

  • ya i did with keil 5.15 and extracted like what u said but still issues came

    *** Using Compiler 'V5.05 update 2 (build 169)', folder: 'D:\Keil_v5\ARM\ARMCC\Bin'
    Build target 'nrf51822_xxaa_s110 (256K)'
    compiling system_nrf51.c...
    D:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.0.3\Device\Include\nrf51.h(119): error:  #5: cannot open source input file "core_cm0.h": No such file or directory
      #include "core_cm0.h"                               /*!< Cortex-M0 processor and core peripherals                              */
    ..\..\..\..\components\toolchain\system_nrf51.c: 0 warnings, 1 error
    assembling arm_startup_nrf51.s...
    compiling main.c...
    D:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.0.3\Device\Include\nrf51.h(119): error:  #5: cannot open source input file "core_cm0.h": No such file or directory
      #include "core_cm0.h"                               /*!< Cortex-M0 processor and core peripherals                              */
    ..\main.c: 0 warnings, 1 error
    compiling ble_lbs.c...
    compiling ble_srv_common.c...
    compiling ble_error_log.c...
    D:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.0.3\Device\Include\nrf51.h(119): error:  #5: cannot open source input file "core_cm0.h": No such file or directory
      #include "core_cm0.h"                               /*!< Cortex-M0 processor and core peripherals                              */
    ..\..\..\..\components\ble\ble_error_log\ble_error_log.c: 0 warnings, 1 error
    compiling ble_debug_assert_handler.c...
    D:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.0.3\Device\Include\nrf51.h(119): error:  #5: cannot open source input file "core_cm0.h": No such file or directory
      #include "core_cm0.h"                               /*!< Cortex-M0 processor and core peripherals                              */
    ..\..\..\..\components\ble\ble_debug_assert_handler\ble_debug_assert_handler.c: 0 warnings, 1 error
    compiling ble_conn_params.c...
    compiling softdevice_handler.c...
    D:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.0.3\Device\Include\nrf51.h(119): error:  #5: cannot open source input file "core_cm0.h": No such file or directory
      #include "core_cm0.h"                               /*!< Cortex-M0 processor and core peripherals                              */
    ..\..\..\..\components\softdevice\common\softdevice_handler\softdevice_handler.c: 0 warnings, 1 error
    compiling app_button.c...
    D:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.0.3\Device\Include\nrf51.h(119): error:  #5: cannot open source input file "core_cm0.h": No such file or directory
      #include "core_cm0.h"                               /*!< Cortex-M0 processor and core peripherals                              */
    ..\..\..\..\components\libraries\button\app_button.c: 0 warnings, 1 error
    compiling app_scheduler.c...
    D:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.0.3\Device\Include\nrf51.h(119): error:  #5: cannot open source input file "core_cm0.h": No such file or directory
      #include "core_cm0.h"                               /*!< Cortex-M0 processor and core peripherals                              */
    ..\..\..\..\components\libraries\scheduler\app_scheduler.c: 0 warnings, 1 error
    compiling ble_advdata.c...
    compiling crc16.c...
    compiling pstorage.c...
    D:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.0.3\Device\Include\nrf51.h(119): error:  #5: cannot open source input file "core_cm0.h": No such file or directory
      #include "core_cm0.h"                               /*!< Cortex-M0 processor and core peripherals                              */
    ..\..\..\..\components\drivers_nrf\pstorage\pstorage.c: 0 warnings, 1 error
    compiling app_gpiote.c...
    D:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.0.3\Device\Include\nrf51.h(119): error:  #5: cannot open source input file "core_cm0.h": No such file or directory
      #include "core_cm0.h"                               /*!< Cortex-M0 processor and core peripherals                              */
    ..\..\..\..\components\libraries\gpiote\app_gpiote.c: 0 warnings, 1 error
    compiling app_timer.c...
    D:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.0.3\Device\Include\nrf51.h(119): error:  #5: cannot open source input file "core_cm0.h": No such file or directory
      #include "core_cm0.h"                               /*!< Cortex-M0 processor and core peripherals                              */
    ..\..\..\..\components\libraries\timer\app_timer.c: 0 warnings, 1 error
    compiling app_timer_appsh.c...
    ".\_build\ble_app_lbs.axf" - 10 Error(s), 0 Warning(s).
    Target not created.
    Build Time Elapsed:  00:00:04
    
Related