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

Segger Embedded Studio cant open sample project

Similar to this problem, I cannot open the serial let modem example for nrf9160dk_ns.  I tried moving my nrf install to the root but did not help.  I am using Windows 10.  The problem appears to be that the path to the nrf libraries contains a back slash which is incorrectly interpreted as an escape character.  I am not sure where to change this path.  See error output below.

How can I work around this?  I want to evaluate the nrf9160 for use in a production product but this is the third bug so far that has slowed me down, it is making me worry!

Creating solution serial_lte_modem.emProject
D:/v1.6.0-rc2/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf9160dk_nrf9160ns -DBOARD_DIR=D:\v1.6.0-rc2\zephyr\boards\arm\nrf9160dk_nrf9160 -BD:\v1.6.0-rc2\nrf\applications\serial_lte_modem\build_nrf9160dk_nrf9160ns -SD:\v1.6.0-rc2\nrf\applications\serial_lte_modem -DNCS_TOOLCHAIN_VERSION=1.6.0 -DDTC_OVERLAY_FILE=D:\v1.6.0-rc2\nrf\applications\serial_lte_modem/nrf9160dk_nrf9160ns.overlay -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=D:\v1.6.0-rc2\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
-- Application: D:/v1.6.0-rc2/nrf/applications/serial_lte_modem
-- Zephyr version: 2.6.0-rc1 (D:/v1.6.0-rc2/zephyr), build: v2.6.0-rc1-ncs1-rc1
-- Found Python3: D:/v1.6.0-rc2/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.11.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160ns, Revision: 0.7.0
-- Cache files will be written to: D:/v1.6.0-rc2/zephyr/.cache
-- Found dtc: D:/v1.6.0-rc2/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (D:/v1.6.0-rc2/toolchain/opt)
-- Configuring incomplete, errors occurred!
Including boilerplate (Zephyr base): D:/v1.6.0-rc2/zephyr/cmake/app/boilerplate.cmake
-- Using NCS Toolchain 1.6.0 for building. (D:/v1.6.0-rc2/toolchain/cmake)
CMake Error at D:/v1.6.0-rc2/zephyr/cmake/dts.cmake:2147483647 (zephyr_variable_set_too_late):
Syntax error in cmake code at

D:/v1.6.0-rc2/zephyr/cmake/dts.cmake:2147483647

when parsing string

D:\v1.6.0-rc2\nrf\applications\serial_lte_modem/nrf9160dk_nrf9160ns.overlay

Invalid character escape '\v'.
Call Stack (most recent call first):
D:/v1.6.0-rc2/zephyr/cmake/dts.cmake:62 (if)
D:/v1.6.0-rc2/zephyr/cmake/app/boilerplate.cmake:554 (include)
D:/v1.6.0-rc2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
D:/v1.6.0-rc2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:9 (find_package)


CMake Error: Error in cmake code at
Unknown:0:
A command failed during the invocation of callback "zephyr_variable_set_too_late".

error: cmake failed
create_nordic_project.py failed (1)

  • Hi Ashley!

    I'm sorry about that issue, as well as me taking this long to get back to you.

    That is sadly a bug with the recent 1.6.0-rc2 'release candidate'. As it is not an official release though, bugs like these can appear. If you want to avoid them, I'd recommend using the latest official NCS release: 1.5.1. I just tried it there for myself and it opened up just fine.

    If you want to continue on 1.6.0-rc2 though, the temporary fix for this bug is to place the overlay file in the boards catalogue.

    Let me know if there is anything else!

    Best regards,

    Håkon

Related