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

Error Opening Asset Tracker Project on pca20035 board

Hi everyone, I successfully followed all the steps of the Getting Started Assistant on Windows 10 x64, but I am unable to open the Asset Tracker project because of some errors (see attachments).

This is the output:

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

"Loading solution asset_tracker.emProject
Executing load commands
C:\Program Files\CMake\bin\cmake.exe -GNinja -DBOARD=nrf9160_pca20035_v0_3_0ns -DBOARD_DIR=C:/Nordic_SDK/ncs/nrf/boards/arm/nrf9160_pca20035 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb/7 2018-q2-update -BC:/Nordic_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035_v0_3_0ns -HC:/Nordic_SDK/ncs/nrf/applications/asset_tracker -DPYTHON_EXECUTABLE=C:\Python38\phyton.exe -DCMAKE_MAKE_PROGRAM=C:\ProgramData\chocolatey\bin\ninja.exe -DDTC=C:\ProgramData\chocolatey\bin\dtc.exe -DWEST=C:\Python38\Scripts\west -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:/Nordic_SDK/arm_segger_embedded_studio_v420a_win_x64_nordic/html/configure_nordic_project_menuconfig.py
-- Using application from 'C:/Nordic_SDK/ncs/nrf/applications/asset_tracker'
Zephyr version: 1.14.99
-- Selected BOARD nrf9160_pca20035_v0_3_0ns
-- Found west: C:/Python38/Scripts/west (found suitable version "0.6.3", minimum required is "0.5.6")
-- Cache files will be written to: C:\Users\stefa\AppData\Local/.cache/zephyr
USING OUT OF TREE BOARD
-- Loading C:/Nordic_SDK/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9160_pca20035_v0_3_0ns.dts as base
-- Overlaying C:/Nordic_SDK/ncs/zephyr/dts/common/common.dts

warning: LOG_STRDUP_MAX_STRING (defined at subsys\logging\Kconfig:189) was assigned the value '128'
but got the value ''. You can check symbol information (including dependencies) in the 'menuconfig'
interface (see the Application Development Primer section of the manual), or in the Kconfig
Parsing Kconfig tree in C:/Nordic_SDK/ncs/nrf/applications/asset_tracker/Kconfig
Loading C:/Nordic_SDK/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9160_pca20035_v0_3_0ns_defconfig as base
Merging C:/Nordic_SDK/ncs/nrf/applications/asset_tracker/prj_nrf9160_pca20035_v0_3_0ns.conf
reference at
docs.zephyrproject.org/.../CONFIG_LOG_STRDUP_MAX_STRING.html (which is
updated regularly from the master branch). See the 'Setting configuration values' section of the
Board Porting Guide as well.

C:/Nordic_SDK/ncs/nrf/applications/asset_tracker/prj_nrf9160_pca20035_v0_3_0ns.conf:51: warning: attempt to assign the value 'y' to the undefined symbol BME680

Error: Aborting due to non-whitelisted Kconfig warning
'C:/Nordic_SDK/ncs/nrf/applications/asset_tracker/prj_nrf9160_pca20035_v0_3_0ns.conf:51: warning:
attempt to assign the value 'y' to the undefined symbol BME680'. Note: If this warning doesn't point
to an actual problem, you can add it to the whitelist at the top of
C:/Nordic_SDK/ncs/zephyr/scripts/kconfig/kconfig.py.

CMake Error at C:/Nordic_SDK/ncs/zephyr/cmake/kconfig.cmake:200 (message):
command failed with return code: 1
Call Stack (most recent call first):
C:/Nordic_SDK/ncs/zephyr/cmake/app/boilerplate.cmake:529 (include)
CMakeLists.txt:11 (include)


-- Configuring incomplete, errors occurred!
Project load failed
Reported error: solution load command failed (1)"

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I changed the "hub==2.0" line to "git-spindle==2.0" in the "requirements.txt" file located in "...\ncs\zephyr\scripts\" as listed here https://devzone.nordicsemi.com/f/nordic-q-a/51051/nrf-connect-sdk-install-issue-hub-2-0-not-found-leading-to-build-errors .

GNU Arm Embedded Toolchain is version "7 2018-q2-update".

I used ncs tag "v1.0.0".

If I select nrf9160_pca10090 board it all goes well, but I have to use nrf9160_pca20035 because I have a Thingy:91.

What's going wrong?

Thanks in advance.

Parents
  • Hi.

    The Thingy:91 is not supported in ncs tag v1.0.0, could you try with master?

    Also, I think you might have to build with command line in master, as SES has some issues with that at the moment.

    Best regards,

    Andreas

  • Thanks for the quick reply,

    I'm new to the command line build system so some of the following questions may be obvious ones.

    I can build the example zephyr project fine with the nrf9160_pca10090ns board but when i try and use the nrf9160_pca20035_v0_3_0ns board i get the following errors.

    1) device tree error: unknown 'status' value "ok"

    I fixed this by renaming all 'ok' to 'okay' in the dts files

    2) devicetree error: 'tx-pin' is marked as required in 'properties:' in /Nordic/ncs/zephyr/dts/bindings/serial/nordic,nrf-uarte.yaml, but does not appear in <Node /soc/peripheral@40000000/uart@a000 in 'nrf9160_pca20035_v0_3_0ns.dts.pre.tmp'

    it appears like the uart2 pins are not defined in the dts files. There is this message in the file about the uart2. "UART2 must be enabled for defines to be available for secure partition manager.". Is there a reference for which pins this uart2 should sit on?

    Thanks,

    Matt

Reply
  • Thanks for the quick reply,

    I'm new to the command line build system so some of the following questions may be obvious ones.

    I can build the example zephyr project fine with the nrf9160_pca10090ns board but when i try and use the nrf9160_pca20035_v0_3_0ns board i get the following errors.

    1) device tree error: unknown 'status' value "ok"

    I fixed this by renaming all 'ok' to 'okay' in the dts files

    2) devicetree error: 'tx-pin' is marked as required in 'properties:' in /Nordic/ncs/zephyr/dts/bindings/serial/nordic,nrf-uarte.yaml, but does not appear in <Node /soc/peripheral@40000000/uart@a000 in 'nrf9160_pca20035_v0_3_0ns.dts.pre.tmp'

    it appears like the uart2 pins are not defined in the dts files. There is this message in the file about the uart2. "UART2 must be enabled for defines to be available for secure partition manager.". Is there a reference for which pins this uart2 should sit on?

    Thanks,

    Matt

Children
Related