CMake Error at C:/ncs/v2.9.0/zephyr/cmake/modules/kconfig.cmake:396 (message):

 
I Have been trying to interface mpu6050 with nrf5340 DK .
f(NOT "${ret}" STREQUAL "0")
  message(FATAL_ERROR "command failed with return code: ${ret}")
endif()
CMake Error at C:/ncs/v2.9.0/zephyr/cmake/modules/kconfig.cmake:396 (message):   
How to rectify this error.
Parents Reply Children
  • Hi,
    I have a problem same,
    I just build a project blink sample on NRF54L15 DK, I don't change this code. Please help me solution.

  • Hi,

    Can you share the build log, which you find under the TERINAL tab?

  • Same here 
    problem to build with new sdk 2.9.0

    on-void function [-Wreturn-type]
      540 | }
          | ^
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c: At top level:
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:298:12: warning: 'mtu_exchange' defined but not used [-Wunused-function]
      298 | static int mtu_exchange(struct bt_conn *conn)
          |            ^~~~~~~~~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:239:36: warning: 'conn_auth_info_callbacks' defined but not used [-Wunused-variable]
      239 | static struct bt_conn_auth_info_cb conn_auth_info_callbacks = {
          |                                    ^~~~~~~~~~~~~~~~~~~~~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:216:25: warning: 'app_callbacks' defined but not used [-Wunused-variable]
      216 | static struct my_lbs_cb app_callbacks = {
          |                         ^~~~~~~~~~~~~
    In file included from /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.h:4:
    /Users/sh/dev/git/trailpulse-edge/src/peripherals/adc/saadc.h:14:29: warning: 'adc' defined but not used [-Wunused-variable]
       14 | static const struct device *adc = DEVICE_DT_GET(ADC_NODE);
          |                             ^~~
    [6/19] Linking C static library app/libapp.a
    [7/19] Linking C executable zephyr/zephyr_pre0.elf
    [8/19] Generating linker.cmd
    [9/19] Generating isr_tables.c, isr_tables_vt.ld, isr_tables_swi.ld
    [10/19] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
    [11/19] Linking C executable zephyr/zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      395184 B     491008 B     80.48%
                 RAM:      142364 B       256 KB     54.31%
            IDT_LIST:          0 GB        32 KB      0.00%
    [12/19] Generating zephyr/mcuboot_primary_app.hex
    [13/19] Generating zephyr/mcuboot_primary.hex
    [14/19] Generating ../../zephyr/app_update.bin
    image.py: sign the payload
    [15/19] Generating ../../zephyr/dfu_application.zip
    [16/19] Generating ../../zephyr/app_signed.hex
    image.py: sign the payload
    [17/19] Generating ../../zephyr/app_test_update.hex
    image.py: sign the payload
    [18/19] Generating ../../zephyr/app_moved_test_update.hex
    [19/19] Generating zephyr/merged.hex
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Flash: trailpulse-edge/build_v4_debug (active) 
    
    Flashing build_v4_debug to 1050238934
    west flash -d /Users/sh/dev/git/trailpulse-edge/build_v4_debug --skip-rebuild --dev-id 1050238934 --erase
    
    -- west flash: using runner nrfjprog
    -- runners.nrfjprog: mass erase requested
    -- runners.nrfjprog: reset after flashing requested
    -- runners.nrfjprog: Flashing file: /Users/sh/dev/git/trailpulse-edge/build_v4_debug/zephyr/merged.hex
    [ ######               ]   0.000s | Erase file - Check image                                                     [ #################### ]   0.299s | Erase file - Done erasing                                                          
    [ ######               ]   0.000s | Program file - Checking image                                                [ ####                 ]   0.000s | Check image validity - Initialize device info                                [ ########             ]   0.000s | Check image validity - Check region 0 settings                               [ ############         ]   0.000s | Check image validity - block 1 of 3                                          [ ################     ]   0.001s | Check image validity - block 2 of 3                                          [ #################### ]   0.013s | Check image validity - Finished                                              [ #############        ]   0.000s | Program file - Programming                                                   [ ######               ]   0.000s | Programming image - block 1 of 2                                             [ #############        ]   0.118s | Programming image - block 2 of 2                                             [ #################### ]   0.000s | Programming image - Write successful                                         [ #################### ]   2.815s | Program file - Done programming                                                    
    [ ######               ]   0.000s | Verify file - Check image                                                    [ ####                 ]   0.000s | Check image validity - Initialize device info                                [ ########             ]   0.000s | Check image validity - Check region 0 settings                               [ ############         ]   1.978s | Check image validity - block 1 of 3                                          [ ################     ]   0.743s | Check image validity - block 2 of 3                                          [ #################### ]   0.013s | Check image validity - Finished                                              [ #############        ]   0.000s | Verify file - Verifying                                                      [ ######               ]   0.000s | Verifying image - block 1 of 2                                               [ #############        ]   0.119s | Verifying image - block 2 of 2                                               [ #################### ]   0.000s | Verifying image - Verify successful                                          [ #################### ]   2.882s | Verify file - Done verifying                                                       
    Enabling pin reset.
    Applying pin reset.
    -- runners.nrfjprog: Board with serial number 1050238934 flashed successfully.
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Build: trailpulse-edge/build_v4_debug (active) 
    
    Building trailpulse-edge
    west build --build-dir /Users/sh/dev/git/trailpulse-edge/build_v4_debug /Users/sh/dev/git/trailpulse-edge
    
    [0/18] Performing build step for 'mcuboot_subimage'
    ninja: no work to do.
    [2/16] Building C object CMakeFiles/app.dir/src/storage/config.c.obj
    /Users/sh/dev/git/trailpulse-edge/src/storage/config.c:14:21: warning: extra tokens at end of #ifdef directive
       14 |   #ifdef CONFIG_LOG == y
          |                     ^~
    [3/16] Linking C static library app/libapp.a
    [4/16] Linking C executable zephyr/zephyr_pre0.elf
    [5/16] Generating linker.cmd
    [6/16] Generating isr_tables.c, isr_tables_vt.ld, isr_tables_swi.ld
    [7/16] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
    [8/16] Linking C executable zephyr/zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      395184 B     491008 B     80.48%
                 RAM:      142364 B       256 KB     54.31%
            IDT_LIST:          0 GB        32 KB      0.00%
    [9/16] Generating zephyr/mcuboot_primary.hex
    [10/16] Generating zephyr/mcuboot_primary_app.hex
    [11/16] Generating ../../zephyr/app_update.bin
    image.py: sign the payload
    [12/16] Generating ../../zephyr/dfu_application.zip
    [13/16] Generating ../../zephyr/app_signed.hex
    image.py: sign the payload
    [14/16] Generating ../../zephyr/app_test_update.hex
    image.py: sign the payload
    [15/16] Generating ../../zephyr/app_moved_test_update.hex
    [16/16] Generating zephyr/merged.hex
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Flash: trailpulse-edge/build_v4_debug (active) 
    
    Flashing build_v4_debug to 1050238934
    west flash -d /Users/sh/dev/git/trailpulse-edge/build_v4_debug --skip-rebuild --dev-id 1050238934 --erase
    
    -- west flash: using runner nrfjprog
    -- runners.nrfjprog: mass erase requested
    -- runners.nrfjprog: reset after flashing requested
    -- runners.nrfjprog: Flashing file: /Users/sh/dev/git/trailpulse-edge/build_v4_debug/zephyr/merged.hex
    [ ######               ]   0.000s | Erase file - Check image                                                     [ #################### ]   0.271s | Erase file - Done erasing                                                          
    [ ######               ]   0.000s | Program file - Checking image                                                [ ####                 ]   0.000s | Check image validity - Initialize device info                                [ ########             ]   0.000s | Check image validity - Check region 0 settings                               [ ############         ]   0.000s | Check image validity - block 1 of 3                                          [ ################     ]   0.001s | Check image validity - block 2 of 3                                          [ #################### ]   0.012s | Check image validity - Finished                                              [ #############        ]   0.000s | Program file - Programming                                                   [ ######               ]   0.000s | Programming image - block 1 of 2                                             [ #############        ]   0.117s | Programming image - block 2 of 2                                             [ #################### ]   0.000s | Programming image - Write successful                                         [ #################### ]   2.812s | Program file - Done programming                                                    
    [ ######               ]   0.000s | Verify file - Check image                                                    [ ####                 ]   0.000s | Check image validity - Initialize device info                                [ ########             ]   0.000s | Check image validity - Check region 0 settings                               [ ############         ]   1.968s | Check image validity - block 1 of 3                                          [ ################     ]   0.740s | Check image validity - block 2 of 3                                          [ #################### ]   0.013s | Check image validity - Finished                                              [ #############        ]   0.000s | Verify file - Verifying                                                      [ ######               ]   0.000s | Verifying image - block 1 of 2                                               [ #############        ]   0.119s | Verifying image - block 2 of 2                                               [ #################### ]   0.000s | Verifying image - Verify successful                                          [ #################### ]   2.886s | Verify file - Done verifying                                                       
    Enabling pin reset.
    Applying pin reset.
    -- runners.nrfjprog: Board with serial number 1050238934 flashed successfully.
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Build: trailpulse-edge/build_v4_debug (active) 
    
    Building trailpulse-edge
    west build --build-dir /Users/sh/dev/git/trailpulse-edge/build_v4_debug /Users/sh/dev/git/trailpulse-edge
    
    [0/18] Performing build step for 'mcuboot_subimage'
    ninja: no work to do.
    [2/16] Building C object CMakeFiles/app.dir/src/communication/ble/ble_peripheral.c.obj
    In file included from /opt/nordic/ncs/v2.6.1/zephyr/include/zephyr/logging/log.h:11,
                     from /opt/nordic/ncs/v2.6.1/zephyr/include/zephyr/shell/shell.h:17,
                     from /opt/nordic/ncs/v2.6.1/nrf/include/shell/shell_bt_nus.h:10,
                     from /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.h:17,
                     from /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:1:
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c: In function 'current_time_print':
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:91:17: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'int64_t' {aka 'long long int'} [-Wformat=]
       91 |         LOG_INF("Time received now %u\n", time);
          |                 ^~~~~~~~~~~~~~~~~~~~~~~~  ~~~~
          |                                           |
          |                                           int64_t {aka long long int}
    /opt/nordic/ncs/v2.6.1/zephyr/include/zephyr/logging/log_core.h:245:42: note: in definition of macro 'Z_LOG2'
      245 |                 z_log_printf_arg_checker(__VA_ARGS__); \
          |                                          ^~~~~~~~~~~
    /opt/nordic/ncs/v2.6.1/zephyr/include/zephyr/logging/log.h:63:24: note: in expansion of macro 'Z_LOG'
       63 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
          |                        ^~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:91:9: note: in expansion of macro 'LOG_INF'
       91 |         LOG_INF("Time received now %u\n", time);
          |         ^~~~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:91:37: note: format string is defined here
       91 |         LOG_INF("Time received now %u\n", time);
          |                                    ~^
          |                                     |
          |                                     unsigned int
          |                                    %llu
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c: In function 'init_and_enable_ble':
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:495:17: warning: implicit declaration of function 'settings_load' [-Wimplicit-function-declaration]
      495 |                 settings_load();
          |                 ^~~~~~~~~~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:541:1: warning: control reaches end of non-void function [-Wreturn-type]
      541 | }
          | ^
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c: At top level:
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:298:12: warning: 'mtu_exchange' defined but not used [-Wunused-function]
      298 | static int mtu_exchange(struct bt_conn *conn)
          |            ^~~~~~~~~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:239:36: warning: 'conn_auth_info_callbacks' defined but not used [-Wunused-variable]
      239 | static struct bt_conn_auth_info_cb conn_auth_info_callbacks = {
          |                                    ^~~~~~~~~~~~~~~~~~~~~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:216:25: warning: 'app_callbacks' defined but not used [-Wunused-variable]
      216 | static struct my_lbs_cb app_callbacks = {
          |                         ^~~~~~~~~~~~~
    In file included from /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.h:4:
    /Users/sh/dev/git/trailpulse-edge/src/peripherals/adc/saadc.h:14:29: warning: 'adc' defined but not used [-Wunused-variable]
       14 | static const struct device *adc = DEVICE_DT_GET(ADC_NODE);
          |                             ^~~
    [3/16] Linking C static library app/libapp.a
    [4/16] Linking C executable zephyr/zephyr_pre0.elf
    [5/16] Generating linker.cmd
    [6/16] Generating isr_tables.c, isr_tables_vt.ld, isr_tables_swi.ld
    [7/16] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
    [8/16] Linking C executable zephyr/zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      395184 B     491008 B     80.48%
                 RAM:      142364 B       256 KB     54.31%
            IDT_LIST:          0 GB        32 KB      0.00%
    [9/16] Generating zephyr/mcuboot_primary.hex
    [10/16] Generating zephyr/mcuboot_primary_app.hex
    [11/16] Generating ../../zephyr/app_update.bin
    image.py: sign the payload
    [12/16] Generating ../../zephyr/dfu_application.zip
    [13/16] Generating ../../zephyr/app_signed.hex
    image.py: sign the payload
    [14/16] Generating ../../zephyr/app_test_update.hex
    image.py: sign the payload
    [15/16] Generating ../../zephyr/app_moved_test_update.hex
    [16/16] Generating zephyr/merged.hex
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Flash: trailpulse-edge/build_v4_debug (active) 
    
    Flashing build_v4_debug to 1050238934
    west flash -d /Users/sh/dev/git/trailpulse-edge/build_v4_debug --skip-rebuild --dev-id 1050238934
    
    -- west flash: using runner nrfjprog
    -- runners.nrfjprog: reset after flashing requested
    -- runners.nrfjprog: Flashing file: /Users/sh/dev/git/trailpulse-edge/build_v4_debug/zephyr/merged.hex
    [ ######               ]   0.000s | Erase file - Check image                                                     [ ####                 ]   0.000s | Check image validity - Initialize device info                                [ ########             ]   0.000s | Check image validity - Check region 0 settings                               [ ############         ]   0.000s | Check image validity - block 1 of 3                                          [ ################     ]   0.001s | Check image validity - block 2 of 3                                          [ #################### ]   0.005s | Check image validity - Finished                                              [ #############        ]   0.000s | Erase file - Erasing                                                         [ ######               ]   0.000s | Erasing non-volatile memory - block 1 of 2                                   [ #############        ]   0.955s | Erasing non-volatile memory - block 2 of 2                                   [ #################### ]   0.000s | Erasing non-volatile memory - Erase successful                               [ #################### ]  11.506s | Erase file - Done erasing                                                          
    [ ######               ]   0.000s | Program file - Checking image                                                [ ####                 ]   0.000s | Check image validity - Initialize device info                                [ ########             ]   0.000s | Check image validity - Check region 0 settings                               [ ############         ]   7.813s | Check image validity - block 1 of 3                                          [ ################     ]   2.931s | Check image validity - block 2 of 3                                          [ #################### ]   0.013s | Check image validity - Finished                                              [ #############        ]   0.000s | Program file - Programming                                                   [ ######               ]   0.000s | Programming image - block 1 of 2                                             [ #############        ]   0.118s | Programming image - block 2 of 2                                             [ #################### ]   0.000s | Programming image - Write successful                                         [ #################### ]   2.815s | Program file - Done programming                                                    
    [ ######               ]   0.000s | Verify file - Check image                                                    [ ####                 ]   0.000s | Check image validity - Initialize device info                                [ ########             ]   0.000s | Check image validity - Check region 0 settings                               [ ############         ]   9.784s | Check image validity - block 1 of 3                                          [ ################     ]   3.671s | Check image validity - block 2 of 3                                          [ #################### ]   0.013s | Check image validity - Finished                                              [ #############        ]   0.000s | Verify file - Verifying                                                      [ ######               ]   0.000s | Verifying image - block 1 of 2                                               [ #############        ]   0.119s | Verifying image - block 2 of 2                                               [ #################### ]   0.000s | Verifying image - Verify successful                                          [ #################### ]   2.910s | Verify file - Done verifying                                                       
    Enabling pin reset.
    Applying pin reset.
    -- runners.nrfjprog: Board with serial number 1050238934 flashed successfully.
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Build: trailpulse-edge/build_v4_debug (active) 
    
    Building trailpulse-edge
    west build --build-dir /Users/sh/dev/git/trailpulse-edge/build_v4_debug /Users/sh/dev/git/trailpulse-edge
    
    [0/19] Performing build step for 'mcuboot_subimage'
    ninja: no work to do.
    [2/17] Building C object CMakeFiles/app.dir/src/peripherals/nfc/nfc.c.obj
    In file included from /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.h:4,
                     from /Users/sh/dev/git/trailpulse-edge/src/peripherals/nfc/nfc.c:5:
    /Users/sh/dev/git/trailpulse-edge/src/peripherals/adc/saadc.h:14:29: warning: 'adc' defined but not used [-Wunused-variable]
       14 | static const struct device *adc = DEVICE_DT_GET(ADC_NODE);
          |                             ^~~
    [3/17] Building C object CMakeFiles/app.dir/src/communication/ble/ble_peripheral.c.obj
    In file included from /opt/nordic/ncs/v2.6.1/zephyr/include/zephyr/logging/log.h:11,
                     from /opt/nordic/ncs/v2.6.1/zephyr/include/zephyr/shell/shell.h:17,
                     from /opt/nordic/ncs/v2.6.1/nrf/include/shell/shell_bt_nus.h:10,
                     from /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.h:17,
                     from /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:1:
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c: In function 'current_time_print':
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:91:17: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'int64_t' {aka 'long long int'} [-Wformat=]
       91 |         LOG_INF("Time received now %u\n", time);
          |                 ^~~~~~~~~~~~~~~~~~~~~~~~  ~~~~
          |                                           |
          |                                           int64_t {aka long long int}
    /opt/nordic/ncs/v2.6.1/zephyr/include/zephyr/logging/log_core.h:245:42: note: in definition of macro 'Z_LOG2'
      245 |                 z_log_printf_arg_checker(__VA_ARGS__); \
          |                                          ^~~~~~~~~~~
    /opt/nordic/ncs/v2.6.1/zephyr/include/zephyr/logging/log.h:63:24: note: in expansion of macro 'Z_LOG'
       63 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
          |                        ^~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:91:9: note: in expansion of macro 'LOG_INF'
       91 |         LOG_INF("Time received now %u\n", time);
          |         ^~~~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:91:37: note: format string is defined here
       91 |         LOG_INF("Time received now %u\n", time);
          |                                    ~^
          |                                     |
          |                                     unsigned int
          |                                    %llu
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c: In function 'init_and_enable_ble':
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:495:17: warning: implicit declaration of function 'settings_load' [-Wimplicit-function-declaration]
      495 |                 settings_load();
          |                 ^~~~~~~~~~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:541:1: warning: control reaches end of non-void function [-Wreturn-type]
      541 | }
          | ^
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c: At top level:
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:298:12: warning: 'mtu_exchange' defined but not used [-Wunused-function]
      298 | static int mtu_exchange(struct bt_conn *conn)
          |            ^~~~~~~~~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:239:36: warning: 'conn_auth_info_callbacks' defined but not used [-Wunused-variable]
      239 | static struct bt_conn_auth_info_cb conn_auth_info_callbacks = {
          |                                    ^~~~~~~~~~~~~~~~~~~~~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:216:25: warning: 'app_callbacks' defined but not used [-Wunused-variable]
      216 | static struct my_lbs_cb app_callbacks = {
          |                         ^~~~~~~~~~~~~
    In file included from /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.h:4:
    /Users/sh/dev/git/trailpulse-edge/src/peripherals/adc/saadc.h:14:29: warning: 'adc' defined but not used [-Wunused-variable]
       14 | static const struct device *adc = DEVICE_DT_GET(ADC_NODE);
          |                             ^~~
    [4/17] Linking C static library app/libapp.a
    [5/17] Linking C executable zephyr/zephyr_pre0.elf
    [6/17] Generating linker.cmd
    [7/17] Generating isr_tables.c, isr_tables_vt.ld, isr_tables_swi.ld
    [8/17] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
    [9/17] Linking C executable zephyr/zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:        386 KB     491008 B     80.50%
                 RAM:      142364 B       256 KB     54.31%
            IDT_LIST:          0 GB        32 KB      0.00%
    [10/17] Generating zephyr/mcuboot_primary_app.hex
    [11/17] Generating zephyr/mcuboot_primary.hex
    [12/17] Generating ../../zephyr/app_update.bin
    image.py: sign the payload
    [13/17] Generating ../../zephyr/dfu_application.zip
    [14/17] Generating ../../zephyr/app_signed.hex
    image.py: sign the payload
    [15/17] Generating ../../zephyr/app_test_update.hex
    image.py: sign the payload
    [16/17] Generating ../../zephyr/app_moved_test_update.hex
    [17/17] Generating zephyr/merged.hex
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Flash: trailpulse-edge/build_v4_debug (active) 
    
    Flashing build_v4_debug to 1050238934
    west flash -d /Users/sh/dev/git/trailpulse-edge/build_v4_debug --skip-rebuild --dev-id 1050238934
    
    -- west flash: using runner nrfjprog
    -- runners.nrfjprog: reset after flashing requested
    -- runners.nrfjprog: Flashing file: /Users/sh/dev/git/trailpulse-edge/build_v4_debug/zephyr/merged.hex
    [ ######               ]   0.000s | Erase file - Check image                                                     [ ####                 ]   0.000s | Check image validity - Initialize device info                                [ ########             ]   0.000s | Check image validity - Check region 0 settings                               [ ############         ]   0.000s | Check image validity - block 1 of 3                                          [ ################     ]   0.002s | Check image validity - block 2 of 3                                          [ #################### ]   0.010s | Check image validity - Finished                                              [ #############        ]   0.000s | Erase file - Erasing                                                         [ ######               ]   0.000s | Erasing non-volatile memory - block 1 of 2                                   [ #############        ]   0.481s | Erasing non-volatile memory - block 2 of 2                                   [ #################### ]   0.000s | Erasing non-volatile memory - Erase successful                               [ #################### ]  10.867s | Erase file - Done erasing                                                          
    [ ######               ]   0.000s | Program file - Checking image                                                [ ####                 ]   0.000s | Check image validity - Initialize device info                                [ ########             ]   0.000s | Check image validity - Check region 0 settings                               [ ############         ]   7.401s | Check image validity - block 1 of 3                                          [ ################     ]   2.777s | Check image validity - block 2 of 3                                          [ #################### ]   0.013s | Check image validity - Finished                                              [ #############        ]   0.000s | Program file - Programming                                                   [ ######               ]   0.000s | Programming image - block 1 of 2                                             [ #############        ]   0.118s | Programming image - block 2 of 2                                             [ #################### ]   0.000s | Programming image - Write successful                                         [ #################### ]   2.811s | Program file - Done programming                                                    
    [ ######               ]   0.000s | Verify file - Check image                                                    [ ####                 ]   0.000s | Check image validity - Initialize device info                                [ ########             ]   0.000s | Check image validity - Check region 0 settings                               [ ############         ]   9.365s | Check image validity - block 1 of 3                                          [ ################     ]   3.513s | Check image validity - block 2 of 3                                          [ #################### ]   0.013s | Check image validity - Finished                                              [ #############        ]   0.000s | Verify file - Verifying                                                      [ ######               ]   0.000s | Verifying image - block 1 of 2                                               [ #############        ]   0.119s | Verifying image - block 2 of 2                                               [ #################### ]   0.000s | Verifying image - Verify successful                                          [ #################### ]   2.882s | Verify file - Done verifying                                                       
    Enabling pin reset.
    Applying pin reset.
    -- runners.nrfjprog: Board with serial number 1050238934 flashed successfully.
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Build: trailpulse-edge/build_v4_debug (active) 
    
    Building trailpulse-edge
    west build --build-dir /Users/sh/dev/git/trailpulse-edge/build_v4_debug /Users/sh/dev/git/trailpulse-edge
    
    [0/18] Performing build step for 'mcuboot_subimage'
    ninja: no work to do.
    [2/16] Building C object CMakeFiles/app.dir/src/communication/ble/ble_peripheral.c.obj
    In file included from /opt/nordic/ncs/v2.6.1/zephyr/include/zephyr/logging/log.h:11,
                     from /opt/nordic/ncs/v2.6.1/zephyr/include/zephyr/shell/shell.h:17,
                     from /opt/nordic/ncs/v2.6.1/nrf/include/shell/shell_bt_nus.h:10,
                     from /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.h:17,
                     from /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:1:
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c: In function 'current_time_print':
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:91:17: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'int64_t' {aka 'long long int'} [-Wformat=]
       91 |         LOG_INF("Time received now %u\n", time);
          |                 ^~~~~~~~~~~~~~~~~~~~~~~~  ~~~~
          |                                           |
          |                                           int64_t {aka long long int}
    /opt/nordic/ncs/v2.6.1/zephyr/include/zephyr/logging/log_core.h:245:42: note: in definition of macro 'Z_LOG2'
      245 |                 z_log_printf_arg_checker(__VA_ARGS__); \
          |                                          ^~~~~~~~~~~
    /opt/nordic/ncs/v2.6.1/zephyr/include/zephyr/logging/log.h:63:24: note: in expansion of macro 'Z_LOG'
       63 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
          |                        ^~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:91:9: note: in expansion of macro 'LOG_INF'
       91 |         LOG_INF("Time received now %u\n", time);
          |         ^~~~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:91:37: note: format string is defined here
       91 |         LOG_INF("Time received now %u\n", time);
          |                                    ~^
          |                                     |
          |                                     unsigned int
          |                                    %llu
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c: In function 'init_and_enable_ble':
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:497:17: warning: implicit declaration of function 'settings_load' [-Wimplicit-function-declaration]
      497 |                 settings_load();
          |                 ^~~~~~~~~~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:543:1: warning: control reaches end of non-void function [-Wreturn-type]
      543 | }
          | ^
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c: At top level:
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:298:12: warning: 'mtu_exchange' defined but not used [-Wunused-function]
      298 | static int mtu_exchange(struct bt_conn *conn)
          |            ^~~~~~~~~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:239:36: warning: 'conn_auth_info_callbacks' defined but not used [-Wunused-variable]
      239 | static struct bt_conn_auth_info_cb conn_auth_info_callbacks = {
          |                                    ^~~~~~~~~~~~~~~~~~~~~~~~
    /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.c:216:25: warning: 'app_callbacks' defined but not used [-Wunused-variable]
      216 | static struct my_lbs_cb app_callbacks = {
          |                         ^~~~~~~~~~~~~
    In file included from /Users/sh/dev/git/trailpulse-edge/src/communication/ble/ble_peripheral.h:4:
    /Users/sh/dev/git/trailpulse-edge/src/peripherals/adc/saadc.h:14:29: warning: 'adc' defined but not used [-Wunused-variable]
       14 | static const struct device *adc = DEVICE_DT_GET(ADC_NODE);
          |                             ^~~
    [3/16] Linking C static library app/libapp.a
    [4/16] Linking C executable zephyr/zephyr_pre0.elf
    [5/16] Generating linker.cmd
    [6/16] Generating isr_tables.c, isr_tables_vt.ld, isr_tables_swi.ld
    [7/16] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
    [8/16] Linking C executable zephyr/zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      395296 B     491008 B     80.51%
                 RAM:      142364 B       256 KB     54.31%
            IDT_LIST:          0 GB        32 KB      0.00%
    [9/16] Generating zephyr/mcuboot_primary_app.hex
    [10/16] Generating zephyr/mcuboot_primary.hex
    [11/16] Generating ../../zephyr/app_update.bin
    image.py: sign the payload
    [12/16] Generating ../../zephyr/dfu_application.zip
    [13/16] Generating ../../zephyr/app_signed.hex
    image.py: sign the payload
    [14/16] Generating ../../zephyr/app_test_update.hex
    image.py: sign the payload
    [15/16] Generating ../../zephyr/app_moved_test_update.hex
    [16/16] Generating zephyr/merged.hex
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Flash: trailpulse-edge/build_v4_debug (active) 
    
    Flashing build_v4_debug to 1050238934
    west flash -d /Users/sh/dev/git/trailpulse-edge/build_v4_debug --skip-rebuild --dev-id 1050238934
    
    -- west flash: using runner nrfjprog
    -- runners.nrfjprog: reset after flashing requested
    -- runners.nrfjprog: Flashing file: /Users/sh/dev/git/trailpulse-edge/build_v4_debug/zephyr/merged.hex
    [ ######               ]   0.000s | Erase file - Check image                                                     [ ####                 ]   0.000s | Check image validity - Initialize device info                                [ ########             ]   0.000s | Check image validity - Check region 0 settings                               [ ############         ]   0.000s | Check image validity - block 1 of 3                                          [ ################     ]   0.001s | Check image validity - block 2 of 3                                          [ #################### ]   0.005s | Check image validity - Finished                                              [ #############        ]   0.000s | Erase file - Erasing                                                         [ ######               ]   0.000s | Erasing non-volatile memory - block 1 of 2                                   [ #############        ]   0.450s | Erasing non-volatile memory - block 2 of 2                                   [ #################### ]   0.000s | Erasing non-volatile memory - Erase successful                               [ #################### ]  11.071s | Erase file - Done erasing                                                          
    [ ######               ]   0.000s | Program file - Checking image                                                [ ####                 ]   0.000s | Check image validity - Initialize device info                                [ ########             ]   0.000s | Check image validity - Check region 0 settings                               [ ############         ]   7.518s | Check image validity - block 1 of 3                                          [ ################     ]   2.820s | Check image validity - block 2 of 3                                          [ #################### ]   0.013s | Check image validity - Finished                                              [ #############        ]   0.000s | Program file - Programming                                                   [ ######               ]   0.000s | Programming image - block 1 of 2                                             [ #############        ]   0.117s | Programming image - block 2 of 2                                             [ #################### ]   0.000s | Programming image - Write successful                                         [ #################### ]   2.813s | Program file - Done programming                                                    
    [ ######               ]   0.000s | Verify file - Check image                                                    [ ####                 ]   0.000s | Check image validity - Initialize device info                                [ ########             ]   0.000s | Check image validity - Check region 0 settings                               [ ############         ]   9.490s | Check image validity - block 1 of 3                                          [ ################     ]   3.561s | Check image validity - block 2 of 3                                          [ #################### ]   0.014s | Check image validity - Finished                                              [ #############        ]   0.000s | Verify file - Verifying                                                      [ ######               ]   0.000s | Verifying image - block 1 of 2                                               [ #############        ]   0.119s | Verifying image - block 2 of 2                                               [ #################### ]   0.000s | Verifying image - Verify successful                                          [ #################### ]   2.886s | Verify file - Done verifying                                                       
    Enabling pin reset.
    Applying pin reset.
    -- runners.nrfjprog: Board with serial number 1050238934 flashed successfully.
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Generate config tp_v4_rak4630_nrf52840 for /Users/sh/dev/git/trailpulse-edge 
    
    Building trailpulse-edge
    west build --build-dir /Users/sh/dev/git/trailpulse-edge/build_v4_debug_1 /Users/sh/dev/git/trailpulse-edge --pristine --board tp_v4_rak4630_nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DEXTRA_CONF_FILE=debug_prj.conf;boards/shields/simcom7022.conf -DEXTRA_DTC_OVERLAY_FILE=boards/shields/simcom7022.overlay -DBOARD_ROOT=/Users/sh/dev/git/trailpulse-edge
    
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: /opt/nordic/ncs/toolchains/b8efef2ad5/opt/[email protected]/bin/python3.12 (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /Users/sh/Library/Caches/zephyr
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: tp_v4_rak4630_nrf52840
    Parsing /opt/nordic/ncs/v2.9.0/zephyr/share/sysbuild/Kconfig
    Loaded configuration '/Users/sh/dev/git/trailpulse-edge/build_v4_debug_1/_sysbuild/empty.conf'
    Merged configuration '/Users/sh/dev/git/trailpulse-edge/build_v4_debug_1/_sysbuild/empty.conf'
    Configuration saved to '/Users/sh/dev/git/trailpulse-edge/build_v4_debug_1/zephyr/.config'
    Kconfig header saved to '/Users/sh/dev/git/trailpulse-edge/build_v4_debug_1/_sysbuild/autoconf.h'
    CMake Error at /opt/nordic/ncs/v2.9.0/nrf/sysbuild/CMakeLists.txt:117 (list):
      list GET given empty list
    Call Stack (most recent call first):
      cmake/modules/sysbuild_extensions.cmake:583 (nrf_PRE_CMAKE)
      cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
      cmake/modules/sysbuild_images.cmake:16 (sysbuild_module_call)
      cmake/modules/sysbuild_default.cmake:20 (include)
      /opt/nordic/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      /opt/nordic/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      /opt/nordic/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    -- 
       *************************************
       * Running CMake for trailpulse-edge *
       *************************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: /Users/sh/dev/git/trailpulse-edge
    -- CMake version: 3.21.0
    -- Found Python3: /opt/nordic/ncs/toolchains/b8efef2ad5/bin/python (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /Users/sh/Library/Caches/zephyr
    -- Zephyr version: 3.7.99 (/opt/nordic/ncs/v2.9.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: tp_v4_rak4630_nrf52840
    -- Found host-tools: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/b8efef2ad5/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/b8efef2ad5/opt/zephyr-sdk)
    -- Found Dtc: /opt/nordic/ncs/toolchains/b8efef2ad5/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") 
    -- Found BOARD.dts: /Users/sh/dev/git/trailpulse-edge/boards/arm/tp_v4_rak4630_nrf52840/tp_v4_rak4630_nrf52840.dts
    -- Found devicetree overlay: boards/shields/simcom7022.overlay
    -- Generated zephyr.dts: /Users/sh/dev/git/trailpulse-edge/build_v4_debug_1/trailpulse-edge/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /Users/sh/dev/git/trailpulse-edge/build_v4_debug_1/trailpulse-edge/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: /Users/sh/dev/git/trailpulse-edge/build_v4_debug_1/trailpulse-edge/zephyr/dts.cmake
    
    warning: LOG_BUFFER_SIZE (defined at
    /opt/nordic/ncs/v2.9.0/nrf/subsys/net/openthread/Kconfig.defconfig:51,
    subsys/logging/Kconfig.processing:122) was assigned the value '4080' but got the value ''. Check
    these unsatisfied dependencies: (NET_L2_OPENTHREAD || (LOG_MODE_DEFERRED && !LOG_FRONTEND_ONLY &&
    !LOG_MODE_MINIMAL && LOG)) (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_BUFFER_SIZE and/or look up
    LOG_BUFFER_SIZE 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.
    
    
    warning: NCS_SAMPLE_MCUMGR_BT_OTA_DFU (defined at
    /opt/nordic/ncs/v2.9.0/nrf/samples/common/mcumgr_bt_ota_dfu/Kconfig:9) was assigned the value 'y'
    but got the value 'n'. Check these unsatisfied dependencies: BOOTLOADER_MCUBOOT (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU and/or look up
    NCS_SAMPLE_MCUMGR_BT_OTA_DFU 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.
    
    
    warning: MCUMGR_GRP_ZBASIC (defined at
    /opt/nordic/ncs/v2.9.0/nrf/samples/common/mcumgr_bt_ota_dfu/Kconfig:63,
    subsys/mgmt/mcumgr/grp/zephyr_basic/Kconfig:4) was assigned the value 'y' but got the value 'n'.
    Check these unsatisfied dependencies: (((SETTINGS_FCB || SETTINGS_NVS) &&
    NCS_SAMPLE_MCUMGR_BT_OTA_DFU) || MCUMGR) (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_GRP_ZBASIC and/or look up
    MCUMGR_GRP_ZBASIC 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.
    
    
    warning: MCUMGR_GRP_ZBASIC_STORAGE_ERASE (defined at
    /opt/nordic/ncs/v2.9.0/nrf/samples/common/mcumgr_bt_ota_dfu/Kconfig:66,
    subsys/mgmt/mcumgr/grp/zephyr_basic/Kconfig:11) was assigned the value 'y' but got the value 'n'.
    Check these unsatisfied dependencies: (((SETTINGS_FCB || SETTINGS_NVS) &&
    NCS_SAMPLE_MCUMGR_BT_OTA_DFU) || (MCUMGR_GRP_ZBASIC && MCUMGR)) (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_GRP_ZBASIC_STORAGE_ERASE and/or look
    up MCUMGR_GRP_ZBASIC_STORAGE_ERASE 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.
    
    
    warning: RTT_CONSOLE (defined at drivers/console/Kconfig:130) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: CONSOLE (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_RTT_CONSOLE and/or look up RTT_CONSOLE 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.
    
    
    warning: MCUMGR_GRP_FS (defined at subsys/mgmt/mcumgr/grp/fs_mgmt/Kconfig:15) was assigned the value
    'y' but got the value 'n'. Check these unsatisfied dependencies: MCUMGR (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_GRP_FS and/or look up MCUMGR_GRP_FS
    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.
    
    
    warning: MCUMGR_GRP_OS (defined at subsys/mgmt/mcumgr/grp/os_mgmt/Kconfig:15) was assigned the value
    'y' but got the value 'n'. Check these unsatisfied dependencies: MCUMGR (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_GRP_OS and/or look up MCUMGR_GRP_OS
    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.
    
    
    warning: MCUMGR_GRP_SHELL (defined at subsys/mgmt/mcumgr/grp/shell_mgmt/Kconfig:15) was assigned the
    value 'y' but got the value 'n'. Check these unsatisfied dependencies: MCUMGR (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_GRP_SHELL and/or look up
    MCUMGR_GRP_SHELL 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.
    
    
    warning: MCUMGR_TRANSPORT_WORKQUEUE_STACK_SIZE (defined at subsys/mgmt/mcumgr/transport/Kconfig:15)
    was assigned the value '8192' but got the value ''. Check these unsatisfied dependencies: MCUMGR
    (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_TRANSPORT_WORKQUEUE_STACK_SIZE
    and/or look up MCUMGR_TRANSPORT_WORKQUEUE_STACK_SIZE 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.
    
    
    warning: MCUMGR_TRANSPORT_BT (defined at subsys/mgmt/mcumgr/transport/Kconfig.bluetooth:12) was
    assigned the value 'y' but got the value 'n'. Check these unsatisfied dependencies: MCUMGR (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_TRANSPORT_BT and/or look up
    MCUMGR_TRANSPORT_BT 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.
    
    
    warning: MCUMGR_TRANSPORT_BT_CONN_PARAM_CONTROL (defined at
    subsys/mgmt/mcumgr/transport/Kconfig.bluetooth:47) was assigned the value 'y' but got the value 'n'.
    Check these unsatisfied dependencies: MCUMGR_TRANSPORT_BT (=n), MCUMGR (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_TRANSPORT_BT_CONN_PARAM_CONTROL
    and/or look up MCUMGR_TRANSPORT_BT_CONN_PARAM_CONTROL 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.
    
    
    warning: SHELL_BACKEND_RTT_BUFFER (defined at subsys/shell/backends/Kconfig.backends:206) was
    assigned the value '0' but got the value ''. Check these unsatisfied dependencies: SHELL_BACKEND_RTT
    (=n). See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SHELL_BACKEND_RTT_BUFFER and/or
    look up SHELL_BACKEND_RTT_BUFFER 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.
    
    
    warning: Deprecated symbol PLATFORM_SPECIFIC_INIT is enabled.
    
    
    warning: Deprecated symbol POSIX_CLOCK is enabled.
    
    
    warning: Experimental symbol LORA is enabled.
    
    
    warning: Experimental symbol MODEM_CONTEXT is enabled.
    
    
    warning: Experimental symbol LORAWAN is enabled.
    
    
    warning: Experimental symbol MODEM_MODULES is enabled.
    
    
    /Users/sh/dev/git/trailpulse-edge/prj.conf:92: warning: attempt to assign the value 'n' to the undefined symbol MCUMGR_TRANSPORT_BT_AUTHEN
    Parsing /Users/sh/dev/git/trailpulse-edge/Kconfig
    Loaded configuration '/Users/sh/dev/git/trailpulse-edge/boards/arm/tp_v4_rak4630_nrf52840/tp_v4_rak4630_nrf52840_defconfig'
    Merged configuration '/Users/sh/dev/git/trailpulse-edge/prj.conf'
    Merged configuration '/Users/sh/dev/git/trailpulse-edge/debug_prj.conf'
    Merged configuration '/Users/sh/dev/git/trailpulse-edge/boards/shields/simcom7022.conf'
    Merged configuration '/Users/sh/dev/git/trailpulse-edge/build_v4_debug_1/trailpulse-edge/zephyr/misc/generated/extra_kconfig_options.conf'
    Merged configuration '/Users/sh/dev/git/trailpulse-edge/build_v4_debug_1/trailpulse-edge/zephyr/.config.sysbuild'
    
    error: Aborting due to Kconfig warnings
    
    CMake Error at /opt/nordic/ncs/v2.9.0/zephyr/cmake/modules/kconfig.cmake:396 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      /opt/nordic/ncs/v2.9.0/nrf/cmake/modules/kconfig.cmake:29 (include)
      /opt/nordic/ncs/v2.9.0/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
      /opt/nordic/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /opt/nordic/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:5 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
      CMake configure failed for Zephyr project: trailpulse-edge
    
      Location: /Users/sh/dev/git/trailpulse-edge
    Call Stack (most recent call first):
      cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake)
      cmake/modules/sysbuild_default.cmake:20 (include)
      /opt/nordic/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      /opt/nordic/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      /opt/nordic/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/Users/sh/dev/git/trailpulse-edge/build_v4_debug_1/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/b8efef2ad5/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/toolchains/b8efef2ad5/opt/[email protected]/bin/python3.12 -B/Users/sh/dev/git/trailpulse-edge/build_v4_debug_1 -GNinja -DBOARD=tp_v4_rak4630_nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y '-DEXTRA_CONF_FILE=debug_prj.conf;boards/shields/simcom7022.conf' -DEXTRA_DTC_OVERLAY_FILE=boards/shields/simcom7022.overlay -DBOARD_ROOT=/Users/sh/dev/git/trailpulse-edge -S/opt/nordic/ncs/v2.9.0/zephyr/share/sysbuild -DAPP_DIR:PATH=/Users/sh/dev/git/trailpulse-edge
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Generate config tp_v4_rak4630_nrf52840 for /Users/sh/dev/git/trailpulse-edge 
    
    Building trailpulse-edge
    west build --build-dir /Users/sh/dev/git/trailpulse-edge/build_v4_debug_2 /Users/sh/dev/git/trailpulse-edge --pristine --board tp_v4_rak4630_nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE -DEXTRA_CONF_FILE=debug_prj.conf;boards/shields/simcom7022.conf -DEXTRA_DTC_OVERLAY_FILE=boards/shields/simcom7022.overlay -DBOARD_ROOT=/Users/sh/dev/git/trailpulse-edge
    
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: /opt/nordic/ncs/toolchains/b8efef2ad5/opt/[email protected]/bin/python3.12 (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /Users/sh/Library/Caches/zephyr
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: tp_v4_rak4630_nrf52840
    Parsing /opt/nordic/ncs/v2.9.0/zephyr/share/sysbuild/Kconfig
    Loaded configuration '/Users/sh/dev/git/trailpulse-edge/build_v4_debug_2/_sysbuild/empty.conf'
    Merged configuration '/Users/sh/dev/git/trailpulse-edge/build_v4_debug_2/_sysbuild/empty.conf'
    Configuration saved to '/Users/sh/dev/git/trailpulse-edge/build_v4_debug_2/zephyr/.config'
    Kconfig header saved to '/Users/sh/dev/git/trailpulse-edge/build_v4_debug_2/_sysbuild/autoconf.h'
    CMake Error at /opt/nordic/ncs/v2.9.0/nrf/sysbuild/CMakeLists.txt:117 (list):
      list GET given empty list
    Call Stack (most recent call first):
      cmake/modules/sysbuild_extensions.cmake:583 (nrf_PRE_CMAKE)
      cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
      cmake/modules/sysbuild_images.cmake:16 (sysbuild_module_call)
      cmake/modules/sysbuild_default.cmake:20 (include)
      /opt/nordic/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      /opt/nordic/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      /opt/nordic/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    -- 
       *************************************
       * Running CMake for trailpulse-edge *
       *************************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: /Users/sh/dev/git/trailpulse-edge
    -- CMake version: 3.21.0
    -- Found Python3: /opt/nordic/ncs/toolchains/b8efef2ad5/bin/python (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /Users/sh/Library/Caches/zephyr
    -- Zephyr version: 3.7.99 (/opt/nordic/ncs/v2.9.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: tp_v4_rak4630_nrf52840
    -- Found host-tools: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/b8efef2ad5/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/b8efef2ad5/opt/zephyr-sdk)
    -- Found Dtc: /opt/nordic/ncs/toolchains/b8efef2ad5/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") 
    -- Found BOARD.dts: /Users/sh/dev/git/trailpulse-edge/boards/arm/tp_v4_rak4630_nrf52840/tp_v4_rak4630_nrf52840.dts
    -- Found devicetree overlay: boards/shields/simcom7022.overlay
    -- Generated zephyr.dts: /Users/sh/dev/git/trailpulse-edge/build_v4_debug_2/trailpulse-edge/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /Users/sh/dev/git/trailpulse-edge/build_v4_debug_2/trailpulse-edge/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: /Users/sh/dev/git/trailpulse-edge/build_v4_debug_2/trailpulse-edge/zephyr/dts.cmake
    
    warning: NCS_SAMPLE_MCUMGR_BT_OTA_DFU (defined at
    /opt/nordic/ncs/v2.9.0/nrf/samples/common/mcumgr_bt_ota_dfu/Kconfig:9) was assigned the value 'y'
    but got the value 'n'. Check these unsatisfied dependencies: BOOTLOADER_MCUBOOT (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU and/or look up
    NCS_SAMPLE_MCUMGR_BT_OTA_DFU 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.
    
    
    warning: MCUMGR_GRP_ZBASIC (defined at
    /opt/nordic/ncs/v2.9.0/nrf/samples/common/mcumgr_bt_ota_dfu/Kconfig:63,
    subsys/mgmt/mcumgr/grp/zephyr_basic/Kconfig:4) was assigned the value 'y' but got the value 'n'.
    Check these unsatisfied dependencies: (((SETTINGS_FCB || SETTINGS_NVS) &&
    NCS_SAMPLE_MCUMGR_BT_OTA_DFU) || MCUMGR) (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_GRP_ZBASIC and/or look up
    MCUMGR_GRP_ZBASIC 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.
    
    
    warning: MCUMGR_GRP_ZBASIC_STORAGE_ERASE (defined at
    /opt/nordic/ncs/v2.9.0/nrf/samples/common/mcumgr_bt_ota_dfu/Kconfig:66,
    subsys/mgmt/mcumgr/grp/zephyr_basic/Kconfig:11) was assigned the value 'y' but got the value 'n'.
    Check these unsatisfied dependencies: (((SETTINGS_FCB || SETTINGS_NVS) &&
    NCS_SAMPLE_MCUMGR_BT_OTA_DFU) || (MCUMGR_GRP_ZBASIC && MCUMGR)) (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_GRP_ZBASIC_STORAGE_ERASE and/or look
    up MCUMGR_GRP_ZBASIC_STORAGE_ERASE 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.
    
    
    warning: RTT_CONSOLE (defined at drivers/console/Kconfig:130) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: CONSOLE (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_RTT_CONSOLE and/or look up RTT_CONSOLE 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.
    
    
    warning: MCUMGR_GRP_FS (defined at subsys/mgmt/mcumgr/grp/fs_mgmt/Kconfig:15) was assigned the value
    'y' but got the value 'n'. Check these unsatisfied dependencies: MCUMGR (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_GRP_FS and/or look up MCUMGR_GRP_FS
    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.
    
    
    warning: MCUMGR_GRP_OS (defined at subsys/mgmt/mcumgr/grp/os_mgmt/Kconfig:15) was assigned the value
    'y' but got the value 'n'. Check these unsatisfied dependencies: MCUMGR (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_GRP_OS and/or look up MCUMGR_GRP_OS
    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.
    
    
    warning: MCUMGR_GRP_SHELL (defined at subsys/mgmt/mcumgr/grp/shell_mgmt/Kconfig:15) was assigned the
    value 'y' but got the value 'n'. Check these unsatisfied dependencies: MCUMGR (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_GRP_SHELL and/or look up
    MCUMGR_GRP_SHELL 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.
    
    
    warning: MCUMGR_TRANSPORT_WORKQUEUE_STACK_SIZE (defined at subsys/mgmt/mcumgr/transport/Kconfig:15)
    was assigned the value '8192' but got the value ''. Check these unsatisfied dependencies: MCUMGR
    (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_TRANSPORT_WORKQUEUE_STACK_SIZE
    and/or look up MCUMGR_TRANSPORT_WORKQUEUE_STACK_SIZE 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.
    
    
    warning: MCUMGR_TRANSPORT_BT (defined at subsys/mgmt/mcumgr/transport/Kconfig.bluetooth:12) was
    assigned the value 'y' but got the value 'n'. Check these unsatisfied dependencies: MCUMGR (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_TRANSPORT_BT and/or look up
    MCUMGR_TRANSPORT_BT 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.
    
    
    warning: MCUMGR_TRANSPORT_BT_CONN_PARAM_CONTROL (defined at
    subsys/mgmt/mcumgr/transport/Kconfig.bluetooth:47) was assigned the value 'y' but got the value 'n'.
    Check these unsatisfied dependencies: MCUMGR_TRANSPORT_BT (=n), MCUMGR (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_TRANSPORT_BT_CONN_PARAM_CONTROL
    and/or look up MCUMGR_TRANSPORT_BT_CONN_PARAM_CONTROL 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.
    
    
    warning: SHELL_BACKEND_RTT_BUFFER (defined at subsys/shell/backends/Kconfig.backends:206) was
    assigned the value '0' but got the value ''. Check these unsatisfied dependencies: SHELL_BACKEND_RTT
    (=n). See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SHELL_BACKEND_RTT_BUFFER and/or
    look up SHELL_BACKEND_RTT_BUFFER 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.
    
    
    warning: Deprecated symbol PLATFORM_SPECIFIC_INIT is enabled.
    
    
    warning: Deprecated symbol POSIX_CLOCK is enabled.
    
    
    warning: Experimental symbol LORA is enabled.
    
    
    warning: Experimental symbol MODEM_CONTEXT is enabled.
    
    
    warning: Experimental symbol LORAWAN is enabled.
    
    
    warning: Experimental symbol MODEM_MODULES is enabled.
    
    
    /Users/sh/dev/git/trailpulse-edge/prj.conf:92: warning: attempt to assign the value 'n' to the undefined symbol MCUMGR_TRANSPORT_BT_AUTHEN
    Parsing /Users/sh/dev/git/trailpulse-edge/Kconfig
    Loaded configuration '/Users/sh/dev/git/trailpulse-edge/boards/arm/tp_v4_rak4630_nrf52840/tp_v4_rak4630_nrf52840_defconfig'
    Merged configuration '/Users/sh/dev/git/trailpulse-edge/prj.conf'
    Merged configuration '/Users/sh/dev/git/trailpulse-edge/debug_prj.conf'
    Merged configuration '/Users/sh/dev/git/trailpulse-edge/boards/shields/simcom7022.conf'
    Merged configuration '/Users/sh/dev/git/trailpulse-edge/build_v4_debug_2/trailpulse-edge/zephyr/.config.sysbuild'
    
    error: Aborting due to Kconfig warnings
    
    CMake Error at /opt/nordic/ncs/v2.9.0/zephyr/cmake/modules/kconfig.cmake:396 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      /opt/nordic/ncs/v2.9.0/nrf/cmake/modules/kconfig.cmake:29 (include)
      /opt/nordic/ncs/v2.9.0/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
      /opt/nordic/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /opt/nordic/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:5 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
      CMake configure failed for Zephyr project: trailpulse-edge
    
      Location: /Users/sh/dev/git/trailpulse-edge
    Call Stack (most recent call first):
      cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake)
      cmake/modules/sysbuild_default.cmake:20 (include)
      /opt/nordic/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      /opt/nordic/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      /opt/nordic/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/Users/sh/dev/git/trailpulse-edge/build_v4_debug_2/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/b8efef2ad5/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/toolchains/b8efef2ad5/opt/[email protected]/bin/python3.12 -B/Users/sh/dev/git/trailpulse-edge/build_v4_debug_2 -GNinja -DBOARD=tp_v4_rak4630_nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE '-DEXTRA_CONF_FILE=debug_prj.conf;boards/shields/simcom7022.conf' -DEXTRA_DTC_OVERLAY_FILE=boards/shields/simcom7022.overlay -DBOARD_ROOT=/Users/sh/dev/git/trailpulse-edge -S/opt/nordic/ncs/v2.9.0/zephyr/share/sysbuild -DAPP_DIR:PATH=/Users/sh/dev/git/trailpulse-edge
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    

  • Hi,

    You are gettin gmany warnings and errors due to configurations that are no longer valid. It makes sense to take them one by one, starting frrom the top. I would however start by ensuring that your project is properly migrated to sysbuild (see Migrating from multi-image builds to sysbuild). And regarding configs, one example woub be how to handle CONFIG_MCUMGR_TRANSPORT_BT_AUTHEN, see this post.

Related