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

Connecting the nRF9160DK to the nRF52833 over Bluetooth

Hi,

I would like to set up a couple of boards communicating over Bluetooth; I was hoping someone could provide some pointers.

I would like to connect the nRF9160DK to the nRF52833DK. 

I have programmed the nRF52 on the nRF9160DK with the HCI UART code and the nRF9160 with the LTE_BLE_Gateway code. 

Is this correct?

What should I program the nRF52833 with?

Thanks,

Rod

  • Rod, it looks like it's still fetching information from the zehpyrproject folder (Including boilerplate (Zephyr base): /Users/Watt/zephyrproject/zephyr/cmake/app/boilerplate.cmake)

    Have you set zephyr base?

  • Watts-MBP-2:~ Watt$ printenv ZEPHYR_BASE
    /Users/Watt/zephyrproject/zephyr
    

    Where should I be pointing?

  • It should be pointing to the Zephyr folder inside of the NCS folder that you initiated. e.g. /Users/Watt/NCS/zephyr

  • I have created 

    /Users/Watt/zephyrproject

    in here I have

         bootloader 

         modules

          ncs

         tools

         zephyr

    I have set up ZEPHYR_BASE as follows

    ZEPHYR_BASE=/Users/Watt/zephyrproject/ncs/zephyr

    then when I try to build

    Watts-MBP-2:lte_ble_gateway Watt$ west build -b nrf9160dk_nrf9160ns
    -- west build: generating a build system
    Including boilerplate (Zephyr base (cached)): /Users/Watt/zephyrproject/ncs/zephyr/cmake/app/boilerplate.cmake
    -- Application: /Users/Watt/Documents/Switch_That/ZEPHYR_Code/nRF9160DK/lte_ble_gateway
    -- Zephyr version: 2.3.99 (/Users/Watt/zephyrproject/ncs/zephyr)
    -- Board: nrf9160dk_nrf9160ns
    -- Found west: /Library/Frameworks/Python.framework/Versions/3.8/bin/west (found suitable version "0.7.2", minimum required is "0.7.1")
    -- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
    CMake Error at /Users/Watt/zephyrproject/ncs/zephyr/cmake/generic_toolchain.cmake:64 (include):
      include could not find load file:
    
        /Users/Watt/zephyrproject/ncs/zephyr/cmake/toolchain//Users/Watt/armgnuemb/generic.cmake
    Call Stack (most recent call first):
      /Users/Watt/zephyrproject/ncs/zephyr/cmake/app/boilerplate.cmake:509 (include)
      /Users/Watt/zephyrproject/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      /Users/Watt/zephyrproject/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
      CMakeLists.txt:20 (find_package)
    
    
    -- Found BOARD.dts: /Users/Watt/zephyrproject/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts
    -- Found devicetree overlay: /Users/Watt/Documents/Switch_That/ZEPHYR_Code/nRF9160DK/lte_ble_gateway/nrf9160dk_nrf9160ns.overlay
    CMake Error at /Users/Watt/zephyrproject/ncs/zephyr/cmake/dts.cmake:153 (message):
      command failed with return code: No such file or directory
    Call Stack (most recent call first):
      /Users/Watt/zephyrproject/ncs/zephyr/cmake/app/boilerplate.cmake:510 (include)
      /Users/Watt/zephyrproject/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      /Users/Watt/zephyrproject/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
      CMakeLists.txt:20 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: /usr/local/bin/cmake -DWEST_PYTHON=/Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -B/Users/Watt/Documents/Switch_That/ZEPHYR_Code/nRF9160DK/lte_ble_gateway/build -S/Users/Watt/Documents/Switch_That/ZEPHYR_Code/nRF9160DK/lte_ble_gateway -GNinja
    Watts-MBP-2:lte_ble_gateway Watt$ 
    

  • Hi Øyvind,

    I deleted everything and started again. I followed this 

    https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html#setting-up-the-command-line-build-environment

    All very straight forward until I try this.

    Watts-MBP-2:ncs Watt$ pwd
    /Users/Watt/zephyrproject/ncs
    Watts-MBP-2:ncs Watt$ west init -m https://github.com/nrfconnect/sdk-nrf --mr v1.3.0
    FATAL ERROR: already initialized in /Users/Watt/zephyrproject, aborting.
    

    What am I doing wrong here?

    I know this is difficult to debug remotely, I was hoping  clean install would fix it. If you have instructions for a complete reinstall please let me know, happy to start again 

    Rod

Related