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

nrf51-ble-app-lbs

i downloaded source code from github.com/.../nrf51-ble-app-lbs. and i am getting error like C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.2.0\Device\Include\nrf51.h(119): error: #5: cannot open source input file "core_cm0.h": No such file or directory. can you tell me how to solve this error?

Parents
  • if you open the project in keil go to -> pack installer. Check if u have installed all the packs or if you can update them. you need to download all the device specific and generic packs for you're Nordic chip. if you have installed them all. go to the tap examples. Copy the example you want to use for you're project.

    Check if you can compile them now without errors.

Reply
  • if you open the project in keil go to -> pack installer. Check if u have installed all the packs or if you can update them. you need to download all the device specific and generic packs for you're Nordic chip. if you have installed them all. go to the tap examples. Copy the example you want to use for you're project.

    Check if you can compile them now without errors.

Children
  • i can't . i am getting this error *** Using Compiler 'V5.06 update 1 (build 61)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Rebuild target 'nrf51822_xxaa_s110 (256K)' assembling arm_startup_nrf51.s... compiling main.c... ..\main.c(148): error: #55-D: too many arguments in invocation of macro "APP_TIMER_APPSH_INIT" APP_TIMER_APPSH_INIT(APP_TIMER_PRESCALER, APP_TIMER_MAX_TIMERS, APP_TIMER_OP_QUEUE_SIZE, true); ..\main.c(342): warning: #550-D: variable "m_auth_status" was set but never used static ble_gap_evt_auth_status_t m_auth_status; ..\main.c: 1 warning, 1 error compiling system_nrf51.c... compiling ble_lbs.c... compiling ble_srv_common.c... compiling ble_conn_params.c... compiling ble_debug_assert_handler.c... compiling ble_error_log.c... compiling softdevice_handler.c... compiling app_button.c... ........\components\libraries\button\app_button.c(19): error: #5: cannot open source input file "nrf_drv_gpiote.h": No such file or directory #include "nrf_drv_gpiote.h" ........\components\libraries\button\app_button.c: 0 warnings, 1 error compiling app_scheduler.c... compiling crc16.c... compiling ble_advdata.c... compiling app_gpiote.c... ........\components\libraries\gpiote\app_gpiote.c(14): error: #5: cannot open source input file "nrf_drv_gpiote.h": No such file or directory #include "nrf_drv_gpiote.h" ........\components\libraries\gpiote\app_gpiote.c: 0 warnings, 1 error compiling pstorage.c... ........\components\drivers_nrf\pstorage\pstorage.c(228): error: #20: identifier "PSTORAGE_NUM_OF_PAGES" is undefined static pstorage_module_table_t m_app_table[PSTORAGE_NUM_OF_PAGES]; /**< Registered application information table. */ ........\components\drivers_nrf\pstorage\pstorage.c: 0 warnings, 1 error compiling app_timer.c... ........\components\libraries\timer\app_timer.c(62): error: #39: division by zero

    TATIC_ASSERT(sizeof(timer_node_t) == APP_TIMER_NODE_SIZE); ........\components\libraries\timer\app_timer.c: 0 warnings, 1 error compiling app_timer_appsh.c... compiling ble_advdata.c... compiling ble_srv_common.c... compiling ble_conn_params.c... compiling nrf_delay.c... compiling app_error.c... compiling app_timer.c... RTE\nRF_Libraries\nRF51822_xxAA\app_timer.c(62): error: #39: division by zero

    TATIC_ASSERT(sizeof(timer_node_t) == APP_TIMER_NODE_SIZE); RTE\nRF_Libraries\nRF51822_xxAA\app_timer.c: 0 warnings, 1 error compiling softdevice_handler.c... "._build\ble_app_lbs.axf" - 6 Error(s), 1 Warning(s). Target not created. Build Time Elapsed: 00:00:12

  • i tried everything but can't sove that error

  • The compiler can't find the right source en header files. Can you check if you have all the necessary packs in your project? Go to the manage run-time environment. In the error message you can read all the components that are missing like "nrf_drv_common, and nrf_drv_gpiote". Select all the necessary components for your project until you are error free. If you add them check if the components got green, otherwise you can see at the validation output which other files are necessary for the component to work properly. I hope you get the project running like this.

    Can you otherwise check my project if that one will work http://we.tl/YgKO2IZCr2

Related