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,

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

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

Reply Children
  • That path should be fine. Are you also using the default compiler version 5 that I am using? Did you take a look at the link I sent you? 

  • Hi ,

    I went through the link you have shared and worked fine. 
    Apologise for delay in response.

    Now I have custom board working with me.

    What I am trying:- 

    -connect the custom board with nrf52840 chip using nrf52 dongle on pc with python.

    -Already set some commands on custom board so when my pc (via dongle) connects to custom board, I want to send some commands and accordingly receive the response.

    For this I got my hands-on nrf dongle to give my laptop a BLE access.

    And I am trying to access the board using dongle (using python script) and I am getting below error,


    raise NordicSemiException('Failed to {}. Error code: {}'.format(wrapped.__name__, err_code))
    pc_ble_driver_py.exceptions.NordicSemiException: Failed to open. Error code: 13.

    Would you able to tell me how do i resolve this. 

    I want to have python code that can connect and do some data transfer over BLE using Dongle connected to my pc and I have tried with hart_rate_monitor unsuccessfully. 

    EDIT 1:- I am able to scan and connect my board using the nRF Connect windows app. Same I wanted to implement over python.

    Thanks,

    Hinesh

Related