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

asset tracker not building

Hi,

I'm trying to build the asset tracker off the master branch in windows 7. I did do west update. Using gcc version 7.3.1 20180622

It fails like below. Any ideas?

c:\_W\nrf\srcroot\ncs\nrf\applications\asset_tracker>west build -b nrf9160_pca20
035ns -d build_here
-- west build: build configuration:
       source directory: c:\_W\nrf\srcroot\ncs\nrf\applications\asset_tracker
       build directory: c:\_W\nrf\srcroot\ncs\nrf\applications\asset_tracker\bui
ld_here (created)
       BOARD: nrf9160_pca20035ns (origin: command line)
-- west build: generating a build system
-- Using application from 'C:/_W/nrf/srcroot/ncs/nrf/applications/asset_tracker'

Zephyr version: 1.14.99
-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7.4", m
inimum required is "3.4")
-- Selected BOARD nrf9160_pca20035ns
-- Found west: C:/Python37/Scripts/west.exe (found suitable version "0.6.2", min
imum required is "0.6.0")
-- Cache files will be written to: C:\Users\cmedianu\AppData\Local/.cache/zephyr

USING OUT OF TREE BOARD
-- Loading C:/_W/nrf/srcroot/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9160_pca2003
5ns.dts as base
-- Overlaying c:/_W/nrf/srcroot/ncs/zephyr/dts/common/common.dts
Device tree configuration written to C:/_W/nrf/srcroot/ncs/nrf/applications/asse
t_tracker/build_here/zephyr/include/generated/generated_dts_board.conf
Parsing Kconfig tree in C:/_W/nrf/srcroot/ncs/nrf/applications/asset_tracker/Kco
nfig
Loaded configuration 'C:/_W/nrf/srcroot/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9
160_pca20035ns_defconfig'
Merged configuration 'C:/_W/nrf/srcroot/ncs/nrf/applications/asset_tracker/prj_n
rf9160_pca20035ns.conf'
Configuration saved to 'C:/_W/nrf/srcroot/ncs/nrf/applications/asset_tracker/bui
ld_here/zephyr/.config'
CMake Warning at C:/_W/nrf/srcroot/ncs/zephyr/CMakeLists.txt:28 (message):
  ZEPHYR_BASE doesn't match CMAKE_CURRENT_SOURCE_DIR

    ZEPHYR_BASE              = c:/_W/nrf/srcroot/ncs/zephyr
    PWD                      =
    CMAKE_CURRENT_SOURCE_DIR = C:/_W/nrf/srcroot/ncs/zephyr

  You may be using a mix of symbolic links and real paths which causes subtle
  and hard to debug CMake issues.


-- The C compiler identification is GNU 8.3.1
-- The CXX compiler identification is GNU 8.3.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/_W/nrf/gcc-arm/bin/arm-none-eabi-gcc.exe
-- Performing Test toolchain_is_ok
-- Performing Test toolchain_is_ok - Success
Including module: nrf in path: c:\_W\nrf\srcroot\ncs\nrf
-- Using application from 'C:/_W/nrf/srcroot/ncs/nrf/samples/nrf9160/spm'
Zephyr version: 1.14.99
Changed board to secure nrf9160_pca20035 (NOT NS)
USING OUT OF TREE BOARD
USING OUT OF TREE BOARD
-- Loading C:/_W/nrf/srcroot/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9160_pca2003
5.dts as base
-- Overlaying c:/_W/nrf/srcroot/ncs/zephyr/dts/common/common.dts
Device tree configuration written to C:/_W/nrf/srcroot/ncs/nrf/applications/asse
t_tracker/build_here/spm/zephyr/include/generated/generated_dts_board.conf
Parsing Kconfig tree in c:/_W/nrf/srcroot/ncs/zephyr/Kconfig
Loaded configuration 'C:/_W/nrf/srcroot/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9
160_pca20035_defconfig'
Merged configuration 'C:/_W/nrf/srcroot/ncs/nrf/samples/nrf9160/spm/prj.conf'
Configuration saved to 'C:/_W/nrf/srcroot/ncs/nrf/applications/asset_tracker/bui
ld_here/spm/zephyr/.config'
CMake Warning at C:/_W/nrf/srcroot/ncs/zephyr/CMakeLists.txt:28 (message):
  ZEPHYR_BASE doesn't match CMAKE_CURRENT_SOURCE_DIR

    ZEPHYR_BASE              = c:/_W/nrf/srcroot/ncs/zephyr
    PWD                      =
    CMAKE_CURRENT_SOURCE_DIR = C:/_W/nrf/srcroot/ncs/zephyr

  You may be using a mix of symbolic links and real paths which causes subtle
  and hard to debug CMake issues.


Including module: nrf in path: c:\_W\nrf\srcroot\ncs\nrf
Including module: nffs in path: c:\_W\nrf\srcroot\ncs\modules\fs\nffs
Including module: segger in path: c:\_W\nrf\srcroot\ncs\modules\debug\segger
Including module: mbedtls in path: c:\_W\nrf\srcroot\ncs\modules\crypto\mbedtls
Including module: mcuboot in path: c:\_W\nrf\srcroot\ncs\mcuboot\zephyr
Including module: mcumgr in path: c:\_W\nrf\srcroot\ncs\modules\lib\mcumgr
Including module: tinycbor in path: c:\_W\nrf\srcroot\ncs\modules\lib\tinycbor
Including module: nrfxlib in path: c:\_W\nrf\srcroot\ncs\nrfxlib
Including module: nffs in path: c:\_W\nrf\srcroot\ncs\modules\fs\nffs
Including module: segger in path: c:\_W\nrf\srcroot\ncs\modules\debug\segger
Including module: mbedtls in path: c:\_W\nrf\srcroot\ncs\modules\crypto\mbedtls
Including module: mcuboot in path: c:\_W\nrf\srcroot\ncs\mcuboot\zephyr
-- Using application from 'C:/_W/nrf/srcroot/ncs/mcuboot/boot/zephyr'
Zephyr version: 1.14.99
Changed board to secure nrf9160_pca20035 (NOT NS)
USING OUT OF TREE BOARD
-- Loading C:/_W/nrf/srcroot/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9160_pca2003
5.dts as base
-- Overlaying c:/_W/nrf/srcroot/ncs/zephyr/dts/common/common.dts
Device tree configuration written to C:/_W/nrf/srcroot/ncs/nrf/applications/asse
t_tracker/build_here/mcuboot/zephyr/include/generated/generated_dts_board.conf

warning: I2C_2 (defined at
C:/_W/nrf/srcroot/ncs/nrf/boards/arm/nrf9160_pca20035/Kconfig.defconfig:21, driv
ers/i2c/Kconfig:96)
was assigned the value 'y' but got the value 'n'. You can check symbol informati
on (including
dependencies) in the 'menuconfig' interface (see the Application Development Pri
mer section of the
manual), or in the Kconfig reference at
docs.zephyrproject.org/.../CONFIG_I2C_2.html (which
is updated regularly
from the master branch). See the 'Setting configuration values' section of the B
oard Porting Guide
as well.
Parsing Kconfig tree in C:/_W/nrf/srcroot/ncs/mcuboot/boot/zephyr/Kconfig
Loaded configuration 'C:/_W/nrf/srcroot/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9
160_pca20035_defconfig'
Merged configuration 'C:/_W/nrf/srcroot/ncs/mcuboot/boot/zephyr/prj.conf'
Configuration saved to 'C:/_W/nrf/srcroot/ncs/nrf/applications/asset_tracker/bui
ld_here/mcuboot/zephyr/.config'
CMake Warning at C:/_W/nrf/srcroot/ncs/zephyr/CMakeLists.txt:28 (message):
  ZEPHYR_BASE doesn't match CMAKE_CURRENT_SOURCE_DIR

    ZEPHYR_BASE              = c:/_W/nrf/srcroot/ncs/zephyr
    PWD                      =
    CMAKE_CURRENT_SOURCE_DIR = C:/_W/nrf/srcroot/ncs/zephyr

  You may be using a mix of symbolic links and real paths which causes subtle
  and hard to debug CMake issues.


Including module: nrf in path: c:\_W\nrf\srcroot\ncs\nrf
Including module: nffs in path: c:\_W\nrf\srcroot\ncs\modules\fs\nffs
Including module: segger in path: c:\_W\nrf\srcroot\ncs\modules\debug\segger
Including module: mbedtls in path: c:\_W\nrf\srcroot\ncs\modules\crypto\mbedtls
Including module: mcuboot in path: c:\_W\nrf\srcroot\ncs\mcuboot\zephyr
Including module: mcumgr in path: c:\_W\nrf\srcroot\ncs\modules\lib\mcumgr
Including module: tinycbor in path: c:\_W\nrf\srcroot\ncs\modules\lib\tinycbor
Including module: nrfxlib in path: c:\_W\nrf\srcroot\ncs\nrfxlib
Including module: mcumgr in path: c:\_W\nrf\srcroot\ncs\modules\lib\mcumgr
Including module: tinycbor in path: c:\_W\nrf\srcroot\ncs\modules\lib\tinycbor
Including module: nrfxlib in path: c:\_W\nrf\srcroot\ncs\nrfxlib
CMake Warning at C:/_W/nrf/srcroot/ncs/zephyr/CMakeLists.txt:1559 (message):


        ------------------------------------------------------------
        --- WARNING:  __ASSERT() statements are globally ENABLED ---
        --- The kernel will run more slowly and use more memory  ---
        ------------------------------------------------------------


Running Partition Manager...
-- Configuring done
-- Generating done
-- Build files have been written to: C:/_W/nrf/srcroot/ncs/nrf/applications/asse
t_tracker/build_here
-- west build: building application
[62/618] Building C object spm/zephyr/...f/srcroot/ncs/nrf/subsys/spm/spm.c.obj
FAILED: spm/zephyr/CMakeFiles/spm_zephyr.dir/C_/_W/nrf/srcroot/ncs/nrf/subsys/sp
m/spm.c.obj
C:\_W\nrf\gcc-arm\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v1.14.99-ncs3-snapsh
ot2-1279-g1c3a001f62e6 -DKERNEL -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DNRF9160
_XXAA -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__ZEPHYR__=1 -IC:/_W/nrf/s
rcroot/ncs/zephyr/kernel/include -Ic:/_W/nrf/srcroot/ncs/zephyr/arch/arm/include
 -IC:/_W/nrf/srcroot/ncs/zephyr/include -IC:/_W/nrf/srcroot/ncs/zephyr/include/d
rivers -Ispm/zephyr/include/generated -Ic:/_W/nrf/srcroot/ncs/zephyr/soc/arm/nor
dic_nrf/nrf91 -Ic:/_W/nrf/srcroot/ncs/zephyr/soc/arm/nordic_nrf/include -IC:/_W/
nrf/srcroot/ncs/zephyr/lib/libc/minimal/include -IC:/_W/nrf/srcroot/ncs/zephyr/s
oc/arm/nordic_nrf/include -IC:/_W/nrf/srcroot/ncs/zephyr/ext/hal/cmsis/Include -
IC:/_W/nrf/srcroot/ncs/zephyr/ext/hal/nordic/nrfx -IC:/_W/nrf/srcroot/ncs/zephyr
/ext/hal/nordic/nrfx/drivers/include -IC:/_W/nrf/srcroot/ncs/zephyr/ext/hal/nord
ic/nrfx/hal -IC:/_W/nrf/srcroot/ncs/zephyr/ext/hal/nordic/nrfx/mdk -IC:/_W/nrf/s
rcroot/ncs/zephyr/ext/hal/nordic/. -IC:/_W/nrf/srcroot/ncs/nrf/include -IC:/_W/n
rf/srcroot/ncs/nrfxlib/crypto/nrf_cc310_mbedcrypto/include/mbedtls -Ispm/zephyr/
modules/nrfxlib/nrf_security/include -IC:/_W/nrf/srcroot/ncs/mbedtls/include -IC
:/_W/nrf/srcroot/ncs/mbedtls/include/mbedtls -isystem c:/_w/nrf/gcc-arm/bin/../l
ib/gcc/arm-none-eabi/8.3.1/include -isystem c:/_w/nrf/gcc-arm/bin/../lib/gcc/arm
-none-eabi/8.3.1/include-fixed -Os -nostdinc -imacrosC:/_W/nrf/srcroot/ncs/nrf/a
pplications/asset_tracker/build_here/spm/zephyr/include/generated/autoconf.h -ff
reestanding -fno-common -g -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-ab
i=hard -imacrosc:/_W/nrf/srcroot/ncs/zephyr/include/toolchain/zephyr_stdint.h -W
all -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-si
gn -Wpointer-arith -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynch
ronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functio
ns -fno-defer-pop -fmacro-prefix-map=C:/_W/nrf/srcroot/ncs/nrf/applications/asse
t_tracker=CMAKE_SOURCE_DIR -fmacro-prefix-map=c:/_W/nrf/srcroot/ncs/zephyr=ZEPHY
R_BASE -ffunction-sections -fdata-sections -mabi=aapcs -march=armv8-m.main+dsp -
mcmse -std=c99 -MD -MT spm/zephyr/CMakeFiles/spm_zephyr.dir/C_/_W/nrf/srcroot/nc
s/nrf/subsys/spm/spm.c.obj -MF spm\zephyr\CMakeFiles\spm_zephyr.dir\C_\_W\nrf\sr
croot\ncs\nrf\subsys\spm\spm.c.obj.d -o spm/zephyr/CMakeFiles/spm_zephyr.dir/C_/
_W/nrf/srcroot/ncs/nrf/subsys/spm/spm.c.obj   -c C:/_W/nrf/srcroot/ncs/nrf/subsy
s/spm/spm.c
In file included from C:/_W/nrf/srcroot/ncs/nrf/subsys/spm/spm.c:20:
C:/_W/nrf/srcroot/ncs/nrf/subsys/spm/spm.c: In function 'spm_jump':
c:/_W/nrf/srcroot/ncs/zephyr/arch/arm/include/cortex_m/tz.h:319:22: error: calle
d object is not a function or function pointer
  ((tz_ns_func_ptr_t)(cmse_nsfptr_create(fptr)))
                      ^~~~~~~~~~~~~~~~~~
C:/_W/nrf/srcroot/ncs/nrf/subsys/spm/spm.c:429:13: note: in expansion of macro '
TZ_NONSECURE_FUNC_PTR_CREATE'
  reset_ns = TZ_NONSECURE_FUNC_PTR_CREATE(vtor_ns[1]);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[71/618] Building C object spm/zephyr/...m_arch__arm__core.dir/irq_manage.c.obj
ninja: build stopped: subcommand failed.
ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --bu
ild 'c:\_W\nrf\srcroot\ncs\nrf\applications\asset_tracker\build_here'

  • Seems like this check fails. Does the error disappear if you open cmd as administrator and run:

    Setx -m ZEPHYR_BASE "C:/_W/nrf/srcroot/ncs/zephyr"

    Where the "C" at the beginning is uppercase.

    Then try to close the command line, open it again and build the application again.

    Best regards,

    Simon

  • That check passes, but the error does not go away. I was doing

    cd c:\_W\nrf\srcroot\ncs\nrf\applications\asset_tracker

    instead of

    cd C:\_W\nrf\srcroot\ncs\nrf\applications\asset_tracker

    C:\_W\nrf\srcroot\ncs\nrf\applications\asset_tracker>C:\_W\nrf\srcroot\ncs\nrf\a
    pplications\asset_tracker
    'C:\_W\nrf\srcroot\ncs\nrf\applications\asset_tracker' is not recognized as an i
    nternal or external command,
    operable program or batch file.

    C:\_W\nrf\srcroot\ncs\nrf\applications\asset_tracker>west build -b nrf9160_pca20
    035ns
    -- west build: build configuration:
           source directory: C:\_W\nrf\srcroot\ncs\nrf\applications\asset_tracker
           build directory: C:\_W\nrf\srcroot\ncs\nrf\applications\asset_tracker\bui
    ld (created)
           BOARD: nrf9160_pca20035ns (origin: command line)
    -- west build: generating a build system
    -- Using application from 'C:/_W/nrf/srcroot/ncs/nrf/applications/asset_tracker'

    Zephyr version: 1.14.99
    -- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7.4", m
    inimum required is "3.4")
    -- Selected BOARD nrf9160_pca20035ns
    -- Found west: C:/Python37/Scripts/west.exe (found suitable version "0.6.2", min
    imum required is "0.6.0")
    -- Cache files will be written to: C:\Users\cmedianu\AppData\Local/.cache/zephyr

    USING OUT OF TREE BOARD
    -- Loading C:/_W/nrf/srcroot/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9160_pca2003
    5ns.dts as base
    -- Overlaying C:/_W/nrf/srcroot/ncs/zephyr/dts/common/common.dts
    Device tree configuration written to C:/_W/nrf/srcroot/ncs/nrf/applications/asse
    t_tracker/build/zephyr/include/generated/generated_dts_board.conf
    Parsing Kconfig tree in C:/_W/nrf/srcroot/ncs/nrf/applications/asset_tracker/Kco
    nfig
    Loaded configuration 'C:/_W/nrf/srcroot/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9
    160_pca20035ns_defconfig'
    Merged configuration 'C:/_W/nrf/srcroot/ncs/nrf/applications/asset_tracker/prj_n
    rf9160_pca20035ns.conf'
    Configuration saved to 'C:/_W/nrf/srcroot/ncs/nrf/applications/asset_tracker/bui
    ld/zephyr/.config'
    -- The C compiler identification is GNU 8.3.1
    -- The CXX compiler identification is GNU 8.3.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/_W/nrf/gcc-arm/bin/arm-none-eabi-gcc.exe
    -- Performing Test toolchain_is_ok
    -- Performing Test toolchain_is_ok - Success
    Including module: nrf in path: C:\_W\nrf\srcroot\ncs\nrf
    -- Using application from 'C:/_W/nrf/srcroot/ncs/nrf/samples/nrf9160/spm'
    Zephyr version: 1.14.99
    Changed board to secure nrf9160_pca20035 (NOT NS)
    USING OUT OF TREE BOARD
    USING OUT OF TREE BOARD
    -- Loading C:/_W/nrf/srcroot/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9160_pca2003
    5.dts as base
    -- Overlaying C:/_W/nrf/srcroot/ncs/zephyr/dts/common/common.dts
    Device tree configuration written to C:/_W/nrf/srcroot/ncs/nrf/applications/asse
    t_tracker/build/spm/zephyr/include/generated/generated_dts_board.conf
    Parsing Kconfig tree in C:/_W/nrf/srcroot/ncs/zephyr/Kconfig
    Loaded configuration 'C:/_W/nrf/srcroot/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9
    160_pca20035_defconfig'
    Merged configuration 'C:/_W/nrf/srcroot/ncs/nrf/samples/nrf9160/spm/prj.conf'
    Configuration saved to 'C:/_W/nrf/srcroot/ncs/nrf/applications/asset_tracker/bui
    ld/spm/zephyr/.config'
    Including module: nrf in path: C:\_W\nrf\srcroot\ncs\nrf
    Including module: nffs in path: C:\_W\nrf\srcroot\ncs\modules\fs\nffs
    Including module: segger in path: C:\_W\nrf\srcroot\ncs\modules\debug\segger
    Including module: mbedtls in path: C:\_W\nrf\srcroot\ncs\modules\crypto\mbedtls
    Including module: mcuboot in path: C:\_W\nrf\srcroot\ncs\mcuboot\zephyr
    Including module: mcumgr in path: C:\_W\nrf\srcroot\ncs\modules\lib\mcumgr
    Including module: tinycbor in path: C:\_W\nrf\srcroot\ncs\modules\lib\tinycbor
    Including module: nrfxlib in path: C:\_W\nrf\srcroot\ncs\nrfxlib
    Including module: nffs in path: C:\_W\nrf\srcroot\ncs\modules\fs\nffs
    Including module: segger in path: C:\_W\nrf\srcroot\ncs\modules\debug\segger
    Including module: mbedtls in path: C:\_W\nrf\srcroot\ncs\modules\crypto\mbedtls
    Including module: mcuboot in path: C:\_W\nrf\srcroot\ncs\mcuboot\zephyr
    -- Using application from 'C:/_W/nrf/srcroot/ncs/mcuboot/boot/zephyr'
    Zephyr version: 1.14.99
    Changed board to secure nrf9160_pca20035 (NOT NS)
    USING OUT OF TREE BOARD
    -- Loading C:/_W/nrf/srcroot/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9160_pca2003
    5.dts as base
    -- Overlaying C:/_W/nrf/srcroot/ncs/zephyr/dts/common/common.dts
    Device tree configuration written to C:/_W/nrf/srcroot/ncs/nrf/applications/asse
    t_tracker/build/mcuboot/zephyr/include/generated/generated_dts_board.conf

    warning: I2C_2 (defined at
    C:/_W/nrf/srcroot/ncs/nrf/boards/arm/nrf9160_pca20035/Kconfig.defconfig:21, driv
    ers/i2c/Kconfig:96)
    was assigned the value 'y' but got the value 'n'. You can check symbol informati
    on (including
    dependencies) in the 'menuconfig' interface (see the Application Development Pri
    mer section of the
    manual), or in the Kconfig reference at
    docs.zephyrproject.org/.../CONFIG_I2C_2.html (which
    is updated regularly
    from the master branch). See the 'Setting configuration values' section of the B
    oard Porting Guide
    as well.
    Parsing Kconfig tree in C:/_W/nrf/srcroot/ncs/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/_W/nrf/srcroot/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9
    160_pca20035_defconfig'
    Merged configuration 'C:/_W/nrf/srcroot/ncs/mcuboot/boot/zephyr/prj.conf'
    Configuration saved to 'C:/_W/nrf/srcroot/ncs/nrf/applications/asset_tracker/bui
    ld/mcuboot/zephyr/.config'
    Including module: nrf in path: C:\_W\nrf\srcroot\ncs\nrf
    Including module: nffs in path: C:\_W\nrf\srcroot\ncs\modules\fs\nffs
    Including module: segger in path: C:\_W\nrf\srcroot\ncs\modules\debug\segger
    Including module: mbedtls in path: C:\_W\nrf\srcroot\ncs\modules\crypto\mbedtls
    Including module: mcuboot in path: C:\_W\nrf\srcroot\ncs\mcuboot\zephyr
    Including module: mcumgr in path: C:\_W\nrf\srcroot\ncs\modules\lib\mcumgr
    Including module: tinycbor in path: C:\_W\nrf\srcroot\ncs\modules\lib\tinycbor
    Including module: nrfxlib in path: C:\_W\nrf\srcroot\ncs\nrfxlib
    Including module: mcumgr in path: C:\_W\nrf\srcroot\ncs\modules\lib\mcumgr
    Including module: tinycbor in path: C:\_W\nrf\srcroot\ncs\modules\lib\tinycbor
    Including module: nrfxlib in path: C:\_W\nrf\srcroot\ncs\nrfxlib
    CMake Warning at C:/_W/nrf/srcroot/ncs/zephyr/CMakeLists.txt:1559 (message):


            ------------------------------------------------------------
            --- WARNING:  __ASSERT() statements are globally ENABLED ---
            --- The kernel will run more slowly and use more memory  ---
            ------------------------------------------------------------


    Running Partition Manager...
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/_W/nrf/srcroot/ncs/nrf/applications/asse
    t_tracker/build
    -- west build: building application
    [50/618] Building C object spm/zephyr/...f/srcroot/ncs/nrf/subsys/spm/spm.c.obj
    FAILED: spm/zephyr/CMakeFiles/spm_zephyr.dir/C_/_W/nrf/srcroot/ncs/nrf/subsys/sp
    m/spm.c.obj
    C:\_W\nrf\gcc-arm\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v1.14.99-ncs3-snapsh
    ot2-1279-g1c3a001f62e6 -DKERNEL -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DNRF9160
    _XXAA -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__ZEPHYR__=1 -IC:/_W/nrf/s
    rcroot/ncs/zephyr/kernel/include -IC:/_W/nrf/srcroot/ncs/zephyr/arch/arm/include
     -IC:/_W/nrf/srcroot/ncs/zephyr/include -IC:/_W/nrf/srcroot/ncs/zephyr/include/d
    rivers -Ispm/zephyr/include/generated -IC:/_W/nrf/srcroot/ncs/zephyr/soc/arm/nor
    dic_nrf/nrf91 -IC:/_W/nrf/srcroot/ncs/zephyr/soc/arm/nordic_nrf/include -IC:/_W/
    nrf/srcroot/ncs/zephyr/lib/libc/minimal/include -IC:/_W/nrf/srcroot/ncs/zephyr/e
    xt/hal/cmsis/Include -IC:/_W/nrf/srcroot/ncs/zephyr/ext/hal/nordic/nrfx -IC:/_W/
    nrf/srcroot/ncs/zephyr/ext/hal/nordic/nrfx/drivers/include -IC:/_W/nrf/srcroot/n
    cs/zephyr/ext/hal/nordic/nrfx/hal -IC:/_W/nrf/srcroot/ncs/zephyr/ext/hal/nordic/
    nrfx/mdk -IC:/_W/nrf/srcroot/ncs/zephyr/ext/hal/nordic/. -IC:/_W/nrf/srcroot/ncs
    /nrf/include -IC:/_W/nrf/srcroot/ncs/nrfxlib/crypto/nrf_cc310_mbedcrypto/include
    /mbedtls -Ispm/zephyr/modules/nrfxlib/nrf_security/include -IC:/_W/nrf/srcroot/n
    cs/mbedtls/include -IC:/_W/nrf/srcroot/ncs/mbedtls/include/mbedtls -isystem c:/_
    w/nrf/gcc-arm/bin/../lib/gcc/arm-none-eabi/8.3.1/include -isystem c:/_w/nrf/gcc-
    arm/bin/../lib/gcc/arm-none-eabi/8.3.1/include-fixed -Os -nostdinc -imacrosC:/_W
    /nrf/srcroot/ncs/nrf/applications/asset_tracker/build/spm/zephyr/include/generat
    ed/autoconf.h -ffreestanding -fno-common -g -mthumb -mcpu=cortex-m33 -mfpu=fpv5-
    sp-d16 -mfloat-abi=hard -imacrosC:/_W/nrf/srcroot/ncs/zephyr/include/toolchain/z
    ephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-mai
    n -Wno-pointer-sign -Wpointer-arith -Wno-unused-but-set-variable -Werror=implici
    t-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fn
    o-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/_W/nrf/srcroot/ncs/nrf/
    applications/asset_tracker=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/_W/nrf/srcroot
    /ncs/zephyr=ZEPHYR_BASE -ffunction-sections -fdata-sections -mabi=aapcs -march=a
    rmv8-m.main+dsp -mcmse -std=c99 -MD -MT spm/zephyr/CMakeFiles/spm_zephyr.dir/C_/
    _W/nrf/srcroot/ncs/nrf/subsys/spm/spm.c.obj -MF spm\zephyr\CMakeFiles\spm_zephyr
    .dir\C_\_W\nrf\srcroot\ncs\nrf\subsys\spm\spm.c.obj.d -o spm/zephyr/CMakeFiles/s
    pm_zephyr.dir/C_/_W/nrf/srcroot/ncs/nrf/subsys/spm/spm.c.obj   -c C:/_W/nrf/srcr
    oot/ncs/nrf/subsys/spm/spm.c
    In file included from C:/_W/nrf/srcroot/ncs/nrf/subsys/spm/spm.c:20:
    C:/_W/nrf/srcroot/ncs/nrf/subsys/spm/spm.c: In function 'spm_jump':
    C:/_W/nrf/srcroot/ncs/zephyr/arch/arm/include/cortex_m/tz.h:319:22: error: calle
    d object is not a function or function pointer
      ((tz_ns_func_ptr_t)(cmse_nsfptr_create(fptr)))
                          ^~~~~~~~~~~~~~~~~~
    C:/_W/nrf/srcroot/ncs/nrf/subsys/spm/spm.c:429:13: note: in expansion of macro '
    TZ_NONSECURE_FUNC_PTR_CREATE'
      reset_ns = TZ_NONSECURE_FUNC_PTR_CREATE(vtor_ns[1]);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    [59/618] Building C object spm/zephyr/...m_arch__arm__core.dir/irq_manage.c.obj
    ninja: build stopped: subcommand failed.
    ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --bu
    ild 'C:\_W\nrf\srcroot\ncs\nrf\applications\asset_tracker\build'

    C:\_W\nrf\srcroot\ncs\nrf\applications\asset_tracker>

  • Could you try using the 7-2018-q2-update of the GNU Arm Embedded Toolchain. Follow the steps in the section Installing the toolchain in the NCS documentation. 

    Regarding this warning: "warning: I2C_2....was assigned the value 'y' but got the value 'n'.  ". I think the configuration CONFIG_I2C_2 is set to 'y' (in prj.conf?) and is selected by another config to 'n' (e.g. if CONFIG_I2C is not set to 'y').

    Best regards,

    Simon

Related