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 ?

  • Take a look at the uart example from sdk 15. If you want to experiment with BLE UART, you can take a look at this example.

    The dongle is not meant to be used as a development kit. It is a better idea to develop on a dev kit. There are a few examples in sdk 15 (just search for pca10059 under the examples folder). nRF Connect for PC will automatically program the chip using it's own connectivity firmware & be able to connect to other dev kits over ble uart for example.

  • Thanks for example,

    But When I try to compile code via keil ( IDE I am using, with arm or GCC compiler selection).The example throws many errors, (i have tried with uart example folders, are, pca10040,pca 10040e, pca 10056) and doesn't compile.

    I understood about dongle, and will not flash anything and will use by nrf go studio. :-)

    Thanks,

  • What error codes are you receiving when you compile via Keil? 

  • *** 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.

Related