Dear all, I am following the user guide nRF51822_Evaluation_Kit User_Guide v1.2.pdf When I try to compile the example C:\Keil_v5\ARM\Device\Nordic\nrf51822\Board\pca10001\s110\ble_app_hrs\arm\ble_app_hrs.uvproj using the Keil_v5 evaluation tool. I got these errors :
Build target 'nrf51822_xxaa_s110 (256K)'
compiling system_nrf51.c...
..\..\..\..\..\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 */
..\..\..\..\..\Source\templates\system_nrf51.c: 0 warnings, 1 error
compiling main.c...
..\..\..\..\..\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 battery.c...
..\..\..\..\..\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 */
..\battery.c: 0 warnings, 1 error
compiling led.c...
..\..\..\..\..\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 */
..\led.c: 0 warnings, 1 error
compiling app_timer.c...
..\..\..\..\..\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 */
..\..\..\..\..\Source\app_common\app_timer.c: 0 warnings, 1 error
compiling softdevice_handler.c...
..\..\..\..\..\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 */
..\..\..\..\..\Source\sd_common\softdevice_handler.c: 0 warnings, 1 error
compiling app_trace.c...
..\..\..\..\..\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 */
..\..\..\..\..\Source\app_common\app_trace.c: 0 warnings, 1 error
compiling simple_uart.c...
..\..\..\..\..\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 */
..\..\..\..\..\Source\simple_uart\simple_uart.c: 0 warnings, 1 error
compiling pstorage.c...
..\..\..\..\..\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 */
..\..\..\..\..\Source\app_common\pstorage.c: 0 warnings, 1 error
compiling app_button.c...
..\..\..\..\..\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 */
..\..\..\..\..\Source\app_common\app_button.c: 0 warnings, 1 error
compiling app_gpiote.c...
..\..\..\..\..\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 */
..\..\..\..\..\Source\app_common\app_gpiote.c: 0 warnings, 1 error
compiling ble_error_log.c...
..\..\..\..\..\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 */
..\..\..\..\..\Source\ble\ble_error_log.c: 0 warnings, 1 error
compiling ble_debug_assert_handler.c...
..\..\..\..\..\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 */
..\..\..\..\..\Source\ble\ble_debug_assert_handler.c: 0 warnings, 1 error
".\_build\ble_app_hrs.axf" - 13 Error(s), 0 Warning(s).
Target not created.
I guess I could try to fix the path of the referenced library
C:\Keil_v5\ARM\Pack\ARM\CMSIS\4.2.0\CMSIS\Include\core_cm0.h
C:\Keil_v5\ARM\Device\Nordic\nrf51422\Include\nrf51.h
anyway, I would like to know what would be the cleanest way to fix it.
Thanks and Kind Regards,