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

customize board with nRF52840 needed to communicate via PC bluetooth

Hi All,

I am working on customized board using nRF52840 chip, I have a application which was developed using nRF development kit that communicates to my customize board.

But Right now I am not able to use the development kit and I have pc and my customized board.

So using PC's bluetooth is there any application there from nordic so that I can communicate to my board.

On board I have several peripheral I need to check.

so is it possible ?

Parents Reply Children
  • *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\NEW_KeilV5_Pre\Keil_v5\ARM\ARMCC\Bin'
    Build target 'nrf52832_xxaa'
    compiling system_nrf52.c...
    ..\..\..\..\..\..\modules\nrfx\mdk\nrf52.h(146): error:  #5: cannot open source input file "core_cm4.h": No such file or directory
      #include "core_cm4.h"                               /*!< Cortex-M4 processor and core peripherals                              */
    ..\..\..\..\..\..\modules\nrfx\mdk\system_nrf52.c: 0 warnings, 1 error
    compiling main.c...
    ..\..\..\..\..\..\modules\nrfx\mdk\nrf52.h(146): error:  #5: cannot open source input file "core_cm4.h": No such file or directory
      #include "core_cm4.h"                               /*!< Cortex-M4 processor and core peripherals                              */
    ..\..\..\main.c: 0 warnings, 1 error
    assembling arm_startup_nrf52.s...
    compiling boards.c...
    ..\..\..\..\..\..\modules\nrfx\mdk\nrf52.h(146): error:  #5: cannot open source input file "core_cm4.h": No such file or directory
      #include "core_cm4.h"                               /*!< Cortex-M4 processor and core peripherals                              */
    ..\..\..\..\..\..\components\boards\boards.c: 0 warnings, 1 error
    compiling nrfx_prs.c...
    ..\..\..\..\..\..\modules\nrfx\mdk\nrf52.h(146): error:  #5: cannot open source input file "core_cm4.h": No such file or directory
      #include "core_cm4.h"                               /*!< Cortex-M4 processor and core peripherals                              */
    ..\..\..\..\..\..\modules\nrfx\drivers\src\prs\nrfx_prs.c: 0 warnings, 1 error
    compiling nrf_drv_uart.c...
    ..\..\..\..\..\..\modules\nrfx\mdk\nrf52.h(146): error:  #5: cannot open source input file "core_cm4.h": No such file or directory
      #include "core_cm4.h"                               /*!< Cortex-M4 processor and core peripherals                              */
    ..\..\..\..\..\..\integration\nrfx\legacy\nrf_drv_uart.c: 0 warnings, 1 error
    compiling nrfx_uart.c...
    ..\..\..\..\..\..\modules\nrfx\mdk\nrf52.h(146): error:  #5: cannot open source input file "core_cm4.h": No such file or directory
      #include "core_cm4.h"                               /*!< Cortex-M4 processor and core peripherals                              */
    ..\..\..\..\..\..\modules\nrfx\drivers\src\nrfx_uart.c: 0 warnings, 1 error
    compiling nrfx_uarte.c...
    ..\..\..\..\..\..\modules\nrfx\mdk\nrf52.h(146): error:  #5: cannot open source input file "core_cm4.h": No such file or directory
      #include "core_cm4.h"                               /*!< Cortex-M4 processor and core peripherals                              */
    ..\..\..\..\..\..\modules\nrfx\drivers\src\nrfx_uarte.c: 0 warnings, 1 error
    compiling app_error.c...
    ..\..\..\..\..\..\modules\nrfx\mdk\nrf52.h(146): error:  #5: cannot open source input file "core_cm4.h": No such file or directory
      #include "core_cm4.h"                               /*!< Cortex-M4 processor and core peripherals                              */
    ..\..\..\..\..\..\components\libraries\util\app_error.c: 0 warnings, 1 error
    compiling app_error_handler_keil.c...
    ..\..\..\..\..\..\modules\nrfx\mdk\nrf52.h(146): error:  #5: cannot open source input file "core_cm4.h": No such file or directory
      #include "core_cm4.h"                               /*!< Cortex-M4 processor and core peripherals                              */
    ..\..\..\..\..\..\components\libraries\util\app_error_handler_keil.c: 0 warnings, 1 error
    compiling app_error_weak.c...
    ..\..\..\..\..\..\modules\nrfx\mdk\nrf52.h(146): error:  #5: cannot open source input file "core_cm4.h": No such file or directory
      #include "core_cm4.h"                               /*!< Cortex-M4 processor and core peripherals                              */
    ..\..\..\..\..\..\components\libraries\util\app_error_weak.c: 0 warnings, 1 error
    compiling app_fifo.c...
    ..\..\..\..\..\..\modules\nrfx\mdk\nrf52.h(146): error:  #5: cannot open source input file "core_cm4.h": No such file or directory
      #include "core_cm4.h"                               /*!< Cortex-M4 processor and core peripherals                              */
    ..\..\..\..\..\..\components\libraries\fifo\app_fifo.c: 0 warnings, 1 error
    compiling app_uart_fifo.c...
    ..\..\..\..\..\..\modules\nrfx\mdk\nrf52.h(146): error:  #5: cannot open source input file "core_cm4.h": No such file or directory
      #include "core_cm4.h"                               /*!< Cortex-M4 processor and core peripherals                              */
    ..\..\..\..\..\..\components\libraries\uart\app_uart_fifo.c: 0 warnings, 1 error
    compiling app_util_platform.c...
    ..\..\..\..\..\..\modules\nrfx\mdk\nrf52.h(146): error:  #5: cannot open source input file "core_cm4.h": No such file or directory
      #include "core_cm4.h"                               /*!< Cortex-M4 processor and core peripherals                              */
    ..\..\..\..\..\..\components\libraries\util\app_util_platform.c: 0 warnings, 1 error
    compiling nrf_strerror.c...
    ..\..\..\..\..\..\modules\nrfx\mdk\nrf52.h(146): error:  #5: cannot open source input file "core_cm4.h": No such file or directory
      #include "core_cm4.h"                               /*!< Cortex-M4 processor and core peripherals                              */
    ..\..\..\..\..\..\components\libraries\strerror\nrf_strerror.c: 0 warnings, 1 error
    compiling nrf_assert.c...
    ..\..\..\..\..\..\modules\nrfx\mdk\nrf52.h(146): error:  #5: cannot open source input file "core_cm4.h": No such file or directory
      #include "core_cm4.h"                               /*!< Cortex-M4 processor and core peripherals                              */
    ..\..\..\..\..\..\components\libraries\util\nrf_assert.c: 0 warnings, 1 error
    compiling retarget.c...
    ..\..\..\..\..\..\modules\nrfx\mdk\nrf52.h(146): error:  #5: cannot open source input file "core_cm4.h": No such file or directory
      #include "core_cm4.h"                               /*!< Cortex-M4 processor and core peripherals                              */

    This errors I am getting while compiling using arm compiler updated version 5.

    Thanks

  • You haven't set your Include Paths correctly.

  • Hi,

    I have set the include paths well also added to compiler list.
    This errors comes when I select ARM compiler option in Keil.

    Below are the errors occurs while selecting GCC ARM compiler.

    Build target 'nrf52832_xxaa'
    compiling system_nrf52.c...
    *** Error: Failed to execute 'arm-none-eabi-gcc'
    compiling main.c...
    *** Error: Failed to execute 'arm-none-eabi-gcc'
    assembling arm_startup_nrf52.s...
    *** Error: Failed to execute 'arm-none-eabi-as'
    compiling boards.c...
    *** Error: Failed to execute 'arm-none-eabi-gcc'
    linking...
    --- Error: failed to execute 'arm-none-eabi-gcc'

    At first , I have also thought of include path errors, Also included other includes,

    But still error persists. I have brought up error because I wanted to know If I am missing

    any steps while compiling so That I am facing errors.

    Thanks

  • I just use the default compiler in Keil under the Target tab:

    Have you taken a look at this link? Which path have you unzipped your sdk 15 version to? Mine is quite close to the C drive:

    C:\NordicSemi\SDKs\nRF5_SDK_15.0.0_a53641a

    If you have a really long path to the sdk 15 folder, this could lead to compile issues like you have noticed.

Related