C:\Windows\system32\cmd.exe /d /s /c "west build --build-dir c:/WORKSPACE/CR2405A10/nordic/9160_ldc2114/build c:/WORKSPACE/CR2405A10/nordic/9160_ldc2114 --pristine --board nrf9160dk_nrf9160_ns -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/workspace/cr2405a10/nordic/9160_ldc2114" -- west build: generating a build system Loading Zephyr default modules (Zephyr base). -- Application: C:/WORKSPACE/CR2405A10/nordic/9160_ldc2114 -- CMake version: 3.20.5 -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter -- Cache files will be written to: C:/ncs/v2.5.0/zephyr/.cache -- Zephyr version: 3.4.99 (C:/ncs/v2.5.0/zephyr) -- Found west (found suitable version "1.1.0", minimum required is "0.14.0") -- Board: nrf9160dk_nrf9160_ns, Revision: 0.14.0 -- Found host-tools: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk) -- Found toolchain: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk) -- Found Dtc: C:/ncs/toolchains/c57af46cb7/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found BOARD.dts: C:/ncs/v2.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts -- Found devicetree overlay: C:/ncs/v2.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_0_14_0.overlay -- Found devicetree overlay: C:/WORKSPACE/CR2405A10/nordic/9160_ldc2114/boards/nrf9160dk_nrf9160_ns.overlay 'label' is marked as deprecated in 'properties:' in C:/WORKSPACE/CR2405A10/nordic/9160_ldc2114/dts/bindings\astri,ldc2114.yaml for node /soc/peripheral@40000000/i2c@9000/ldc2114@2a. -- Generated zephyr.dts: C:/WORKSPACE/CR2405A10/nordic/9160_ldc2114/build/zephyr/zephyr.dts -- Generated devicetree_generated.h: C:/WORKSPACE/CR2405A10/nordic/9160_ldc2114/build/zephyr/include/generated/devicetree_generated.h -- Including generated dts.cmake file: C:/WORKSPACE/CR2405A10/nordic/9160_ldc2114/build/zephyr/dts.cmake Parsing C:/ncs/v2.5.0/zephyr/Kconfig Loaded configuration 'C:/ncs/v2.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig' Merged configuration 'C:/WORKSPACE/CR2405A10/nordic/9160_ldc2114/prj.conf' Configuration saved to 'C:/WORKSPACE/CR2405A10/nordic/9160_ldc2114/build/zephyr/.config' Kconfig header saved to 'C:/WORKSPACE/CR2405A10/nordic/9160_ldc2114/build/zephyr/include/generated/autoconf.h' -- Found GnuLd: c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") -- The C compiler identification is GNU 12.2.0 -- The CXX compiler identification is GNU 12.2.0 -- The ASM compiler identification is GNU -- Found assembler: C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe CMake Warning at C:/ncs/v2.5.0/zephyr/CMakeLists.txt:1958 (message): __ASSERT() statements are globally ENABLED Dropping partition 'nrf_modem_lib_trace' since its size is 0. -- Configuring done -- Generating done -- Build files have been written to: C:/WORKSPACE/CR2405A10/nordic/9160_ldc2114/build -- west build: building application [2/291] Generating include/generated/version.h -- Zephyr version: 3.4.99 (C:/ncs/v2.5.0/zephyr), build: v3.4.99-ncs1 [3/291] Generating ../../tfm/CMakeCache.txt CMake Warning at cmake/version.cmake:22 (message): Actual TF-M version is not available from Git repository. Settled to v1.8.0 Call Stack (most recent call first): CMakeLists.txt:22 (include) -- Found Git: C:/ncs/toolchains/c57af46cb7/mingw64/bin/git.exe (found version "2.37.3.windows.1") -- The C compiler identification is GNU 12.2.0 -- The CXX compiler identification is GNU 12.2.0 -- The ASM compiler identification is GNU -- Found assembler: C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found version "3.8.2") found components: Interpreter CMake Deprecation Warning at C:/ncs/v2.5.0/zephyr/cmake/modules/FindDeprecated.cmake:121 (message): 'PYTHON_PREFER' variable is deprecated. Please use Python3_EXECUTABLE instead. Call Stack (most recent call first): C:/ncs/v2.5.0/zephyr/cmake/modules/python.cmake:16 (find_package) C:/ncs/v2.5.0/zephyr/cmake/modules/user_cache.cmake:30 (include) C:/ncs/v2.5.0/zephyr/cmake/modules/extensions.cmake:5 (include) C:/ncs/v2.5.0/nrf/subsys/nrf_security/tfm/CMakeLists.txt:36 (include) -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter -- Cache files will be written to: C:/ncs/v2.5.0/zephyr/.cache -- Configuring done -- Generating done -- Build files have been written to: C:/WORKSPACE/CR2405A10/nordic/9160_ldc2114/build/tfm [152/156] Linking C executable bin\tfm_s.axf Memory region Used Size Region Size %age Used FLASH: 64844 B 64 KB 98.94% RAM: 18888 B 32 KB 57.64% [15/291] Performing install step for 'tfm' -- Install configuration: "Debug" [123/291] Building C object CMakeFiles/app.dir/src/main.c.obj ../src/main.c: In function 'main': ../src/main.c:21:9: warning: implicit declaration of function 'Init' [-Wimplicit-function-declaration] 21 | Init(); | ^~~~ ../src/main.c:23:9: warning: implicit declaration of function 'System_start_delay' [-Wimplicit-function-declaration] 23 | System_start_delay(); | ^~~~~~~~~~~~~~~~~~ ../src/main.c: At top level: ../src/main.c:40:6: warning: conflicting types for 'Init'; have 'void()' 40 | void Init() | ^~~~ ../src/main.c:21:9: note: previous implicit declaration of 'Init' with type 'void()' 21 | Init(); | ^~~~ ../src/main.c:66:6: warning: conflicting types for 'System_start_delay'; have 'void(void)' 66 | void System_start_delay(void) { | ^~~~~~~~~~~~~~~~~~ ../src/main.c:23:9: note: previous implicit declaration of 'System_start_delay' with type 'void(void)' 23 | System_start_delay(); | ^~~~~~~~~~~~~~~~~~ In file included from ../include/9160_date_time.h:11, from ../include/ldc2114.h:17, from ../src/main.c:5: ../include/9160_cell_net.h:41:13: warning: 'lte_notify_handler' declared 'static' but never defined [-Wunused-function] 41 | static void lte_notify_handler(const struct lte_lc_evt *const evt); | ^~~~~~~~~~~~~~~~~~ ../include/9160_cell_net.h:42:13: warning: 'lwm2m_lte_reg_handler_notify' declared 'static' but never defined [-Wunused-function] 42 | static void lwm2m_lte_reg_handler_notify(enum lte_lc_nw_reg_status nw_reg_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/9160_cell_net.h:43:13: warning: 'lte_connected' declared 'static' but never defined [-Wunused-function] 43 | static bool lte_connected(enum lte_lc_nw_reg_status nw_reg_status); | ^~~~~~~~~~~~~ ../include/9160_cell_net.h:44:13: warning: 'modem_connect' declared 'static' but never defined [-Wunused-function] 44 | static void modem_connect(void); | ^~~~~~~~~~~~~ ../include/9160_date_time.h:23:13: warning: 'date_time_event_handler' declared 'static' but never defined [-Wunused-function] 23 | static void date_time_event_handler(const struct date_time_evt *evt); | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/ldc2114.h:94:59: warning: 'out2_callback' defined but not used [-Wunused-variable] 94 | static struct gpio_callback out0_callback, out1_callback, out2_callback, out3_callback; | ^~~~~~~~~~~~~ ../include/ldc2114.h:94:44: warning: 'out1_callback' defined but not used [-Wunused-variable] 94 | static struct gpio_callback out0_callback, out1_callback, out2_callback, out3_callback; | ^~~~~~~~~~~~~ ../include/ldc2114.h:94:29: warning: 'out0_callback' defined but not used [-Wunused-variable] 94 | static struct gpio_callback out0_callback, out1_callback, out2_callback, out3_callback; | ^~~~~~~~~~~~~ In file included from ../include/ldc2114.h:18: ../include/storage.h:26:22: warning: 'fs' defined but not used [-Wunused-variable] 26 | static struct nvs_fs fs; | ^~ ../include/9160_cell_net.h:36:13: warning: 'modem_connected_to_network' defined but not used [-Wunused-variable] 36 | static bool modem_connected_to_network; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/9160_cell_net.h:35:16: warning: 'imei_buf' defined but not used [-Wunused-variable] 35 | static uint8_t imei_buf[IMEI_LEN + sizeof("\r\nOK\r\n")]; | ^~~~~~~~ ../include/9160_cell_net.h:30:3: warning: 'client_state' defined but not used [-Wunused-variable] 30 | } client_state = START; | ^~~~~~~~~~~~ ../include/ldc2114.h:94:74: warning: 'out3_callback' defined but not used [-Wunused-variable] 94 | static struct gpio_callback out0_callback, out1_callback, out2_callback, out3_callback; | ^~~~~~~~~~~~~ In file included from ../src/main.c:4: ../include/9160_gpio.h:37:62: warning: 'infrared_callback' defined but not used [-Wunused-variable] 37 | static struct gpio_callback power_callback, assemb_callback, infrared_callback, out3_callback; | ^~~~~~~~~~~~~~~~~ ../include/9160_gpio.h:37:45: warning: 'assemb_callback' defined but not used [-Wunused-variable] 37 | static struct gpio_callback power_callback, assemb_callback, infrared_callback, out3_callback; | ^~~~~~~~~~~~~~~ ../include/9160_gpio.h:37:29: warning: 'power_callback' defined but not used [-Wunused-variable] 37 | static struct gpio_callback power_callback, assemb_callback, infrared_callback, out3_callback; | ^~~~~~~~~~~~~~ [125/291] Building C object CMakeFiles/app.dir/src/9160_gpio.c.obj In file included from ../src/9160_gpio.c:3: ../include/9160_gpio.h:37:81: warning: 'out3_callback' defined but not used [-Wunused-variable] 37 | static struct gpio_callback power_callback, assemb_callback, infrared_callback, out3_callback; | ^~~~~~~~~~~~~ ../include/9160_gpio.h:37:62: warning: 'infrared_callback' defined but not used [-Wunused-variable] 37 | static struct gpio_callback power_callback, assemb_callback, infrared_callback, out3_callback; | ^~~~~~~~~~~~~~~~~ ../include/9160_gpio.h:37:45: warning: 'assemb_callback' defined but not used [-Wunused-variable] 37 | static struct gpio_callback power_callback, assemb_callback, infrared_callback, out3_callback; | ^~~~~~~~~~~~~~~ ../include/9160_gpio.h:37:29: warning: 'power_callback' defined but not used [-Wunused-variable] 37 | static struct gpio_callback power_callback, assemb_callback, infrared_callback, out3_callback; | ^~~~~~~~~~~~~~ [129/291] Building C object CMakeFiles/app.dir/src/9160_cell_net.c.obj ../src/9160_cell_net.c: In function 'connectNBIoT': ../src/9160_cell_net.c:51:24: warning: 'return' with a value, in function returning void [-Wreturn-type] 51 | return 0; | ^ ../src/9160_cell_net.c:7:6: note: declared here 7 | void connectNBIoT(void){ | ^~~~~~~~~~~~ [130/291] Building C object CMakeFiles/app.dir/src/ldc2114.c.obj ../src/ldc2114.c: In function 'LDC2114Init': ../src/ldc2114.c:115:17: warning: unused variable 'cfgcomp' [-Wunused-variable] 115 | uint8_t cfgcomp[32], cfgcomp_1[32], cfgcomp_2[32], cfgcomp_3[32]; | ^~~~~~~ ../src/ldc2114.c:113:13: warning: unused variable 'data' [-Wunused-variable] 113 | uint8_t data,i,j,k; | ^~~~ In file included from ../include/9160_date_time.h:11, from ../include/ldc2114.h:17, from ../src/ldc2114.c:2: ../include/9160_cell_net.h: At top level: ../include/9160_cell_net.h:41:13: warning: 'lte_notify_handler' declared 'static' but never defined [-Wunused-function] 41 | static void lte_notify_handler(const struct lte_lc_evt *const evt); | ^~~~~~~~~~~~~~~~~~ ../include/9160_cell_net.h:42:13: warning: 'lwm2m_lte_reg_handler_notify' declared 'static' but never defined [-Wunused-function] 42 | static void lwm2m_lte_reg_handler_notify(enum lte_lc_nw_reg_status nw_reg_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/9160_cell_net.h:43:13: warning: 'lte_connected' declared 'static' but never defined [-Wunused-function] 43 | static bool lte_connected(enum lte_lc_nw_reg_status nw_reg_status); | ^~~~~~~~~~~~~ ../include/9160_cell_net.h:44:13: warning: 'modem_connect' declared 'static' but never defined [-Wunused-function] 44 | static void modem_connect(void); | ^~~~~~~~~~~~~ ../include/9160_date_time.h:23:13: warning: 'date_time_event_handler' declared 'static' but never defined [-Wunused-function] 23 | static void date_time_event_handler(const struct date_time_evt *evt); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ldc2114.h:18: ../include/storage.h:26:22: warning: 'fs' defined but not used [-Wunused-variable] 26 | static struct nvs_fs fs; | ^~ ../include/9160_cell_net.h:36:13: warning: 'modem_connected_to_network' defined but not used [-Wunused-variable] 36 | static bool modem_connected_to_network; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/9160_cell_net.h:35:16: warning: 'imei_buf' defined but not used [-Wunused-variable] 35 | static uint8_t imei_buf[IMEI_LEN + sizeof("\r\nOK\r\n")]; | ^~~~~~~~ ../include/9160_cell_net.h:30:3: warning: 'client_state' defined but not used [-Wunused-variable] 30 | } client_state = START; | ^~~~~~~~~~~~ In file included from ../include/ldc2114.h:16: ../include/9160_gpio.h:37:62: warning: 'infrared_callback' defined but not used [-Wunused-variable] 37 | static struct gpio_callback power_callback, assemb_callback, infrared_callback, out3_callback; | ^~~~~~~~~~~~~~~~~ ../include/9160_gpio.h:37:45: warning: 'assemb_callback' defined but not used [-Wunused-variable] 37 | static struct gpio_callback power_callback, assemb_callback, infrared_callback, out3_callback; | ^~~~~~~~~~~~~~~ ../include/9160_gpio.h:37:29: warning: 'power_callback' defined but not used [-Wunused-variable] 37 | static struct gpio_callback power_callback, assemb_callback, infrared_callback, out3_callback; | ^~~~~~~~~~~~~~ [131/291] Building C object CMakeFiles/app.dir/src/storage.c.obj In file included from ../include/9160_date_time.h:11, from ../include/storage.h:14, from ../src/storage.c:1: ../include/9160_cell_net.h:41:13: warning: 'lte_notify_handler' declared 'static' but never defined [-Wunused-function] 41 | static void lte_notify_handler(const struct lte_lc_evt *const evt); | ^~~~~~~~~~~~~~~~~~ ../include/9160_cell_net.h:42:13: warning: 'lwm2m_lte_reg_handler_notify' declared 'static' but never defined [-Wunused-function] 42 | static void lwm2m_lte_reg_handler_notify(enum lte_lc_nw_reg_status nw_reg_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/9160_cell_net.h:43:13: warning: 'lte_connected' declared 'static' but never defined [-Wunused-function] 43 | static bool lte_connected(enum lte_lc_nw_reg_status nw_reg_status); | ^~~~~~~~~~~~~ ../include/9160_cell_net.h:44:13: warning: 'modem_connect' declared 'static' but never defined [-Wunused-function] 44 | static void modem_connect(void); | ^~~~~~~~~~~~~ ../include/9160_date_time.h:23:13: warning: 'date_time_event_handler' declared 'static' but never defined [-Wunused-function] 23 | static void date_time_event_handler(const struct date_time_evt *evt); | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/9160_cell_net.h:36:13: warning: 'modem_connected_to_network' defined but not used [-Wunused-variable] 36 | static bool modem_connected_to_network; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/9160_cell_net.h:35:16: warning: 'imei_buf' defined but not used [-Wunused-variable] 35 | static uint8_t imei_buf[IMEI_LEN + sizeof("\r\nOK\r\n")]; | ^~~~~~~~ ../include/9160_cell_net.h:30:3: warning: 'client_state' defined but not used [-Wunused-variable] 30 | } client_state = START; | ^~~~~~~~~~~~ [133/291] Building C object CMakeFiles/app.dir/src/9160_date_time.c.obj In file included from ../include/9160_date_time.h:11, from ../src/9160_date_time.c:1: ../include/9160_cell_net.h:41:13: warning: 'lte_notify_handler' declared 'static' but never defined [-Wunused-function] 41 | static void lte_notify_handler(const struct lte_lc_evt *const evt); | ^~~~~~~~~~~~~~~~~~ ../include/9160_cell_net.h:42:13: warning: 'lwm2m_lte_reg_handler_notify' declared 'static' but never defined [-Wunused-function] 42 | static void lwm2m_lte_reg_handler_notify(enum lte_lc_nw_reg_status nw_reg_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/9160_cell_net.h:43:13: warning: 'lte_connected' declared 'static' but never defined [-Wunused-function] 43 | static bool lte_connected(enum lte_lc_nw_reg_status nw_reg_status); | ^~~~~~~~~~~~~ ../include/9160_cell_net.h:44:13: warning: 'modem_connect' declared 'static' but never defined [-Wunused-function] 44 | static void modem_connect(void); | ^~~~~~~~~~~~~ ../include/9160_cell_net.h:36:13: warning: 'modem_connected_to_network' defined but not used [-Wunused-variable] 36 | static bool modem_connected_to_network; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/9160_cell_net.h:35:16: warning: 'imei_buf' defined but not used [-Wunused-variable] 35 | static uint8_t imei_buf[IMEI_LEN + sizeof("\r\nOK\r\n")]; | ^~~~~~~~ ../include/9160_cell_net.h:30:3: warning: 'client_state' defined but not used [-Wunused-variable] 30 | } client_state = START; | ^~~~~~~~~~~~ [289/291] Linking C executable zephyr\zephyr.elf Memory region Used Size Region Size %age Used FLASH: 147956 B 928 KB 15.57% RAM: 25304 B 211608 B 11.96% IDT_LIST: 0 GB 2 KB 0.00% [291/291] Generating zephyr/merged.hex