Error building the (new) Serial Modem

When following through the process described on GitHub for the NCS_SERIAL_MODEM I get an error during the build. I am following the steps described in the readme exactly as indicated.

https://github.com/nrfconnect/ncs-serial-modem

Error message is...

C:/GTdev/Nordic/serial_modem/project/app/build/mcuboot/zephyr/.config.sysbuild:38: warning: attempt to assign the value 'n' to the undefined symbol BOOT_RAM_LOAD_REVERTLoaded configuration 'C:/ncs/v3.1.1/zephyr/boards/nordic/nrf9151dk/nrf9151dk_nrf9151_defconfig'

I know this is early code, but since Serial LTE Modem is slated for EOL I wanted to move forward with my testing.

Thank you,

Greg

Parents
  • PS C:\GTdev\Nordic\serial_modem\project\app> west build -p -b nrf9151dk/nrf9151/ns
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: C:/ncs/toolchains/c1a76fddb2/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.1.1/zephyr/.cache
    -- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
    -- Board: nrf9151dk, qualifiers: nrf9151/ns
    Parsing C:/GTdev/Nordic/serial_modem/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'C:/GTdev/Nordic/serial_modem/project/app/build/_sysbuild/empty.conf'
    Merged configuration 'C:/GTdev/Nordic/serial_modem/project/app/sysbuild.conf'
    Configuration saved to 'C:/GTdev/Nordic/serial_modem/project/app/build/zephyr/.config'
    Kconfig header saved to 'C:/GTdev/Nordic/serial_modem/project/app/build/_sysbuild/autoconf.h'
    --
    *****************************
    * Running CMake for mcuboot *
    *****************************

    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v3.1.1/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/c1a76fddb2/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.1.1/zephyr/.cache
    -- Zephyr version: 4.1.99 (C:/ncs/v3.1.1/zephyr)
    -- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
    -- Board: nrf9151dk, qualifiers: nrf9151
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/c1a76fddb2/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v3.1.1/zephyr/boards/nordic/nrf9151dk/nrf9151dk_nrf9151.dts
    -- Found devicetree overlay: C:/GTdev/Nordic/serial_modem/project/app/sysbuild/mcuboot/app.overlay
    -- Generated zephyr.dts: C:/GTdev/Nordic/serial_modem/project/app/build/mcuboot/zephyr/zephyr.dts
    -- Generated pickled edt: C:/GTdev/Nordic/serial_modem/project/app/build/mcuboot/zephyr/edt.pickle
    -- Generated devicetree_generated.h: C:/GTdev/Nordic/serial_modem/project/app/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h

    Parsing C:/ncs/v3.1.1/bootloader/mcuboot/boot/zephyr/Kconfig
    C:/GTdev/Nordic/serial_modem/project/app/build/mcuboot/zephyr/.config.sysbuild:38: warning: attempt to assign the value 'n' to the undefined symbol BOOT_RAM_LOAD_REVERTLoaded configuration 'C:/ncs/v3.1.1/zephyr/boards/nordic/nrf9151dk/nrf9151dk_nrf9151_defconfig'
    Merged configuration 'C:/GTdev/Nordic/serial_modem/project/app/sysbuild/mcuboot/prj.conf'
    Merged configuration 'C:/ncs/v3.1.1/nrf/modules/mcuboot/tfm.conf'
    Merged configuration 'C:/GTdev/Nordic/serial_modem/project/app/build/mcuboot/zephyr/.config.sysbuild'


    error: Aborting due to Kconfig warnings

    CMake Error at C:/ncs/v3.1.1/zephyr/cmake/modules/kconfig.cmake:377 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    C:/ncs/v3.1.1/nrf/cmake/modules/kconfig.cmake:83 (include)
    C:/ncs/v3.1.1/zephyr/cmake/modules/zephyr_default.cmake:131 (include)
    C:/ncs/v3.1.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    C:/ncs/v3.1.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    CMakeLists.txt:18 (find_package)

    -- Configuring incomplete, errors occurred!

    CMake Error at cmake/modules/sysbuild_extensions.cmake:530 (message):
    CMake configure failed for Zephyr project: mcuboot

    Location: C:/ncs/v3.1.1/bootloader/mcuboot/boot/zephyr/
    Call Stack (most recent call first):
    cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
    cmake/modules/sysbuild_default.cmake:21 (include)
    C:/GTdev/Nordic/serial_modem/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
    C:/GTdev/Nordic/serial_modem/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    C:/GTdev/Nordic/serial_modem/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
    template/CMakeLists.txt:10 (find_package)


    -- Configuring incomplete, errors occurred!
    See also "C:/GTdev/Nordic/serial_modem/project/app/build/CMakeFiles/CMakeOutput.log".
    ←[91mFATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c1a76fddb2\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/c1a76fddb2/opt/bin/python.exe '-BC:\GTdev\Nordic\serial_modem\project\app\build' -GNinja -DBOARD=nrf9151dk/nrf9151/ns '-SC:\GTdev\Nordic\serial_modem\zephyr\share\sysbuild' '-DAPP_DIR:PATH=C:\GTdev\Nordic\serial_modem\project\app'
    ←[0m
    PS C:\GTdev\Nordic\serial_modem\project\app>

  • Hi Greg,

    I have tested building serial_modem sample and build succeeded. Before running "west build" command, you can try to open the terminal in NCS v3.1.0 using nrfutil

    nrfutil sdk-manager toolchain launch --ncs-version v3.1.0 --terminal

    Best regards,
    Dejan

  • I tried launching the external terminal as you describe without sucssess.

    Microsoft Windows [Version 10.0.26200.6899]
    (c) Microsoft Corporation. All rights reserved.

    (v3.1.0) C:\GTdev\Nordic\serial_modem\project\app> west build -p -b nrf9151dk/nrf9151/ns
    -- west build: making build dir C:\GTdev\Nordic\serial_modem\project\app\build pristine
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: C:/ncs/toolchains/b8b84efebd/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.1.0/zephyr/.cache
    -- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
    -- Board: nrf9151dk, qualifiers: nrf9151/ns
    Parsing C:/GTdev/Nordic/serial_modem/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'C:/GTdev/Nordic/serial_modem/project/app/build/_sysbuild/empty.conf'
    Merged configuration 'C:/GTdev/Nordic/serial_modem/project/app/sysbuild.conf'
    Configuration saved to 'C:/GTdev/Nordic/serial_modem/project/app/build/zephyr/.config'
    Kconfig header saved to 'C:/GTdev/Nordic/serial_modem/project/app/build/_sysbuild/autoconf.h'
    --
    *****************************
    * Running CMake for mcuboot *
    *****************************

    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v3.1.0/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/b8b84efebd/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.1.0/zephyr/.cache
    -- Zephyr version: 4.1.99 (C:/ncs/v3.1.0/zephyr)
    -- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
    -- Board: nrf9151dk, qualifiers: nrf9151
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/b8b84efebd/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v3.1.0/zephyr/boards/nordic/nrf9151dk/nrf9151dk_nrf9151.dts
    -- Found devicetree overlay: C:/GTdev/Nordic/serial_modem/project/app/sysbuild/mcuboot/app.overlay
    -- Generated zephyr.dts: C:/GTdev/Nordic/serial_modem/project/app/build/mcuboot/zephyr/zephyr.dts
    -- Generated pickled edt: C:/GTdev/Nordic/serial_modem/project/app/build/mcuboot/zephyr/edt.pickle
    -- Generated devicetree_generated.h: C:/GTdev/Nordic/serial_modem/project/app/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h

    Parsing C:/ncs/v3.1.0/bootloader/mcuboot/boot/zephyr/Kconfig
    C:/GTdev/Nordic/serial_modem/project/app/build/mcuboot/zephyr/.config.sysbuild:38: warning: attempt to assign the value 'n' to the undefined symbol BOOT_RAM_LOAD_REVERTLoaded configuration 'C:/ncs/v3.1.0/zephyr/boards/nordic/nrf9151dk/nrf9151dk_nrf9151_defconfig'
    Merged configuration 'C:/GTdev/Nordic/serial_modem/project/app/sysbuild/mcuboot/prj.conf'
    Merged configuration 'C:/ncs/v3.1.0/nrf/modules/mcuboot/tfm.conf'
    Merged configuration 'C:/GTdev/Nordic/serial_modem/project/app/build/mcuboot/zephyr/.config.sysbuild'


    error: Aborting due to Kconfig warnings

    CMake Error at C:/ncs/v3.1.0/zephyr/cmake/modules/kconfig.cmake:377 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    C:/ncs/v3.1.0/nrf/cmake/modules/kconfig.cmake:83 (include)
    C:/ncs/v3.1.0/zephyr/cmake/modules/zephyr_default.cmake:131 (include)
    C:/ncs/v3.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    C:/ncs/v3.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    CMakeLists.txt:18 (find_package)


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

    Location: C:/ncs/v3.1.0/bootloader/mcuboot/boot/zephyr/
    Call Stack (most recent call first):
    cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
    cmake/modules/sysbuild_default.cmake:21 (include)
    C:/GTdev/Nordic/serial_modem/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
    C:/GTdev/Nordic/serial_modem/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    C:/GTdev/Nordic/serial_modem/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
    template/CMakeLists.txt:10 (find_package)


    -- Configuring incomplete, errors occurred!
    See also "C:/GTdev/Nordic/serial_modem/project/app/build/CMakeFiles/CMakeOutput.log".
    ←[91mFATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b8b84efebd\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/b8b84efebd/opt/bin/python.exe '-BC:\GTdev\Nordic\serial_modem\project\app\build' -GNinja -DBOARD=nrf9151dk/nrf9151/ns '-SC:\GTdev\Nordic\serial_modem\zephyr\share\sysbuild' '-DAPP_DIR:PATH=C:\GTdev\Nordic\serial_modem\project\app'
    ←[0m
    (v3.1.0) C:\GTdev\Nordic\serial_modem\project\app>

  • The target I am attempting to build for is the nr9151DK. When drilling down in the project files I see .conf for the thingy91x and the nrf9161DK, but no .conf or .overlay files corresponding to the nrf9151DK.

Reply Children
  • Hi Greg,

    gterrell said:
    When drilling down in the project files I see .conf for the thingy91x and the nrf9161DK, but no .conf or .overlay files corresponding to the nrf9151DK.

    Which project files have you looked into? What have you observed exactly? Can you elaborate on this?

    Best regards,
    Dejan

  • I didn't note the directory for sure, but I believe it was C:\ncs\v3.1.0\bootloader\mcuboot\boot\zephyr\boards

    I drilled into that folder structure since it was referenced just before the error

    Parsing C:/ncs/v3.1.1/bootloader/mcuboot/boot/zephyr/Kconfig
    C:/GTdev/Nordic/serial_modem/project/app/build/mcuboot/zephyr/.config.sysbuild:38: warning: attempt to assign the value 'n' to the undefined symbol BOOT_RAM_LOAD_REVERTLoaded configuration 'C:/ncs/v3.1.1/zephyr/boards/nordic/nrf9151dk/nrf9151dk_nrf9151_defconfig'
    Merged configuration 'C:/GTdev/Nordic/serial_modem/project/app/sysbuild/mcuboot/prj.conf'
    Merged configuration 'C:/ncs/v3.1.1/nrf/modules/mcuboot/tfm.conf'
    Merged configuration 'C:/GTdev/Nordic/serial_modem/project/app/build/mcuboot/zephyr/.config.sysbuild'
    
    
    error: Aborting due to Kconfig warnings

  • Hi,

    nrf9151-dk board.dts should be correctly found during build in serial_modem\zephyr\boards\nordic\nrf9151dk folder.

    Can you try to choose NCS v3.2.0-preview2 and Toolchain v3.1.0?
    I have tested building serial_modem with this build configuration successfully.

    Best regards,
    Dejan

  • Since my last message, I deleted my workspace and recreated the steps listed in the readme. In a fresh 3.1.0 environment the build succeeds. Possibly the first environment might have had an initial reference to 3.1.1. 

    Please go ahead and close this ticket.

Related