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
  • I don't think that there is, you may be better off using a smartphone app.

  • Thank you for replay.

    Yes I have installed the app and I am able to connect to board.
    But I have code to test on board using specific commands from PC.
    actually,

    on customize board to test leds, I have app from pc that talks via uard to dev. board. and dev. board was talking to customized board.

    Now, dev. board is not there, And can you tell me How Do I test via mobile app.?

    suppose, via dev. board I was sending a command (hex commands like 0x01 -> to turn led on).

    from mobile app how do I do that?

    can you have any idea?

    on mobile I found one 'nrf uart 2.0' app, but I am not able to get how do i send commands?

    Thanks,

  • Also I have one more query,
    Is it possible to use 52840 dongle and on dongle I flash my code ( meant for 52840-dev kit, only as communication bridge between my pc and customized board). and use it?

    Thanks,

  • 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

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

Children
Related