Error programming Thingy 91X: slot_index_primary is required

I have rebuilt the sample app at_client using VS Code (Mac)
nRF Connect SDK v2.6.0 and Toolchain v2.6.0
Board target: thingy91_nrf9151
Snippets: nrf91-modem-trace-uart

I am using nRF Connect for Desktop -> Programmer v4.6.2 to program the device
File: at_client/build/zephyr/dfu_application.zip

When programming I get the following failure:
Message: Failed, Error parsing multi-image file entry: slot_index_primary is required.

Same result if I try to use command line.

Full log:
2025-07-20T21:01:38.782Z INFO Device connected with the serial number THINGY91X_941D1C15D72
2025-07-20T21:01:45.430Z INFO Getting serial port options from the persistent store for THINGY91X_941D1C15D72.pc-nrfconnect-programmer
2025-07-20T21:01:45.431Z INFO Device connected with the serial number THINGY91X_941D1C15D72
2025-07-20T21:01:45.431Z DEBUG Sending event "programmer: device connected"
2025-07-20T21:01:45.657Z INFO Getting serial port options from the persistent store for THINGY91X_941D1C15D72.pc-nrfconnect-programmer
2025-07-20T21:01:45.657Z DEBUG Sending event "programmer: device connected"
2025-07-20T21:01:45.664Z INFO Getting serial port options from the persistent store for THINGY91X_941D1C15D72.pc-nrfconnect-programmer
2025-07-20T21:01:45.664Z DEBUG Sending event "programmer: device connected"
2025-07-20T21:01:56.082Z INFO Selecting device with the serial number THINGY91X_941D1C15D72
2025-07-20T21:01:56.089Z DEBUG Sending event "programmer: running nrfutil device"
2025-07-20T21:01:56.210Z INFO Selected device with the serial number THINGY91X_941D1C15D72
2025-07-20T21:01:56.211Z DEBUG Sending event "programmer: device selected"
2025-07-20T21:02:01.650Z INFO Checking ZIP file: /Users/anders/Sources/thingy91x/at_client/build/zephyr/dfu_application.zip
2025-07-20T21:02:01.650Z INFO File was last modified at 7/18/2025, 12:36:15 PM
2025-07-20T21:02:07.003Z INFO Modem DFU starts to write...
2025-07-20T21:02:07.003Z INFO Writing /Users/anders/Sources/nrf52840dk/at_client/build/zephyr/dfu_application.zip to device THINGY91X_941D1C15D72
2025-07-20T21:02:07.006Z DEBUG Sending event "programmer: running nrfutil device"
2025-07-20T21:02:07.129Z ERROR Error: Failed with exit code 1.
One or more program tasks failed:
* THINGY91X_941D1C15D72: Error parsing multi-image file entry: slot_index_primary is required (FileOpenFailed)


Message: Failed, Error parsing multi-image file entry: slot_index_primary is required.
2025-07-20T21:02:07.129Z ERROR Modem DFU failed with error: Error: Failed with exit code 1.
One or more program tasks failed:
* THINGY91X_941D1C15D72: Error parsing multi-image file entry: slot_index_primary is required (FileOpenFailed)


Message: Failed, Error parsing multi-image file entry: slot_index_primary is required.

Parents
  • Hi,

    Are you able to build the sample from command line (with and without the snippet)?

    Best regards,
    Dejan

  • I just deleted build directory , set up environment as shown and pressed "Generate and Build". I deleted the build directory again, kept build configuration and did another "Generate and Build". This time the build target is correct, but I still get an error:

    * Executing task: nRF Connect: Generate config thingy91x/nrf9151/ns for /Users/anders/Sources/thingy91x/at_client

    Building at_client
    west build --build-dir /Users/anders/Sources/thingy91x/at_client/build /Users/anders/Sources/thingy91x/at_client --pristine --board thingy91x/nrf9151/ns

    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: /opt/nordic/ncs/toolchains/ef4fc6722e/opt/[email protected]/bin/python3.12 (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: /Users/anders/Library/Caches/zephyr
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf9151/ns
    Parsing /opt/nordic/ncs/v3.0.2/zephyr/share/sysbuild/Kconfig
    Loaded configuration '/Users/anders/Sources/thingy91x/at_client/build/_sysbuild/empty.conf'
    Merged configuration '/Users/anders/Sources/thingy91x/at_client/build/_sysbuild/empty.conf'
    Configuration saved to '/Users/anders/Sources/thingy91x/at_client/build/zephyr/.config'
    Kconfig header saved to '/Users/anders/Sources/thingy91x/at_client/build/_sysbuild/autoconf.h'
    --
    *****************************
    * Running CMake for mcuboot *
    *****************************

    Loading Zephyr default modules (Zephyr base).
    -- Application: /opt/nordic/ncs/v3.0.2/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.21.0
    -- Found Python3: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/python (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: /Users/anders/Library/Caches/zephyr
    -- Zephyr version: 4.0.99 (/opt/nordic/ncs/v3.0.2/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf9151
    -- Found host-tools: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk)
    -- Found Dtc: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
    -- Found BOARD.dts: /opt/nordic/ncs/v3.0.2/nrf/boards/nordic/thingy91x/thingy91x_nrf9151.dts
    -- Found devicetree overlay: /opt/nordic/ncs/v3.0.2/bootloader/mcuboot/boot/zephyr/boards/thingy91x_nrf9151.overlay
    -- Generated zephyr.dts: /Users/anders/Sources/thingy91x/at_client/build/mcuboot/zephyr/zephyr.dts
    -- Generated pickled edt: /Users/anders/Sources/thingy91x/at_client/build/mcuboot/zephyr/edt.pickle
    -- Generated zephyr.dts: /Users/anders/Sources/thingy91x/at_client/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /Users/anders/Sources/thingy91x/at_client/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: /Users/anders/Sources/thingy91x/at_client/build/mcuboot/zephyr/dts.cmake
    Parsing /opt/nordic/ncs/v3.0.2/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration '/opt/nordic/ncs/v3.0.2/nrf/boards/nordic/thingy91x/thingy91x_nrf9151_defconfig'
    Merged configuration '/opt/nordic/ncs/v3.0.2/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration '/opt/nordic/ncs/v3.0.2/bootloader/mcuboot/boot/zephyr/boards/thingy91x_nrf9151.conf'
    Merged configuration '/opt/nordic/ncs/v3.0.2/nrf/modules/mcuboot/tfm.conf'
    Merged configuration '/opt/nordic/ncs/v3.0.2/nrf/subsys/bootloader/bl_override/override_external_mcuboot.conf'
    Merged configuration '/opt/nordic/ncs/v3.0.2/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf'
    Merged configuration '/opt/nordic/ncs/v3.0.2/nrf/subsys/bootloader/image/log_minimal.conf'
    Merged configuration '/opt/nordic/ncs/v3.0.2/bootloader/mcuboot/boot/zephyr/external_crypto.conf'
    Merged configuration '/Users/anders/Sources/thingy91x/at_client/build/mcuboot/zephyr/.config.sysbuild'
    Configuration saved to '/Users/anders/Sources/thingy91x/at_client/build/mcuboot/zephyr/.config'
    Kconfig header saved to '/Users/anders/Sources/thingy91x/at_client/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: /opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (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: /opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Using ccache: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/ccache
    MCUBoot bootloader key file: /opt/nordic/ncs/v3.0.2/bootloader/mcuboot/root-ec-p256.pem
    CMake Warning at CMakeLists.txt:393 (message):
    WARNING: Using default MCUboot signing key file, this file is for debug use
    only and is not secure!


    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Users/anders/Sources/thingy91x/at_client/build/mcuboot
    --
    ************************
    * Running CMake for b0 *
    ************************

    Loading Zephyr default modules (Zephyr base).
    -- Application: /opt/nordic/ncs/v3.0.2/nrf/samples/bootloader
    -- CMake version: 3.21.0
    -- Found Python3: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/python (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: /Users/anders/Library/Caches/zephyr
    -- Zephyr version: 4.0.99 (/opt/nordic/ncs/v3.0.2/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf9151
    -- Found host-tools: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk)
    -- Found Dtc: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
    -- Found BOARD.dts: /opt/nordic/ncs/v3.0.2/nrf/boards/nordic/thingy91x/thingy91x_nrf9151.dts
    -- Generated zephyr.dts: /Users/anders/Sources/thingy91x/at_client/build/b0/zephyr/zephyr.dts
    -- Generated pickled edt: /Users/anders/Sources/thingy91x/at_client/build/b0/zephyr/edt.pickle
    -- Generated zephyr.dts: /Users/anders/Sources/thingy91x/at_client/build/b0/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /Users/anders/Sources/thingy91x/at_client/build/b0/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: /Users/anders/Sources/thingy91x/at_client/build/b0/zephyr/dts.cmake
    Parsing /opt/nordic/ncs/v3.0.2/zephyr/Kconfig
    Loaded configuration '/opt/nordic/ncs/v3.0.2/nrf/boards/nordic/thingy91x/thingy91x_nrf9151_defconfig'
    Merged configuration '/opt/nordic/ncs/v3.0.2/nrf/samples/bootloader/prj.conf'
    Merged configuration '/Users/anders/Sources/thingy91x/at_client/build/b0/zephyr/.config.sysbuild'
    Configuration saved to '/Users/anders/Sources/thingy91x/at_client/build/b0/zephyr/.config'
    Kconfig header saved to '/Users/anders/Sources/thingy91x/at_client/build/b0/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: /opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (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: /opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Using ccache: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/ccache
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Users/anders/Sources/thingy91x/at_client/build/b0
    --
    *******************************
    * Running CMake for at_client *
    *******************************

    Loading Zephyr default modules (Zephyr base).
    -- Application: /Users/anders/Sources/thingy91x/at_client
    -- CMake version: 3.21.0
    -- Found Python3: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/python (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: /Users/anders/Library/Caches/zephyr
    -- Zephyr version: 4.0.99 (/opt/nordic/ncs/v3.0.2/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf9151/ns
    -- Found host-tools: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk)
    -- Found Dtc: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
    -- Found BOARD.dts: /opt/nordic/ncs/v3.0.2/nrf/boards/nordic/thingy91x/thingy91x_nrf9151_ns.dts
    -- Generated zephyr.dts: /Users/anders/Sources/thingy91x/at_client/build/at_client/zephyr/zephyr.dts
    -- Generated pickled edt: /Users/anders/Sources/thingy91x/at_client/build/at_client/zephyr/edt.pickle
    -- Generated zephyr.dts: /Users/anders/Sources/thingy91x/at_client/build/at_client/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /Users/anders/Sources/thingy91x/at_client/build/at_client/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: /Users/anders/Sources/thingy91x/at_client/build/at_client/zephyr/dts.cmake

    warning: UPDATEABLE_IMAGE_NUMBER (defined at
    /opt/nordic/ncs/v3.0.2/nrf/boards/nordic/thingy91x/Kconfig.defconfig.nrf5340:92,
    /opt/nordic/ncs/v3.0.2/nrf/samples/common/mcumgr_bt_ota_dfu/Kconfig:99, subsys/dfu/Kconfig:96) was
    assigned the value '1' but got the value ''. See
    docs.zephyrproject.org/.../kconfig.html and/or look up
    UPDATEABLE_IMAGE_NUMBER 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: PM_DEVICE_RUNTIME (defined at soc/nordic/nrf54h/Kconfig.defconfig:45, subsys/pm/Kconfig:96)
    was assigned the value 'y' but got the value 'n'. Check these unsatisfied dependencies:
    ((SOC_SERIES_NRF54HX && SOC_FAMILY_NORDIC_NRF) || PM_DEVICE) (=n). See
    docs.zephyrproject.org/.../kconfig.html and/or look up
    PM_DEVICE_RUNTIME 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: MCUBOOT_UPDATE_FOOTER_SIZE (defined at subsys/dfu/Kconfig:55) was assigned the value
    '0x3000' but got the value ''. Check these unsatisfied dependencies: MCUBOOT_IMG_MANAGER (=n),
    IMG_MANAGER (=n). See
    docs.zephyrproject.org/.../kconfig.html and/or look up
    MCUBOOT_UPDATE_FOOTER_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.


    /Users/anders/Sources/thingy91x/at_client/prj.conf:14: warning: attempt to assign the value 'y' to the undefined symbol NET_SOCKETS_POSIX_NAMES

    error: Aborting due to Kconfig warnings

    Parsing /opt/nordic/ncs/v3.0.2/zephyr/Kconfig
    Loaded configuration '/opt/nordic/ncs/v3.0.2/nrf/boards/nordic/thingy91x/thingy91x_nrf9151_ns_defconfig'
    Merged configuration '/Users/anders/Sources/thingy91x/at_client/prj.conf'
    Merged configuration '/Users/anders/Sources/thingy91x/at_client/build/at_client/zephyr/.config.sysbuild'
    CMake Error at /opt/nordic/ncs/v3.0.2/zephyr/cmake/modules/kconfig.cmake:396 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    /opt/nordic/ncs/v3.0.2/nrf/cmake/modules/kconfig.cmake:36 (include)
    /opt/nordic/ncs/v3.0.2/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
    /opt/nordic/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    /opt/nordic/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    CMakeLists.txt:9 (find_package)


    -- Configuring incomplete, errors occurred!
    CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
    CMake configure failed for Zephyr project: at_client

    Location: /Users/anders/Sources/thingy91x/at_client
    Call Stack (most recent call first):
    cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
    cmake/modules/sysbuild_default.cmake:21 (include)
    /opt/nordic/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
    /opt/nordic/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    /opt/nordic/ncs/v3.0.2/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
    template/CMakeLists.txt:10 (find_package)


    -- Configuring incomplete, errors occurred!
    See also "/Users/anders/Sources/thingy91x/at_client/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/toolchains/ef4fc6722e/opt/[email protected]/bin/python3.12 -B/Users/anders/Sources/thingy91x/at_client/build -GNinja -DBOARD=thingy91x/nrf9151/ns -S/opt/nordic/ncs/v3.0.2/zephyr/share/sysbuild -DAPP_DIR:PATH=/Users/anders/Sources/thingy91x/at_client

    * The terminal process terminated with exit code: 1.
    * Terminal will be reused by tasks, press any key to close it.

  • Deleted old at_client and started with at_client from nRF Connect SDK v3.0.2. Built successfully. Loaded on target successfully.

    Deleted build directory. Added mrf91-modem-uart-trace snippet to build configuration 

    Got following build error (re-build here to shorten output):

    * Executing task: nRF Connect: Build: at_client/build (active)

    Building at_client
    west build --build-dir /Users/anders/Sources/thingy91x/at_client/build /Users/anders/Sources/thingy91x/at_client

    [0/31] Performing build step for 'mcuboot'
    ninja: no work to do.
    [0/14] Performing build step for 'tfm'
    ninja: no work to do.
    [5/25] Performing build step for 's1_image'
    ninja: no work to do.
    [1/6] Linking C executable zephyr/zephyr_pre0.elf
    FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /Users/anders/Sources/thingy91x/at_client/build/b0/zephyr/zephyr_pre0.map
    : && ccache /opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=/Users/anders/Sources/thingy91x/at_client/build/b0/zephyr/zephyr_pre0.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/libarch__arm__core.a zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a zephyr/arch/arch/arm/core/cortex_m/cmse/libarch__arm__core__cortex_m__cmse.a zephyr/lib/libc/picolibc/liblib__libc__picolibc.a zephyr/lib/libc/common/liblib__libc__common.a zephyr/soc/soc/nrf9151/libsoc__nordic.a zephyr/drivers/clock_control/libdrivers__clock_control.a zephyr/drivers/console/libdrivers__console.a zephyr/drivers/pinctrl/libdrivers__pinctrl.a zephyr/drivers/serial/libdrivers__serial.a zephyr/drivers/timer/libdrivers__timer.a modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a modules/nrf/subsys/bootloader/bl_boot/lib..__nrf__subsys__bootloader__bl_boot.a modules/nrf/subsys/bootloader/bl_crypto/lib..__nrf__subsys__bootloader__bl_crypto.a modules/nrf/subsys/bootloader/bl_validation/lib..__nrf__subsys__bootloader__bl_validation.a modules/nrf/subsys/bootloader/bl_storage/lib..__nrf__subsys__bootloader__bl_storage.a modules/nrf/subsys/fw_info/lib..__nrf__subsys__fw_info.a modules/nrf/drivers/hw_cc3xx/lib..__nrf__drivers__hw_cc3xx.a modules/hal_nordic/modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a -L/Users/anders/Sources/thingy91x/at_client/build/b0/zephyr zephyr/arch/common/libisr_tables.a /opt/nordic/ncs/v3.0.2/nrfxlib/crypto/nrf_oberon/lib/cortex-m33/hard-float/liboberon_3.0.16.a /opt/nordic/ncs/v3.0.2/nrfxlib/crypto/nrf_cc310_bl/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_bl_0.9.12.a -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mfp16-format=ieee -mtp=soft -fuse-ld=bfd -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -Wl,-X -Wl,-N -Wl,--orphan-handling=warn -Wl,-no-pie -specs=picolibc.specs -DPICOLIBC_DOUBLE_PRINTF_SCANF /opt/nordic/ncs/v3.0.2/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_platform_0.9.19.a -L"/opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v8-m.main+fp/hard" -lc -lgcc && cd /Users/anders/Sources/thingy91x/at_client/build/b0/zephyr && /opt/nordic/ncs/toolchains/ef4fc6722e/Cellar/cmake/3.21.0/bin/cmake -E true
    /opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/kernel/libkernel.a(timeout.c.obj): in function `elapsed':
    /opt/nordic/ncs/v3.0.2/zephyr/kernel/timeout.c:80: undefined reference to `sys_clock_elapsed'
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    [12/24] cd /Users/anders/Sources/thingy91x/at_client/build/_sysbuild && /opt/nordic/ncs/toolchains/ef4fc6722e/Cellar/cmake/3.21.0/bin/cmake -E true
    FAILED: modules/nrf/b0-prefix/src/b0-stamp/b0-build /Users/anders/Sources/thingy91x/at_client/build/modules/nrf/b0-prefix/src/b0-stamp/b0-build
    cd /Users/anders/Sources/thingy91x/at_client/build/b0 && /opt/nordic/ncs/toolchains/ef4fc6722e/Cellar/cmake/3.21.0/bin/cmake --build .
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/cmake --build /Users/anders/Sources/thingy91x/at_client/build

    * The terminal process terminated with exit code: 1.
    * Terminal will be reused by tasks, press any key to close it.

  • Hi,

    You can try to shorten the path to the sample project. Do you get different result?

    Best regards,
    Dejan

  • Pulled new sample project to /opt/tst/at/

    This gives exact same error.

  • I do suspect this has something to do with configuration. The prototype is found in 

    <zephyr/drivers/timer/system_timer.h> and I see the implementation in the drivers in zephyr/drivers/timer/*.c files.
    Namely nrf_rtc_timer.c and nrf_grtc_timer.c (if one of those is appropriate for the platform).
    Question is if timer driver is supported by the platform and what configs includes the timer implementation files in the build.
Reply
  • I do suspect this has something to do with configuration. The prototype is found in 

    <zephyr/drivers/timer/system_timer.h> and I see the implementation in the drivers in zephyr/drivers/timer/*.c files.
    Namely nrf_rtc_timer.c and nrf_grtc_timer.c (if one of those is appropriate for the platform).
    Question is if timer driver is supported by the platform and what configs includes the timer implementation files in the build.
Children
  • Since implementation is in nrf_rtc_timer I did the following
    rtc0 or rtc1 is not included in thingy91_nrf9151_ns.dts, so I added app.overlay with

    &rtc0 {
    status = "okay";
    };

    And added
    CONFIG_NRF_RTC_TIMER=y
    To my prj.conf file.

    Still same error: undefined reference to `sys_clock_elapsed'

    So the question remains:
    How do I get nrf_rtc_timer.c included in my build. (If that's the implementation I need).

  • Hi,

    Can you try to program thingy91x_at_client_2025-05-08_3bfc4657.zip (found in img_dfu_zip folder)?
    You can use "nrfutil device program" to flash zip firmware. You can find more information in updating application firmware on nrf9151.

    Best regards,
    Dejan

  • I cannot find this file on my Mac. Nor the folder. Please give full path or web location.

    Does this image have nrf91-modem-uart-trace enabled?

  • Hi,

    Please find precompiled application and modem firmware images on the Thingy91:X Downloads webpage.

    Debug builds in the debug folder have tracing enabled, other builds do not have traces enabled. Modem shell and SLM builds have UART modem tracing enabled.

    Best regards,
    Dejan

  • That loads. But I expected that to work.

    I think there is some confusion here. My original problem of loading an image to my Thingy91X was resolved by changing my SDK and Toolchain to v3.0.2 building the plain at_client.

    A new issue appeared when I failed to build at_client with the nrf91-modem-uart-trace snippet in the same sandbox. This also failed when moving my sandbox to a shorter path. I need this for my Thingy91X to work with nRF Cellular Monitor v2.4.4. I should probably raise a new issue on this.

    I have tested all of the prebuilt zip files and none of them seem to work with the Cellular Monitor. Regardless I would like to be able to build the Thingy with nrf91-modem-uart-trace snippet myself so I can make any changes needed and possibly adapt some of the code to my own application.

    Since tis is a separate issue I would suggest closing this issue and I will raise a new issue on building at_client with nrf91-modem-uart-trace snippet for Thingy 91X.

Related