This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why some examples in SDK12.30 Does not compile!!!

Hi, I have tested several BLE examples in SDK12.30 and they would not compile, what's the problem? for example here is the output of ble_app_uart example.

*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Build target 'nrf51422_xxac' compiling main.c... ............\components\softdevice\common\softdevice_handler\softdevice_handler.h(68): error: #5: cannot open source input file "ble_stack_handler_types.h": No such file or directory #include "ble_stack_handler_types.h" ......\main.c: 0 warnings, 1 error compiling bsp_nfc.c... compiling boards.c... compiling bsp_btn_ble.c... compiling ble_conn_params.c... compiling bsp.c... compiling ble_advertising.c... compiling ble_advdata.c... compiling nrf_drv_clock.c... ............\components\softdevice\common\softdevice_handler\softdevice_handler.h(68): error: #5: cannot open source input file "ble_stack_handler_types.h": No such file or directory #include "ble_stack_handler_types.h" ............\components\drivers_nrf\clock\nrf_drv_clock.c: 0 warnings, 1 error compiling ble_srv_common.c... compiling ble_nus.c... compiling nrf_drv_common.c... compiling app_button.c... compiling app_error.c... compiling nrf_drv_gpiote.c... compiling nrf_drv_uart.c... compiling app_error_weak.c... compiling app_fifo.c... compiling sdk_errors.c... compiling app_uart_fifo.c... compiling app_util_platform.c... compiling app_timer.c... compiling hardfault_implementation.c... compiling nrf_assert.c... compiling RTT_Syscalls_KEIL.c... compiling fstorage.c... compiling SEGGER_RTT_printf.c... compiling retarget.c... assembling arm_startup_nrf51.s... compiling nrf_log_backend_serial.c... compiling nrf_log_frontend.c... compiling softdevice_handler.c... ............\components\softdevice\common\softdevice_handler\softdevice_handler.h(68): error: #5: cannot open source input file "ble_stack_handler_types.h": No such file or directory #include "ble_stack_handler_types.h" ............\components\softdevice\common\softdevice_handler\softdevice_handler.c: 0 warnings, 1 error compiling system_nrf51.c... compiling SEGGER_RTT.c... "._build\nrf51422_xxac.axf" - 3 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:03

  • I bet you copied them outside of the rest of SDK, didn't you? What is your SDK location, and the project you are trying to compile location? Or maybe the path is too long.

  • Hi, Thanks for the update, no I did not copy the projects from the SDK Folder, I have just extracted the SDK on my desktop.

    This is the full SDK and project path

    C:\Users\Administrator\Desktop\Nordic\SDK 12.30\nRF5_SDK_12.3.0_d7731ad\nRF5_SDK_12.3.0_d7731ad\examples\ble_peripheral\ble_app_uart

    I have found the solution, it was a space in the project path, after removing the SDK 12.30 space in the path and chaning it to SDK12.30 now it will compile!

  • the project path for Keil Ver 5

    C:\Users\Administrator\Desktop\Nordic\SDK12.30\nRF5_SDK_12.3.0_d7731ad\nRF5_SDK_12.3.0_d7731ad\examples\ble_peripheral\ble_app_uart\pca10028\s130\arm5_no_packs

Related