nrf9160dk_nrf9160 v0.9.0 v1.7.1 mcp2515 canbus build problems.

Hi 

Im trying to get the mcp2515 candriver example  to work  https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/net/sockets/can#id3.

i have some error during build.
information bellow.

&spi3 {
    status = "okay";
    sck-pin = <10>;
    mosi-pin = <11>;
    miso-pin = <12>;
    cs-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  
    mcp2515@0 {
      compatible = "microchip,mcp2515";
		spi-max-frequency = <1000000>;
		/*int-gpios = <31>; /* D2 */
                             int-gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; /* D2 */
		status = "okay";
		label = "CAN_3";
		reg = <0x0>;
		osc-freq = <16000000>;
		bus-speed = <125000>;
		sjw = <1>;
		prop-seg = <2>;
		phase-seg1 = <7>;
		phase-seg2 = <6>;
		#address-cells = <1>;
		#size-cells = <0>;
    };
  };

nrf9160dk_nrf9160_ns.overlay

CONFIG_SPI=y
CONFIG_I2C=n
CONFIG_SENSOR=y


CONFIG_CAN=y
CONFIG_CAN_INIT_PRIORITY=80


CONFIG_SHELL=y
CONFIG_CAN_SHELL=y
CONFIG_DEVICE_SHELL=y

prj.conf

# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(sockets_can)

target_sources(app PRIVATE src/main.c)

CMakeLists.txt

Building net_sockets_can
west build --build-dir c:\NordicApp\net_sockets_can\build c:\NordicApp\net_sockets_can --pristine --board nrf9160dk_nrf9160_ns -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="c:/NordicApp/net_sockets_can" -DDTC_OVERLAY_FILE:STRING="c:/NordicApp/net_sockets_can/nrf9160dk_nrf9160_ns.overlay" -DCONF_FILE:STRING="c:/NordicApp/net_sockets_can/prj.conf"

-- west build: generating a build system
Including boilerplate (Zephyr base): C:/NordicSemi/v1.7.1/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/NordicApp/net_sockets_can
-- Zephyr version: 2.6.99 (C:/NordicSemi/v1.7.1/zephyr), build: v2.6.99-ncs1-1
-- Found Python3: C:/NordicSemi/v1.7.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160_ns, Revision: 0.7.0
-- Cache files will be written to: C:/NordicSemi/v1.7.1/zephyr/.cache
-- Found dtc: C:/NordicSemi/v1.7.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (c:/NordicSemi/v1.7.1/toolchain/opt)
-- Found BOARD.dts: C:/NordicSemi/v1.7.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
-- Found devicetree overlay: c:/NordicApp/net_sockets_can/nrf9160dk_nrf9160_ns.overlay
-- Generated zephyr.dts: C:/NordicApp/net_sockets_can/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/NordicApp/net_sockets_can/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/NordicApp/net_sockets_can/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/NordicApp/net_sockets_can/build/zephyr/dts.cmake
Parsing C:/NordicSemi/v1.7.1/zephyr/Kconfig
Loaded configuration 'C:/NordicSemi/v1.7.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig'
Merged configuration 'c:/NordicApp/net_sockets_can/prj.conf'
Configuration saved to 'C:/NordicApp/net_sockets_can/build/zephyr/.config'
Kconfig header saved to 'C:/NordicApp/net_sockets_can/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/NordicSemi/v1.7.1/toolchain/opt/bin/arm-none-eabi-gcc.exe
Changed board to secure nrf9160dk_nrf9160 (NOT NS)

=== child image spm -  begin ===
Including boilerplate (Zephyr base): C:/NordicSemi/v1.7.1/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/NordicSemi/v1.7.1/nrf/samples/spm
-- Zephyr version: 2.6.99 (C:/NordicSemi/v1.7.1/zephyr), build: v2.6.99-ncs1-1
-- Found Python3: C:/NordicSemi/v1.7.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160, Revision: 0.7.0
-- Cache files will be written to: C:/NordicSemi/v1.7.1/zephyr/.cache
-- Found dtc: C:/NordicSemi/v1.7.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/NordicSemi/v1.7.1/toolchain/opt)
-- Found BOARD.dts: C:/NordicSemi/v1.7.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
-- Found devicetree overlay: C:/NordicSemi/v1.7.1/nrf/samples/spm/nrf9160dk_nrf9160.overlay
-- Generated zephyr.dts: C:/NordicApp/net_sockets_can/build/spm/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/NordicApp/net_sockets_can/build/spm/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/NordicApp/net_sockets_can/build/spm/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/NordicApp/net_sockets_can/build/spm/zephyr/dts.cmake
Parsing C:/NordicSemi/v1.7.1/zephyr/Kconfig
Loaded configuration 'C:/NordicSemi/v1.7.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
Merged configuration 'C:/NordicSemi/v1.7.1/nrf/samples/spm/prj.conf'
Merged configuration 'C:/NordicSemi/v1.7.1/nrf/samples/spm/boards/nrf9160dk_nrf9160.conf'
Merged configuration 'C:/NordicSemi/v1.7.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration 'C:/NordicApp/net_sockets_can/build/spm/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to 'C:/NordicApp/net_sockets_can/build/spm/zephyr/.config'
Kconfig header saved to 'C:/NordicApp/net_sockets_can/build/spm/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/NordicSemi/v1.7.1/toolchain/opt/bin/arm-none-eabi-gcc.exe
CMake Warning (dev) at C:\NordicSemi\v1.7.1\nrfxlib\nrf_security\cmake\extensions.cmake:652:
  Syntax Warning in cmake code at column 32

  Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
  C:\NordicSemi\v1.7.1\nrfxlib\nrf_security\CMakeLists.txt:185 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning at C:\NordicSemi\v1.7.1\zephyr\CMakeLists.txt:1612 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done
-- Generating done
-- Build files have been written to: C:/NordicApp/net_sockets_can/build/spm
=== child image spm -  end ===

Dropping partition 'nrf_modem_lib_trace' since its size is 0.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/NordicApp/net_sockets_can/build
-- west build: building application
[1/190] Creating directories for 'spm_subimage'
[2/190] No download step for 'spm_subimage'
[3/190] No update step for 'spm_subimage'
[4/190] No patch step for 'spm_subimage'
[5/190] No configure step for 'spm_subimage'
[5/190] Performing build step for 'spm_subimage'
[1/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/aesni.c.obj
[2/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/arc4.c.obj
[3/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/aria.c.obj
[4/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/camellia.c.obj
[5/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/base64.c.obj
[6/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/asn1parse.c.obj
[7/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/asn1write.c.obj
[8/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/blowfish.c.obj
[9/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/debug.c.obj
[10/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/des.c.obj
[11/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/ctr_drbg.c.obj
[12/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/cipher_wrap.c.obj
[13/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/error.c.obj
[14/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/cipher.c.obj
[15/214] Generating objects/cc3xx.mon
[16/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/entropy.c.obj
[17/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/havege.c.obj
[18/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/entropy_poll.c.obj
[19/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/hkdf.c.obj
[20/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/gcm.c.obj
[21/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/hmac_drbg.c.obj
[22/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/bignum.c.obj
[23/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/nist_kw.c.obj
[24/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/md2.c.obj
[25/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/md.c.obj
[26/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/md4.c.obj
[27/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/pkcs12.c.obj
[28/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/md5.c.obj
[29/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/pk.c.obj
[30/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/pk_wrap.c.obj
[31/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/padlock.c.obj
[32/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/ripemd160.c.obj
[33/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/pkparse.c.obj
[34/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/oid.c.obj
[35/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/pkwrite.c.obj
[36/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/platform.c.obj
[37/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/timing.c.obj
[38/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/platform_util.c.obj
[39/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/version.c.obj
[40/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/xtea.c.obj
[41/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/pkcs5.c.obj
[42/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/psa_crypto.c.obj
[43/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/psa_crypto_ecp.c.obj
[44/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/version_features.c.obj
[45/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/psa_crypto_storage.c.obj
[46/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/psa_crypto_slot_management.c.obj
[47/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/psa_crypto_rsa.c.obj
[48/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/psa_crypto_client.c.obj
[49/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/psa_crypto_driver_wrappers.c.obj
[50/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/replacements/pem.c.obj
[51/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/shared/CMakeFiles/mbedcrypto_shared.dir/C_/NordicSemi/v1.7.1/mbedtls/library/sha512.c.obj
[52/214] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[53/214] Generating include/generated/driver-validation.h
[54/214] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[55/214] Linking C static library modules\nrfxlib\nrfxlib\nrf_security\src\libmbedcrypto.a
[56/214] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[57/214] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[58/214] Generating include/generated/offsets.h
[59/214] Generating linker_zephyr_prebuilt.cmd
[60/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
[61/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
[62/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
[63/214] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
[64/214] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
[65/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
[66/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
[67/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
[68/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
[69/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
[70/214] Building C object zephyr/CMakeFiles/zephyr.dir/C_/NordicSemi/v1.7.1/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c.obj
[71/214] Linking C static library zephyr\arch\common\libisr_tables.a
[72/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
[73/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
[74/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
[75/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
[76/214] Linking C static library zephyr\arch\common\libarch__common.a
[77/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
[78/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
[79/214] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
[80/214] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
[81/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
[82/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
[83/214] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
[84/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
[85/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/tz/CMakeFiles/arch__arm__core__aarch32__cortex_m__tz.dir/arm_core_tz.c.obj
[86/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/abort.c.obj
[87/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/CMakeFiles/arch__arm__core__aarch32__cortex_m__cmse.dir/arm_core_cmse.c.obj
[88/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
[89/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj
[90/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj
[91/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
[92/214] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\tz\libarch__arm__core__aarch32__cortex_m__tz.a
[93/214] Linking C static library zephyr\arch\arch\arm\core\aarch32\mpu\libarch__arm__core__aarch32__mpu.a
[94/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/atoi.c.obj
[95/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj
[96/214] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\cmse\libarch__arm__core__aarch32__cortex_m__cmse.a
[97/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj
[98/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/bsearch.c.obj
[99/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
[100/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strspn.c.obj
[101/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj
[102/214] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a
[103/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj
[104/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj
[105/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj
[106/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/exit.c.obj
[107/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.obj
[108/214] Building C object CMakeFiles/app.dir/src/main.c.obj
[109/214] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[110/214] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
[111/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[112/214] Linking C static library zephyr\lib\libc\minimal\liblib__libc__minimal.a
[113/214] Linking C static library app\libapp.a
[114/214] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/pthread_common.c.obj
[115/214] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[116/214] Building C object zephyr/boards/boards/arm/nrf9160dk_nrf9160/CMakeFiles/boards__arm__nrf9160dk_nrf9160.dir/nrf52840_reset.c.obj
[117/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[118/214] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/nanosleep.c.obj
[119/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[120/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[121/214] Linking C static library zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a
[122/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[123/214] Linking C static library zephyr\subsys\random\libsubsys__random.a
[124/214] Linking C static library zephyr\boards\boards\arm\nrf9160dk_nrf9160\libboards__arm__nrf9160dk_nrf9160.a
[125/214] Linking C static library zephyr\lib\posix\liblib__posix.a
[126/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[127/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[128/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[129/214] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/timer/sys_clock_init.c.obj
[130/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[131/214] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/console/uart_console.c.obj
[132/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[133/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[134/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[135/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[136/214] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/clock_control/clock_control_nrf.c.obj
[137/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[138/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[139/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[140/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[141/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[142/214] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[143/214] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
[144/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[145/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
[146/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[147/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[148/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[149/214] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/nrf91/soc.c.obj
[150/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[151/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[152/214] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
[153/214] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/nrf91/power.c.obj
[154/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm_ctrl.c.obj
[155/214] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
[156/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/policy/policy_residency.c.obj
[157/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[158/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/power.c.obj
[159/214] Building C object zephyr/CMakeFiles/zephyr.dir/C_/NordicSemi/v1.7.1/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj
[160/214] Building C object zephyr/CMakeFiles/zephyr.dir/C_/NordicSemi/v1.7.1/nrf/subsys/spm/spm.c.obj
[161/214] Building C object zephyr/CMakeFiles/zephyr.dir/C_/NordicSemi/v1.7.1/nrf/subsys/partition_manager/flash_map_partition_manager.c.obj
[162/214] Building C object zephyr/CMakeFiles/zephyr.dir/C_/NordicSemi/v1.7.1/nrf/subsys/spm/secure_services.c.obj
[163/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/mdk/system_nrf9160.c.obj
[164/214] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/timer/nrf_rtc_timer.c.obj
[165/214] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/C_/NordicSemi/v1.7.1/nrf/drivers/entropy/entropy_cc310.c.obj
[166/214] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir/fatal_error.c.obj
[167/214] Building C object modules/nrf/subsys/fw_info/CMakeFiles/..__nrf__subsys__fw_info.dir/fw_info.c.obj
[168/214] Building C object modules/nrf/drivers/hw_cc310/CMakeFiles/..__nrf__drivers__hw_cc310.dir/hw_cc310.c.obj
[169/214] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj
[170/214] Linking C static library zephyr\drivers\entropy\libdrivers__entropy.a
[171/214] Linking C static library modules\nrf\lib\fatal_error\lib..__nrf__lib__fatal_error.a
[172/214] Linking C static library modules\nrf\subsys\fw_info\lib..__nrf__subsys__fw_info.a
[173/214] Linking C static library zephyr\drivers\serial\libdrivers__serial.a
[174/214] Linking C static library modules\nrf\drivers\hw_cc310\lib..__nrf__drivers__hw_cc310.a
[175/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
[176/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/drivers/src/nrfx_nvmc.c.obj
[177/214] Linking C static library zephyr\libzephyr.a
[178/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj
[179/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[180/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[181/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/drivers/src/nrfx_uarte.c.obj
[182/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[183/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[184/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[185/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[186/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
[187/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[188/214] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a
[189/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[190/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj
[191/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/system_work_q.c.obj
[192/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[193/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sem.c.obj
[194/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/msg_q.c.obj
[195/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/xip.c.obj
[196/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/queue.c.obj
[197/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/pipes.c.obj
[198/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mutex.c.obj
[199/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/condvar.c.obj
[200/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj
[201/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj
[202/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/stack.c.obj
[203/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
[204/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/work.c.obj
[205/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sched.c.obj
[206/214] Linking C static library zephyr\kernel\libkernel.a
[207/214] Linking C executable zephyr\zephyr_prebuilt.elf

[208/214] Generating linker.cmd
[209/214] Generating isr_tables.c, isrList.bin
[210/214] Generating dev_handles.c
[211/214] Building C object zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj
[212/214] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
[213/214] Building C object zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj
[214/214] Linking C executable zephyr\zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:         64 KB        64 KB    100.00%
            SRAM:       11808 B        64 KB     18.02%
        IDT_LIST:          0 GB         2 KB      0.00%
[9/190] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[11/190] No install step for 'spm_subimage'
[12/190] Completed 'spm_subimage'
[13/190] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[14/190] Generating include/generated/offsets.h
[15/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
[16/190] Generating linker_zephyr_prebuilt.cmd
[17/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
[18/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
[19/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
[20/190] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
[21/190] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
[22/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
[23/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
[24/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
[25/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
[26/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
[27/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
[28/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
[29/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
[30/190] Linking C static library zephyr\arch\common\libisr_tables.a
[31/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
[32/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
[33/190] Linking C static library zephyr\arch\common\libarch__common.a
[34/190] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
[35/190] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
[36/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj
[37/190] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
[38/190] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
[39/190] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
[40/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj
[41/190] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
[42/190] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/CMakeFiles/arch__arm__core__aarch32__cortex_m__cmse.dir/arm_core_cmse.c.obj
[43/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj
[44/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strspn.c.obj
[45/190] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
[46/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj
[47/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/atoi.c.obj
[48/190] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\cmse\libarch__arm__core__aarch32__cortex_m__cmse.a
[49/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj
[50/190] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a
[51/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj
[52/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/bsearch.c.obj
[53/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj
[54/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/abort.c.obj
[55/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/exit.c.obj
[56/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.obj
[57/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj
[58/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
[59/190] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
[60/190] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
[61/190] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/pthread_common.c.obj
[62/190] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/nanosleep.c.obj
[63/190] Building C object zephyr/boards/arm/nrf9160dk_nrf9160/CMakeFiles/boards__arm__nrf9160dk_nrf9160.dir/nrf52840_reset.c.obj
[64/190] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[65/190] Linking C static library zephyr\lib\libc\minimal\liblib__libc__minimal.a
[66/190] Linking C static library zephyr\arch\arch\arm\core\aarch32\mpu\libarch__arm__core__aarch32__mpu.a
[67/190] Linking C static library zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a
[68/190] Linking C static library zephyr\lib\posix\liblib__posix.a
[69/190] Linking C static library zephyr\boards\arm\nrf9160dk_nrf9160\libboards__arm__nrf9160dk_nrf9160.a
[70/190] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/C_/NordicSemi/v1.7.1/nrf/drivers/entropy/entropy_cc310.c.obj
[71/190] Linking C static library zephyr\subsys\random\libsubsys__random.a
[72/190] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/shmem_sanity.c.obj
[73/190] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj
[74/190] Linking C static library zephyr\drivers\entropy\libdrivers__entropy.a
[75/190] Building C object zephyr/drivers/spi/CMakeFiles/drivers__spi.dir/spi_nrfx_spim.c.obj
[76/190] Linking C static library zephyr\drivers\gpio\libdrivers__gpio.a
[77/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/mdk/system_nrf9160.c.obj
[78/190] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_lib.c.obj
[79/190] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj
[80/190] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir/fatal_error.c.obj
[81/190] Linking C static library zephyr\drivers\spi\libdrivers__spi.a
[82/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
[83/190] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_os.c.obj
[84/190] Building C object modules/nrf/subsys/fw_info/CMakeFiles/..__nrf__subsys__fw_info.dir/fw_info.c.obj
[85/190] Linking C static library zephyr\drivers\serial\libdrivers__serial.a
[86/190] Linking C static library modules\nrf\lib\fatal_error\lib..__nrf__lib__fatal_error.a
[87/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/drivers/src/nrfx_ipc.c.obj
[88/190] Linking C static library modules\nrf\lib\nrf_modem_lib\lib..__nrf__lib__nrf_modem_lib.a
[89/190] Linking C static library modules\nrf\subsys\fw_info\lib..__nrf__subsys__fw_info.a
[90/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj
[91/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[92/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[93/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/drivers/src/nrfx_dppi.c.obj
[94/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[95/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/drivers/src/nrfx_nvmc.c.obj
[96/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[97/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[98/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[99/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[100/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/drivers/src/nrfx_spim.c.obj
[101/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
[102/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[103/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[104/190] Building C object CMakeFiles/app.dir/src/main.c.obj
FAILED: CMakeFiles/app.dir/src/main.c.obj 
C:\NordicSemi\v1.7.1\toolchain\opt\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v2.6.99-ncs1-1 -DEXT_API_MAGIC=0x281ee6de,0xb845acea,23298 -DFIRMWARE_INFO_MAGIC=0x281ee6de,0x8fcebb4c,23298 -DKERNEL -DNRF9160_XXAA -DNRF_TRUSTZONE_NONSECURE -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/NordicSemi/v1.7.1/zephyr/include -Izephyr/include/generated -IC:/NordicSemi/v1.7.1/zephyr/soc/arm/nordic_nrf/nrf91 -IC:/NordicSemi/v1.7.1/zephyr/lib/util/fnmatch/. -IC:/NordicSemi/v1.7.1/nrf/include -IC:/NordicSemi/v1.7.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/NordicSemi/v1.7.1/modules/hal/nordic/nrfx -IC:/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/drivers/include -IC:/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/mdk -IC:/NordicSemi/v1.7.1/zephyr/modules/hal_nordic/nrfx/. -IC:/NordicSemi/v1.7.1/nrfxlib/nrf_modem/include -isystem C:/NordicSemi/v1.7.1/zephyr/lib/libc/minimal/include -isystem c:/nordicsemi/v1.7.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include -isystem c:/nordicsemi/v1.7.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include-fixed -Os -imacros C:/NordicApp/net_sockets_can/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -imacros C:/NordicSemi/v1.7.1/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-address-of-packed-member -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/NordicApp/net_sockets_can=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/NordicSemi/v1.7.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/NordicSemi/v1.7.1=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c ../src/main.c
../src/main.c: In function 'tx':
c:\NordicApp\net_sockets_can\src\main.c:63:9: warning: implicit declaration of function 'send' [-Wimplicit-function-declaration]
   63 |   ret = send(fd, &frame, sizeof(frame), 0);
      |         ^~~~
../src/main.c: In function 'create_socket':
c:\NordicApp\net_sockets_can\src\main.c:77:7: warning: implicit declaration of function 'socket' [-Wimplicit-function-declaration]
   77 |  fd = socket(AF_CAN, SOCK_RAW, CAN_RAW);
      |       ^~~~~~
In file included from C:\NordicSemi\v1.7.1\zephyr\include\net\net_if.h:29,
                 from C:\NordicSemi\v1.7.1\zephyr\include\net\net_context.h:28,
                 from C:\NordicSemi\v1.7.1\zephyr\include\net\dns_resolve.h:17,
                 from C:\NordicSemi\v1.7.1\zephyr\include\net\socket.h:28,
                 from c:\NordicApp\net_sockets_can\src\main.c:12:
C:\NordicSemi\v1.7.1\zephyr\include\net\net_l2.h:82:32: error: '_net_l2_CANBUS_RAW' undeclared (first use in this function)
   82 | #define NET_L2_GET_NAME(_name) _net_l2_##_name
      |                                ^~~~~~~~
c:\NordicApp\net_sockets_can\src\main.c:84:29: note: in expansion of macro 'NET_L2_GET_NAME'
   84 |   net_if_get_first_by_type(&NET_L2_GET_NAME(CANBUS_RAW)));
      |                             ^~~~~~~~~~~~~~~
C:\NordicSemi\v1.7.1\zephyr\include\net\net_l2.h:82:32: note: each undeclared identifier is reported only once for each function it appears in
   82 | #define NET_L2_GET_NAME(_name) _net_l2_##_name
      |                                ^~~~~~~~
c:\NordicApp\net_sockets_can\src\main.c:84:29: note: in expansion of macro 'NET_L2_GET_NAME'
   84 |   net_if_get_first_by_type(&NET_L2_GET_NAME(CANBUS_RAW)));
      |                             ^~~~~~~~~~~~~~~
c:\NordicApp\net_sockets_can\src\main.c:87:8: warning: implicit declaration of function 'bind' [-Wimplicit-function-declaration]
   87 |  ret = bind(fd, (struct sockaddr *)&can_addr, sizeof(can_addr));
      |        ^~~~
c:\NordicApp\net_sockets_can\src\main.c:90:9: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
   90 |   (void)close(fd);
      |         ^~~~~
c:\NordicApp\net_sockets_can\src\main.c:94:8: warning: implicit declaration of function 'setsockopt'; did you mean 'zsock_setsockopt'? [-Wimplicit-function-declaration]
   94 |  (void)setsockopt(fd, SOL_CAN_RAW, CAN_RAW_FILTER, filter,
      |        ^~~~~~~~~~
      |        zsock_setsockopt
../src/main.c: In function 'rx':
c:\NordicApp\net_sockets_can\src\main.c:119:9: warning: implicit declaration of function 'recvfrom' [-Wimplicit-function-declaration]
  119 |   ret = recvfrom(fd, &frame, sizeof(struct can_frame),
      |         ^~~~~~~~
In file included from C:\NordicSemi\v1.7.1\zephyr\include\net\net_if.h:29,
                 from C:\NordicSemi\v1.7.1\zephyr\include\net\net_context.h:28,
                 from C:\NordicSemi\v1.7.1\zephyr\include\net\dns_resolve.h:17,
                 from C:\NordicSemi\v1.7.1\zephyr\include\net\socket.h:28,
                 from c:\NordicApp\net_sockets_can\src\main.c:12:
../src/main.c: In function 'setup_socket':
C:\NordicSemi\v1.7.1\zephyr\include\net\net_l2.h:82:32: error: '_net_l2_CANBUS_RAW' undeclared (first use in this function)
   82 | #define NET_L2_GET_NAME(_name) _net_l2_##_name
      |                                ^~~~~~~~
c:\NordicApp\net_sockets_can\src\main.c:173:36: note: in expansion of macro 'NET_L2_GET_NAME'
  173 |  iface = net_if_get_first_by_type(&NET_L2_GET_NAME(CANBUS_RAW));
      |                                    ^~~~~~~~~~~~~~~
[105/190] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a
[106/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[107/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[108/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[109/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[110/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[111/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[112/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[113/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\NordicSemi\v1.7.1\toolchain\opt\bin\cmake.EXE' --build 'c:\NordicApp\net_sockets_can\build'
The terminal process terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.
terminal build output.

  • Now the prj.conf is updated as in the example.

    CONFIG_CAN=y
    CONFIG_CAN_MAX_FILTER=5
    
    CONFIG_NETWORKING=y
    CONFIG_NET_SOCKETS=y
    CONFIG_NET_SOCKETS_CAN=y
    CONFIG_NET_SOCKETS_POSIX_NAMES=y
    
    CONFIG_NET_IPV6=n
    CONFIG_NET_IPV4=n
    CONFIG_NET_MGMT=n
    CONFIG_NET_TCP=n
    CONFIG_NET_UDP=n
    
    CONFIG_NET_DEFAULT_IF_CANBUS_RAW=y
    
    CONFIG_NET_PKT_RX_COUNT=30
    CONFIG_NET_PKT_TX_COUNT=30
    CONFIG_NET_BUF_RX_COUNT=30
    CONFIG_NET_BUF_TX_COUNT=30
    
    CONFIG_TEST_RANDOM_GENERATOR=y
    
    CONFIG_NET_SHELL=y
    CONFIG_LOG=y
    CONFIG_NET_LOG=y
    CONFIG_LOG_MODE_IMMEDIATE=y
    
    CONFIG_NET_SOCKETS_LOG_LEVEL_DBG=y
    CONFIG_CAN_LOG_LEVEL_DBG=y
    #CONFIG_NET_CONTEXT_LOG_LEVEL_DBG=y
    #CONFIG_NET_CORE_LOG_LEVEL_DBG=y
    #CONFIG_NET_CONN_LOG_LEVEL_DBG=y
    
    # Use smaller buffers for net_buf as CANBUS packets are quite small.
    CONFIG_NET_BUF_DATA_SIZE=64
    CONFIG_NET_BUF_USER_DATA_SIZE=0

    I got two warnings 

    CONFIG_CAN_MAX_FILTER couldn't be set. Missing dependencies:
    (CAN_STM32 && CAN) || (CAN_MCUX_FLEXCAN && CAN) || (CAN_MCP2515 && CAN) || (CAN_LOOPBACK && CAN)

    CONFIG_TEST_RANDOM_GENERATOR was assigned the value y, but got the value n. Missing dependencies:
    !ENTROPY_HAS_DRIVER

    when run the program i get this messagaes:


     

    uart:~$ *** Booting Zephyr OS build v2.6.99-ncs1-1  ***
    Flash regions           Domain          Permissions
    00 01 0x00000 0x10000   Secure          rwxl
    02 31 0x10000 0x100000  Non-Secure      rwxl
    
    Non-secure callable region 0 placed in flash region 1 with size 32.
    
    SRAM region             Domain          Permissions
    00 07 0x00000 0x10000   Secure          rwxl
    08 31 0x10000 0x40000   Non-Secure      rwxl
    
    Peripheral              Domain          Status
    00 NRF_P0               Non-Secure      OK
    01 NRF_CLOCK            Non-Secure      OK
    02 NRF_RTC0             Non-Secure      OK
    03 NRF_RTC1             Non-Secure      OK
    04 NRF_NVMC             Non-Secure      OK
    05 NRF_UARTE1           Non-Secure      OK
    06 NRF_UARTE2           Secure          SKIP
    07 NRF_TWIM2            Non-Secure      OK
    08 NRF_SPIM3            Non-Secure      OK
    09 NRF_TIMER0           Non-Secure      OK
    10 NRF_TIMER1           Non-Secure      OK
    11 NRF_TIMER2           Non-Secure      OK
    12 NRF_SAADC            Non-Secure      OK
    13 NRF_PWM0             Non-Secure      OK
    14 NRF_PWM1             Non-Secure      OK
    15 NRF_PWM2             Non-Secure      OK
    16 NRF_PWM3             Non-Secure      OK
    17 NRF_WDT              Non-Secure      OK
    18 NRF_IPC              Non-Secure      OK
    19 NRF_VMC              Non-Secure      OK
    20 NRF_FPU              Non-Secure      OK
    21 NRF_EGU1             Non-Secure      OK
    22 NRF_EGU2             Non-Secure      OK
    23 NRF_DPPIC            Non-Secure      OK
    24 NRF_REGULATORS       Non-Secure      OK
    25 NRF_PDM              Non-Secure      OK
    26 NRF_I2S              Non-Secure      OK
    27 NRF_GPIOTE1          Non-Secure      OK
    
    SPM: NS image at 0x10000
    SPM: NS MSP at 0x20017ae8
    SPM: NS reset vector at 0x15a41
    SPM: prepare to jump to Non-Secure image.
    
    
    uart:~$ *** Booting Zephyr OS build v2.6.99-ncs1-1  ***
    [00:00:02.207,122] <err> net_socket_can_sample: No CANBUS network interface found!
    [00:00:02.217,651] <err> net_socket_can_sample: Cannot start CAN application (-2)
    ua
    uart:~$ 

  • 0
    326 pts.
    in reply to T.B-D

    You also need to add:

    CONFIG_CAN_MCP2515=y

    CONFIG_TEST_RANDOM_GENERATOR is just for testing, so you can try just ignoring it for now. If you want to use it, try disabling random number generation with:

    CONFIG_ENTROPY_CC3XX=n

  •  

    CONFIG_CAN=y
    CONFIG_CAN_MAX_FILTER=5
    
    CONFIG_CAN_MCP2515=y
    CONFIG_ENTROPY_CC3XX=n 
    CONFIG_SPI=y  
    
    CONFIG_NETWORKING=y
    CONFIG_NET_SOCKETS=y
    CONFIG_NET_SOCKETS_CAN=y
    CONFIG_NET_SOCKETS_POSIX_NAMES=y
    
    CONFIG_NET_IPV6=n
    CONFIG_NET_IPV4=n
    CONFIG_NET_MGMT=n
    CONFIG_NET_TCP=n
    CONFIG_NET_UDP=n
    
    CONFIG_NET_DEFAULT_IF_CANBUS_RAW=y
    
    CONFIG_NET_PKT_RX_COUNT=30
    CONFIG_NET_PKT_TX_COUNT=30
    CONFIG_NET_BUF_RX_COUNT=30
    CONFIG_NET_BUF_TX_COUNT=30
    
    #CONFIG_TEST_RANDOM_GENERATOR=y
    
    CONFIG_NET_SHELL=y
    CONFIG_LOG=y
    CONFIG_NET_LOG=y
    CONFIG_LOG_MODE_IMMEDIATE=y
    
    CONFIG_NET_SOCKETS_LOG_LEVEL_DBG=y
    CONFIG_CAN_LOG_LEVEL_DBG=y
    #CONFIG_NET_CONTEXT_LOG_LEVEL_DBG=y
    #CONFIG_NET_CORE_LOG_LEVEL_DBG=y
    #CONFIG_NET_CONN_LOG_LEVEL_DBG=y
    
    # Use smaller buffers for net_buf as CANBUS packets are quite small.
    CONFIG_NET_BUF_DATA_SIZE=64
    CONFIG_NET_BUF_USER_DATA_SIZE=0

    added:

    CONFIG_CAN_MCP2515=y
    CONFIG_ENTROPY_CC3XX=n
    CONFIG_SPI=y


    Bellow the build and it has some errors in it.

    Building net_sockets_can
    west build --build-dir c:\NordicApp\net_sockets_can\build c:\NordicApp\net_sockets_can --pristine --board nrf9160dk_nrf9160_ns -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="c:/NordicApp/net_sockets_can" -DDTC_OVERLAY_FILE:STRING="c:/NordicApp/net_sockets_can/nrf9160dk_nrf9160_ns.overlay" -DCONF_FILE:STRING="c:/NordicApp/net_sockets_can/prj.conf"
    
    -- west build: generating a build system
    Including boilerplate (Zephyr base): C:/NordicSemi/v1.7.1/zephyr/cmake/app/boilerplate.cmake
    -- Application: C:/NordicApp/net_sockets_can
    -- Zephyr version: 2.6.99 (C:/NordicSemi/v1.7.1/zephyr), build: v2.6.99-ncs1-1
    -- Found Python3: C:/NordicSemi/v1.7.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160_ns, Revision: 0.7.0
    -- Cache files will be written to: C:/NordicSemi/v1.7.1/zephyr/.cache
    -- Found dtc: C:/NordicSemi/v1.7.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (c:/NordicSemi/v1.7.1/toolchain/opt)
    -- Found BOARD.dts: C:/NordicSemi/v1.7.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
    -- Found devicetree overlay: c:/NordicApp/net_sockets_can/nrf9160dk_nrf9160_ns.overlay
    -- Generated zephyr.dts: C:/NordicApp/net_sockets_can/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/NordicApp/net_sockets_can/build/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: C:/NordicApp/net_sockets_can/build/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: C:/NordicApp/net_sockets_can/build/zephyr/dts.cmake
    
    warning: ENTROPY_CC3XX (defined at C:\NordicSemi\v1.7.1\nrf\drivers\entropy\Kconfig:7) was assigned
    the value 'n' but got the value 'y'. See
    http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_ENTROPY_CC3XX.html and/or look up
    ENTROPY_CC3XX in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.
    
    Parsing C:/NordicSemi/v1.7.1/zephyr/Kconfig
    Loaded configuration 'C:/NordicSemi/v1.7.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig'
    Merged configuration 'c:/NordicApp/net_sockets_can/prj.conf'
    Configuration saved to 'C:/NordicApp/net_sockets_can/build/zephyr/.config'
    Kconfig header saved to 'C:/NordicApp/net_sockets_can/build/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.2.1
    -- The CXX compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/NordicSemi/v1.7.1/toolchain/opt/bin/arm-none-eabi-gcc.exe
    Changed board to secure nrf9160dk_nrf9160 (NOT NS)
    
    === child image spm -  begin ===
    Including boilerplate (Zephyr base): C:/NordicSemi/v1.7.1/zephyr/cmake/app/boilerplate.cmake
    -- Application: C:/NordicSemi/v1.7.1/nrf/samples/spm
    -- Zephyr version: 2.6.99 (C:/NordicSemi/v1.7.1/zephyr), build: v2.6.99-ncs1-1
    -- Found Python3: C:/NordicSemi/v1.7.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160, Revision: 0.7.0
    -- Cache files will be written to: C:/NordicSemi/v1.7.1/zephyr/.cache
    -- Found dtc: C:/NordicSemi/v1.7.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (C:/NordicSemi/v1.7.1/toolchain/opt)
    -- Found BOARD.dts: C:/NordicSemi/v1.7.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
    -- Found devicetree overlay: C:/NordicSemi/v1.7.1/nrf/samples/spm/nrf9160dk_nrf9160.overlay
    -- Generated zephyr.dts: C:/NordicApp/net_sockets_can/build/spm/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/NordicApp/net_sockets_can/build/spm/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: C:/NordicApp/net_sockets_can/build/spm/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: C:/NordicApp/net_sockets_can/build/spm/zephyr/dts.cmake
    Parsing C:/NordicSemi/v1.7.1/zephyr/Kconfig
    Loaded configuration 'C:/NordicSemi/v1.7.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
    Merged configuration 'C:/NordicSemi/v1.7.1/nrf/samples/spm/prj.conf'
    Merged configuration 'C:/NordicSemi/v1.7.1/nrf/samples/spm/boards/nrf9160dk_nrf9160.conf'
    Merged configuration 'C:/NordicSemi/v1.7.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'C:/NordicApp/net_sockets_can/build/spm/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/NordicApp/net_sockets_can/build/spm/zephyr/.config'
    Kconfig header saved to 'C:/NordicApp/net_sockets_can/build/spm/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.2.1
    -- The CXX compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/NordicSemi/v1.7.1/toolchain/opt/bin/arm-none-eabi-gcc.exe
    CMake Warning (dev) at C:\NordicSemi\v1.7.1\nrfxlib\nrf_security\cmake\extensions.cmake:652:
      Syntax Warning in cmake code at column 32
    
      Argument not separated from preceding token by whitespace.
    Call Stack (most recent call first):
      C:\NordicSemi\v1.7.1\nrfxlib\nrf_security\CMakeLists.txt:185 (include)
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    CMake Warning at C:\NordicSemi\v1.7.1\zephyr\CMakeLists.txt:1612 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/NordicApp/net_sockets_can/build/spm
    === child image spm -  end ===
    
    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/NordicApp/net_sockets_can/build
    -- west build: building application
    [1/218] Creating directories for 'spm_subimage'
    [2/218] No download step for 'spm_subimage'
    [3/218] No update step for 'spm_subimage'
    [4/218] No patch step for 'spm_subimage'
    [5/218] No configure step for 'spm_subimage'
    [5/218] Performing build step for 'spm_subimage'
    [1/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/aesni.c.obj
    [2/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/arc4.c.obj
    [3/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/aria.c.obj
    [4/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/base64.c.obj
    [5/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/asn1parse.c.obj
    [6/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/asn1write.c.obj
    [7/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/camellia.c.obj
    [8/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/blowfish.c.obj
    [9/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/ctr_drbg.c.obj
    [10/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/des.c.obj
    [11/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/debug.c.obj
    [12/214] Generating objects/cc3xx.mon
    [13/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/error.c.obj
    [14/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/cipher_wrap.c.obj
    [15/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/cipher.c.obj
    [16/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/entropy_poll.c.obj
    [17/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/gcm.c.obj
    [18/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/entropy.c.obj
    [19/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/hkdf.c.obj
    [20/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/havege.c.obj
    [21/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/bignum.c.obj
    [22/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/md4.c.obj
    [23/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/md2.c.obj
    [24/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/hmac_drbg.c.obj
    [25/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/nist_kw.c.obj
    [26/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/pkcs12.c.obj
    [27/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/padlock.c.obj
    [28/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/pk_wrap.c.obj
    [29/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/md.c.obj
    [30/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/md5.c.obj
    [31/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/pk.c.obj
    [32/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/pkwrite.c.obj
    [33/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/timing.c.obj
    [34/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/version_features.c.obj
    [35/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/platform_util.c.obj
    [36/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/psa_crypto.c.obj
    [37/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/ripemd160.c.obj
    [38/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/pkparse.c.obj
    [39/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/pkcs5.c.obj
    [40/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/platform.c.obj
    [41/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/oid.c.obj
    [42/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/psa_crypto_ecp.c.obj
    [43/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/xtea.c.obj
    [44/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/version.c.obj
    [45/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/psa_crypto_slot_management.c.obj
    [46/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/psa_crypto_storage.c.obj
    [47/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/psa_crypto_rsa.c.obj
    [48/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/psa_crypto_client.c.obj
    [49/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/replacements/pem.c.obj
    [50/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/NordicSemi/v1.7.1/mbedtls/library/psa_crypto_driver_wrappers.c.obj
    [51/214] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
    [52/214] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/shared/CMakeFiles/mbedcrypto_shared.dir/C_/NordicSemi/v1.7.1/mbedtls/library/sha512.c.obj
    [53/214] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
    [54/214] Generating include/generated/driver-validation.h
    [55/214] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
    [56/214] Linking C static library modules\nrfxlib\nrfxlib\nrf_security\src\libmbedcrypto.a
    [57/214] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
    [58/214] Generating include/generated/offsets.h
    [59/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
    [60/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
    [61/214] Generating linker_zephyr_prebuilt.cmd
    [62/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
    [63/214] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
    [64/214] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
    [65/214] Building C object zephyr/CMakeFiles/zephyr.dir/C_/NordicSemi/v1.7.1/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c.obj
    [66/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
    [67/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
    [68/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
    [69/214] Linking C static library zephyr\arch\common\libisr_tables.a
    [70/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
    [71/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
    [72/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
    [73/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
    [74/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
    [75/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
    [76/214] Linking C static library zephyr\arch\common\libarch__common.a
    [77/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
    [78/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
    [79/214] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
    [80/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
    [81/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/tz/CMakeFiles/arch__arm__core__aarch32__cortex_m__tz.dir/arm_core_tz.c.obj
    [82/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
    [83/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
    [84/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
    [85/214] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
    [86/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/CMakeFiles/arch__arm__core__aarch32__cortex_m__cmse.dir/arm_core_cmse.c.obj
    [87/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/abort.c.obj
    [88/214] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\tz\libarch__arm__core__aarch32__cortex_m__tz.a
    [89/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
    [90/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/atoi.c.obj
    [91/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj
    [92/214] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
    [93/214] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\cmse\libarch__arm__core__aarch32__cortex_m__cmse.a
    [94/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj
    [95/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj
    [96/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
    [97/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj
    [98/214] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a
    [99/214] Linking C static library zephyr\arch\arch\arm\core\aarch32\mpu\libarch__arm__core__aarch32__mpu.a
    [100/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/bsearch.c.obj
    [101/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj
    [102/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strspn.c.obj
    [103/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/exit.c.obj
    [104/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj
    [105/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj
    [106/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj
    [107/214] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.obj
    [108/214] Building C object CMakeFiles/app.dir/src/main.c.obj
    [109/214] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
    [110/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
    [111/214] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
    [112/214] Linking C static library app\libapp.a
    [113/214] Linking C static library zephyr\lib\libc\minimal\liblib__libc__minimal.a
    [114/214] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/pthread_common.c.obj
    [115/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
    [116/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
    [117/214] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
    [118/214] Building C object zephyr/boards/boards/arm/nrf9160dk_nrf9160/CMakeFiles/boards__arm__nrf9160dk_nrf9160.dir/nrf52840_reset.c.obj
    [119/214] Linking C static library zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a
    [120/214] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/nanosleep.c.obj
    [121/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
    [122/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
    [123/214] Linking C static library zephyr\subsys\random\libsubsys__random.a
    [124/214] Linking C static library zephyr\boards\boards\arm\nrf9160dk_nrf9160\libboards__arm__nrf9160dk_nrf9160.a
    [125/214] Linking C static library zephyr\lib\posix\liblib__posix.a
    [126/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
    [127/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
    [128/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
    [129/214] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/timer/sys_clock_init.c.obj
    [130/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
    [131/214] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/console/uart_console.c.obj
    [132/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
    [133/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
    [134/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
    [135/214] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/clock_control/clock_control_nrf.c.obj
    [136/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
    [137/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
    [138/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
    [139/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
    [140/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
    [141/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
    [142/214] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
    [143/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
    [144/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
    [145/214] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
    [146/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
    [147/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
    [148/214] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/nrf91/soc.c.obj
    [149/214] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/nrf91/power.c.obj
    [150/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
    [151/214] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
    [152/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
    [153/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/policy/policy_residency.c.obj
    [154/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
    [155/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
    [156/214] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
    [157/214] Building C object zephyr/CMakeFiles/zephyr.dir/C_/NordicSemi/v1.7.1/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj
    [158/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm_ctrl.c.obj
    [159/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/power.c.obj
    [160/214] Building C object zephyr/CMakeFiles/zephyr.dir/C_/NordicSemi/v1.7.1/nrf/subsys/spm/secure_services.c.obj
    [161/214] Building C object zephyr/CMakeFiles/zephyr.dir/C_/NordicSemi/v1.7.1/nrf/subsys/partition_manager/flash_map_partition_manager.c.obj
    [162/214] Building C object zephyr/CMakeFiles/zephyr.dir/C_/NordicSemi/v1.7.1/nrf/subsys/spm/spm.c.obj
    [163/214] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/timer/nrf_rtc_timer.c.obj
    [164/214] Building C object modules/nrf/subsys/fw_info/CMakeFiles/..__nrf__subsys__fw_info.dir/fw_info.c.obj
    [165/214] Building C object modules/nrf/drivers/hw_cc310/CMakeFiles/..__nrf__drivers__hw_cc310.dir/hw_cc310.c.obj
    [166/214] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/C_/NordicSemi/v1.7.1/nrf/drivers/entropy/entropy_cc310.c.obj
    [167/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/mdk/system_nrf9160.c.obj
    [168/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/drivers/src/nrfx_nvmc.c.obj
    [169/214] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir/fatal_error.c.obj
    [170/214] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj
    [171/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
    [172/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj
    [173/214] Linking C static library zephyr\libzephyr.a
    [174/214] Linking C static library modules\nrf\subsys\fw_info\lib..__nrf__subsys__fw_info.a
    [175/214] Linking C static library modules\nrf\drivers\hw_cc310\lib..__nrf__drivers__hw_cc310.a
    [176/214] Linking C static library modules\nrf\lib\fatal_error\lib..__nrf__lib__fatal_error.a
    [177/214] Linking C static library zephyr\drivers\entropy\libdrivers__entropy.a
    [178/214] Linking C static library zephyr\drivers\serial\libdrivers__serial.a
    [179/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
    [180/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
    [181/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
    [182/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
    [183/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
    [184/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/drivers/src/nrfx_uarte.c.obj
    [185/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
    [186/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
    [187/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj
    [188/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
    [189/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
    [190/214] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a
    [191/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sem.c.obj
    [192/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
    [193/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/msg_q.c.obj
    [194/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/system_work_q.c.obj
    [195/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mutex.c.obj
    [196/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/pipes.c.obj
    [197/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/stack.c.obj
    [198/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/queue.c.obj
    [199/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/xip.c.obj
    [200/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/condvar.c.obj
    [201/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj
    [202/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj
    [203/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sched.c.obj
    [204/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
    [205/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/work.c.obj
    [206/214] Linking C static library zephyr\kernel\libkernel.a
    [207/214] Linking C executable zephyr\zephyr_prebuilt.elf
    
    [208/214] Generating linker.cmd
    [209/214] Generating isr_tables.c, isrList.bin
    [210/214] Generating dev_handles.c
    [211/214] Building C object zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj
    [212/214] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
    [213/214] Building C object zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj
    [214/214] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:         64 KB        64 KB    100.00%
                SRAM:       11808 B        64 KB     18.02%
            IDT_LIST:          0 GB         2 KB      0.00%
    [9/218] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
    [11/218] No install step for 'spm_subimage'
    [12/218] Completed 'spm_subimage'
    [13/218] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
    [14/218] Generating include/generated/offsets.h
    [15/218] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
    [16/218] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/policy/policy_residency.c.obj
    [17/218] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/console/uart_console.c.obj
    [18/218] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/can/can_common.c.obj
    [19/218] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
    [20/218] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/socket_offload.c.obj
    [21/218] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets_select.c.obj
    [22/218] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/getaddrinfo.c.obj
    [23/218] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/clock_control/clock_control_nrf.c.obj
    [24/218] Generating linker_zephyr_prebuilt.cmd
    [25/218] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm_ctrl.c.obj
    [26/218] Building C object zephyr/CMakeFiles/zephyr.dir/C_/NordicSemi/v1.7.1/nrf/subsys/nonsecure/secure_services_ns.c.obj
    [27/218] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/timer/sys_clock_init.c.obj
    [28/218] Building C object zephyr/CMakeFiles/zephyr.dir/C_/NordicSemi/v1.7.1/nrf/subsys/partition_manager/flash_map_partition_manager.c.obj
    [29/218] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/timer/nrf_rtc_timer.c.obj
    [30/218] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/power.c.obj
    [31/218] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
    [32/218] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/can/can_shell.c.obj
    [33/218] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
    [34/218] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets.c.obj
    [35/218] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
    [36/218] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
    [37/218] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/can/can_mcp2515.c.obj
    FAILED: zephyr/CMakeFiles/zephyr.dir/drivers/can/can_mcp2515.c.obj 
    C:\NordicSemi\v1.7.1\toolchain\opt\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v2.6.99-ncs1-1 -DEXT_API_MAGIC=0x281ee6de,0xb845acea,23298 -DFIRMWARE_INFO_MAGIC=0x281ee6de,0x8fcebb4c,23298 -DKERNEL -DNRF9160_XXAA -DNRF_TRUSTZONE_NONSECURE -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/NordicSemi/v1.7.1/zephyr/kernel/include -IC:/NordicSemi/v1.7.1/zephyr/arch/arm/include -IC:/NordicSemi/v1.7.1/zephyr/include -Izephyr/include/generated -IC:/NordicSemi/v1.7.1/zephyr/soc/arm/nordic_nrf/nrf91 -IC:/NordicSemi/v1.7.1/zephyr/lib/util/fnmatch/. -IC:/NordicSemi/v1.7.1/zephyr/subsys/net/lib/sockets/. -IC:/NordicSemi/v1.7.1/nrf/include -IC:/NordicSemi/v1.7.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/NordicSemi/v1.7.1/modules/hal/nordic/nrfx -IC:/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/drivers/include -IC:/NordicSemi/v1.7.1/modules/hal/nordic/nrfx/mdk -IC:/NordicSemi/v1.7.1/zephyr/modules/hal_nordic/nrfx/. -IC:/NordicSemi/v1.7.1/nrfxlib/nrf_modem/include -isystem C:/NordicSemi/v1.7.1/zephyr/lib/libc/minimal/include -isystem c:/nordicsemi/v1.7.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include -isystem c:/nordicsemi/v1.7.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include-fixed -Os -imacros C:/NordicApp/net_sockets_can/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -imacros C:/NordicSemi/v1.7.1/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-address-of-packed-member -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/NordicApp/net_sockets_can=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/NordicSemi/v1.7.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/NordicSemi/v1.7.1=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/CMakeFiles/zephyr.dir/drivers/can/can_mcp2515.c.obj -MF zephyr\CMakeFiles\zephyr.dir\drivers\can\can_mcp2515.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/drivers/can/can_mcp2515.c.obj -c C:/NordicSemi/v1.7.1/zephyr/drivers/can/can_mcp2515.c
    In file included from C:\NordicSemi\v1.7.1\zephyr\include\toolchain\gcc.h:66,
                     from C:\NordicSemi\v1.7.1\zephyr\include\toolchain.h:43,
                     from C:\NordicSemi\v1.7.1\zephyr\include\kernel_includes.h:19,
                     from C:\NordicSemi\v1.7.1\zephyr\include\kernel.h:17,
                     from C:\NordicSemi\v1.7.1\zephyr\drivers\can\can_mcp2515.c:9:
    C:/NordicSemi/v1.7.1/zephyr/drivers/can/can_mcp2515.c: In function 'socket_can_init':
    C:\NordicSemi\v1.7.1\zephyr\include\device.h:80:39: error: '__device_dts_ord_DT_N_INST_1_microchip_mcp2515_ORD' undeclared (first use in this function)
       80 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)
          |                                       ^~~~~~~~~
    C:\NordicSemi\v1.7.1\zephyr\include\toolchain\common.h:124:26: note: in definition of macro '_DO_CONCAT'
      124 | #define _DO_CONCAT(x, y) x ## y
          |                          ^
    C:\NordicSemi\v1.7.1\zephyr\include\device.h:80:31: note: in expansion of macro '_CONCAT'
       80 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)
          |                               ^~~~~~~
    C:\NordicSemi\v1.7.1\zephyr\include\device.h:232:37: note: in expansion of macro 'DEVICE_NAME_GET'
      232 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_NAME(node_id))
          |                                     ^~~~~~~~~~~~~~~
    C:\NordicSemi\v1.7.1\zephyr\include\device.h:246:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
      246 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
          |                                  ^~~~~~~~~~~~~~~~~~
    C:\NordicSemi\v1.7.1\zephyr\include\device.h:255:34: note: in expansion of macro 'DEVICE_DT_GET'
      255 | #define DEVICE_DT_INST_GET(inst) DEVICE_DT_GET(DT_DRV_INST(inst))
          |                                  ^~~~~~~~~~~~~
    C:\NordicSemi\v1.7.1\zephyr\drivers\can\can_mcp2515.c:970:33: note: in expansion of macro 'DEVICE_DT_INST_GET'
      970 |  const struct device *can_dev = DEVICE_DT_INST_GET(1);
          |                                 ^~~~~~~~~~~~~~~~~~
    C:\NordicSemi\v1.7.1\zephyr\include\device.h:80:39: note: each undeclared identifier is reported only once for each function it appears in
       80 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)
          |                                       ^~~~~~~~~
    C:\NordicSemi\v1.7.1\zephyr\include\toolchain\common.h:124:26: note: in definition of macro '_DO_CONCAT'
      124 | #define _DO_CONCAT(x, y) x ## y
          |                          ^
    C:\NordicSemi\v1.7.1\zephyr\include\device.h:80:31: note: in expansion of macro '_CONCAT'
       80 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)
          |                               ^~~~~~~
    C:\NordicSemi\v1.7.1\zephyr\include\device.h:232:37: note: in expansion of macro 'DEVICE_NAME_GET'
      232 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_NAME(node_id))
          |                                     ^~~~~~~~~~~~~~~
    C:\NordicSemi\v1.7.1\zephyr\include\device.h:246:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
      246 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
          |                                  ^~~~~~~~~~~~~~~~~~
    C:\NordicSemi\v1.7.1\zephyr\include\device.h:255:34: note: in expansion of macro 'DEVICE_DT_GET'
      255 | #define DEVICE_DT_INST_GET(inst) DEVICE_DT_GET(DT_DRV_INST(inst))
          |                                  ^~~~~~~~~~~~~
    C:\NordicSemi\v1.7.1\zephyr\drivers\can\can_mcp2515.c:970:33: note: in expansion of macro 'DEVICE_DT_INST_GET'
      970 |  const struct device *can_dev = DEVICE_DT_INST_GET(1);
          |                                 ^~~~~~~~~~~~~~~~~~
    [38/218] Linking C static library zephyr\arch\common\libisr_tables.a
    [39/218] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
    [40/218] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
    [41/218] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
    [42/218] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
    [43/218] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
    [44/218] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
    [45/218] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
    [46/218] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'c:\NordicSemi\v1.7.1\toolchain\opt\bin\cmake.EXE' --build 'c:\NordicApp\net_sockets_can\build'
    The terminal process terminated with exit code: 1.
    
    Terminal will be reused by tasks, press any key to close it.

  • 0
    326 pts.
    in reply to T.B-D

    Try editing zephyr/drivers/can/can_mcp2515.c, line 970, and replace the 1 with a 0:

    	const struct device *can_dev = DEVICE_DT_INST_GET(0);

    This is at the start of the socket_can_init() function. Not sure if it will work, but that is what it is looking for. It may be a mistake in the driver.

Related