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

nRF5340-DK problem starting own project ncs v1.5.0

HI

I'm in the process of evaluating nRF5340 but am new to Nordic chips and development environment. Im running Windows 10 and I installed nRF Connect 3.6.1 and installed the toolchain through it.

I managed to run the blinky proiect but have problems starting an own project.

I followed this guide

https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-1-ncs-v1-4-0

but when I build, I get this error

Creating solution Bprufa02.emProject
C:/Users/Notandi/ncs/v1.5.0/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf5340dk_nrf5340_cpuappns -DBOARD_DIR=C:\Users\Notandi\ncs\v1.5.0\zephyr\boards\arm\nrf5340dk_nrf5340 -BC:\Users\Notandi\Dropbox (Kiso)\BVerk\Geometer\V4\nordic\Bprufa02\build_nrf5340dk_nrf5340_cpuappns -SC:\Users\Notandi\Dropbox (Kiso)\BVerk\Geometer\V4\nordic\Bprufa02 -DNCS_TOOLCHAIN_VERSION=1.5.0 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:\Users\Notandi\ncs\v1.5.0\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
-- Application: C:/Users/Notandi/Dropbox (Kiso)/BVerk/Geometer/V4/nordic/Bprufa02
-- Zephyr version: 2.4.99 (C:/Users/Notandi/ncs/v1.5.0/zephyr)
-- Found Python3: C:/Users/Notandi/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
-- Board: nrf5340dk_nrf5340_cpuappns
-- Cache files will be written to: C:/Users/Notandi/ncs/v1.5.0/zephyr/.cache
-- Found dtc: C:/Users/Notandi/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/Users/Notandi/ncs/v1.5.0/toolchain/opt)
-- Found BOARD.dts: C:/Users/Notandi/ncs/v1.5.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuappns.dts
-- Generated zephyr.dts: C:/Users/Notandi/Dropbox (Kiso)/BVerk/Geometer/V4/nordic/Bprufa02/build_nrf5340dk_nrf5340_cpuappns/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/Notandi/Dropbox (Kiso)/BVerk/Geometer/V4/nordic/Bprufa02/build_nrf5340dk_nrf5340_cpuappns/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/Notandi/Dropbox (Kiso)/BVerk/Geometer/V4/nordic/Bprufa02/build_nrf5340dk_nrf5340_cpuappns/zephyr/include/generated/device_extern.h
-- Configuring incomplete, errors occurred!
Including boilerplate (Zephyr base): C:/Users/Notandi/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
-- Using NCS Toolchain 1.5.0 for building. (C:/Users/Notandi/ncs/v1.5.0/toolchain/cmake)
CMake Error at C:/Users/Notandi/ncs/v1.5.0/zephyr/cmake/kconfig.cmake:204 (message):
File not found: C:/Users/Notandi/Dropbox
Call Stack (most recent call first):
C:/Users/Notandi/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake:534 (include)
C:/Users/Notandi/ncs/v1.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
C:/Users/Notandi/ncs/v1.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:3 (find_package)



error: cmake failed
create_nordic_project.py failed (1)

I have spend several days on this problems and looked around but cannot find a solution. I would be very happy for any hint.

Does it matter that the example uses version 1.4 and I have 1.5?

Best regards,

Baldur

  • The process is as follows: I point to the project

    and when I press OK, I get this:

    and the list reported above.

  • Hi!

    This error is likely caused by the space character (" ") in your path, specifically "Dropbox (Kiso)". Try to remove the space character or install the SDK at another location.

    Best regards,
    Carl Richard

  • Hi Carl Richard

    and thank you very much for your quick response

    How stupid I am, I had seen this comment before and I thought I had checked it, but I can see it when you point it out. I moved the project to another folder without space - and it worked!

    Actually I get 3 CDC comports when I plug in my nRF5340-DK board, only one of them (COM22) is giving me the printed output.

    Is this normal and what are the others for?

    Once again I really appreciate your quick help (I have used other brands of ARM and never got this quick and good help before. I feel that I am not alone in the world anymore when using nRF. I will certainly give Nordic a chance since I can get this good help)

    Baldur

  • Hi again, Baldur!

    You're welcome! I'm glad to help and glad to hear that it works now!

    What you're seeing is correct. These are the three virtual com ports emulated by the nRF5340, as described in the documentation. Two of them are for logging output from the network and application cores respectively, while the third one is silent. 

    That's a very appreciated comment. Thank you very much!

    Best regards,
    Carl Richard

  • Hi Carl Richard

    I hope it is OK to follow up on last question here even though it is about something slight different. 

    I now like to compile a BLE project. From the list of examples in the documentation 

    https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/examples.html

    I would like to compile the Bluetooth: Peripheral Heart Rate Monitor with Coded PHY project.

    In the list in nRF connect not the exact name could be found, but the peripheral_hr was the most likely:

    It compiled and I did a "build and run". It looked like it programmed the board but I could not find the device in nRF Toolbox on my Android phone (as I could with the hex load example)

    To see the logic of the program I wanted to debug it but then the program started to ask about some files that I could not find, beginning with this one:

    I ignored the files and it seemed like the debug got started, but still no device found on my phone.

    I reset the board and tried several times without luck.

    When importing the project there are 3 options for the 5340dk board:

    I'm not sure what to choose. Somewhere it was recommended to choose ns endings so I used nrf5340dk_nrf5340_cpuappns.

    From the documentation is looks like the peripheral_hr is to be used with central_hr.

    Is there perhaps a better project to test against the android phone?

    Any comments here?

    Best regards,

    Baldur

Related