This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Build error in cloud_client example for build_thingy91_nrf9160ns

Hi, I'm just a new user for nrf connect SDK. I use v1.5.0. When I try to build the solution on SES, I get this error. 

I saw a post like this also. But I don't know how to handle that could you help me. Same example has no build error and works for Actinius_Icarus board.

Thank you.

Error:

Building ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-mkdir’ from solution ‘build’ in configuration ‘Common’
Building ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-download’ from solution ‘build’ in configuration ‘Common’
Building ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-update’ from solution ‘build’ in configuration ‘Common’
Building ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-patch’ from solution ‘build’ in configuration ‘Common’
Building ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-configure’ from solution ‘build’ in configuration ‘Common’
Building ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build’ from solution ‘build’ in configuration ‘Common’
Combining ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build’
zephyr/zephyr_prebuilt.elf
\Users\edukenevr001\ncs\v1.5.0\toolchain\opt\bin\arm-none-eabi-gcc.exe zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj -o zephyr\zephyr_prebuilt.elf -Wl,-T zephyr/linker.cmd -Wl,-Map=C:/Users/edukenevr001/Desktop/Nordic/Nrf_Connect_Sdk_Projects/thingy91/cloud_client/build_thingy91_nrf9160ns/spm/zephyr/zephyr_prebuilt.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a zephyr/arch/arch/arm/core/aarch32/cortex_m/mpu/libarch__arm__core__aarch32__cortex_m__mpu.a zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/libarch__arm__core__aarch32__cortex_m__cmse.a zephyr/arch/arch/arm/core/aarch32/cortex_m/tz/libarch__arm__core__aarch32__cortex_m__tz.a zephyr/lib/libc/minimal/liblib__libc__minimal.a zephyr/lib/posix/liblib__posix.a zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/boards/boards/arm/thingy91_nrf9160/lib..__nrf__boards__arm__thingy91_nrf9160.a zephyr/drivers/i2c/libdrivers__i2c.a zephyr/drivers/serial/libdrivers__serial.a modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a modules/nrf/subsys/fw_info/lib..__nrf__subsys__fw_info.a modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a modules/nrfxlib/nrf_security/src/mbedtls/libmbedtls_base_vanilla.a modules/hal_nordic/libmodules__hal_nordic.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -L"c:/users/edukenevr001/ncs/v1.5.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/thumb/v8-m.main+fp/hard" -LC:/Users/edukenevr001/Desktop/Nordic/Nrf_Connect_Sdk_Projects/thingy91/cloud_client/build_thingy91_nrf9160ns/spm/zephyr -lgcc -Wl,--print-memory-usage zephyr/arch/common/libisr_tables.a modules/nrfxlib/nrf_security/src/mbedtls/shared/libmbedcrypto_shared.a modules/nrfxlib/nrf_security/src/mbedtls/cc310/libmbedcrypto_cc3xx.a C:/Users/edukenevr001/ncs/v1.5.0/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_platform_0.9.7.a -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -no-pie -Wl,-X -Wl,-N -Wl,--orphan-handling=warn -Wl,--out-implib=C:/Users/edukenevr001/Desktop/Nordic/Nrf_Connect_Sdk_Projects/thingy91/cloud_client/build_thingy91_nrf9160ns/spm/libspmsecureentries.a -Wl,--cmse-implib && cd ."
KB 48 KB 133.33%
B 64 KB 13.38%
B 2 KB 4.30c:/users/edukenevr001/ncs/v1.5.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: zephyr\zephyr_prebuilt.elf section `.gnu.sgstubs' will not fit in region `FLASH'
SPM and app are sharing an SPU region. Cannot partition flash correctly into secure and non-secure. Adjust partitions sizes so they are placed in separate regions.
region `FLASH' overflowed by 16384 bytes
ld returned 1 exit status
build stopped: subcommand failed.
Build failed

Parents Reply Children
  • After the pull request, now I'm having this issue to create project? create_nordic_project.py failed (1)

    Creating solution cloud_client.emProject
    C:/Users/edukenevr001/ncs/v1.5.0/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=thingy91_nrf9160ns -DBOARD_DIR=C:\Users\edukenevr001\ncs\v1.5.0\nrf\boards\arm\thingy91_nrf9160 -BC:\Users\edukenevr001\Desktop\Nordic\Nrf_Connect_Sdk_Projects\thingy91\cloud_client\build_thingy91_nrf9160ns -SC:\Users\edukenevr001\Desktop\Nordic\Nrf_Connect_Sdk_Projects\thingy91\cloud_client -DNCS_TOOLCHAIN_VERSION=1.5.0 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:\Users\edukenevr001\ncs\v1.5.0\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
    -- Application: C:/Users/edukenevr001/Desktop/Nordic/Nrf_Connect_Sdk_Projects/thingy91/cloud_client
    -- Zephyr version: 2.5.99 (C:/Users/edukenevr001/ncs/v1.5.0/zephyr)
    -- Found Python3: C:/Users/edukenevr001/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
    -- Configuring incomplete, errors occurred!
    Including boilerplate (Zephyr base): C:/Users/edukenevr001/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
    -- Using NCS Toolchain 1.5.0 for building. (C:/Users/edukenevr001/ncs/v1.5.0/toolchain/cmake)
    WARNING: west v0.10 or later is required by the manifest
    West version: v0.9.0
    Manifest file: C:\Users\edukenevr001\ncs\v1.5.0\nrf\west.yml
    This should work, but most commands won't.
    To silence this warning, upgrade west.
    CMake Error at C:/Users/edukenevr001/ncs/v1.5.0/zephyr/cmake/zephyr_module.cmake:61 (message):
    Traceback (most recent call last):

    File "C:\Users\edukenevr001\ncs\v1.5.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 1226, in __init__
    validate(source_data)
    File "C:\Users\edukenevr001\ncs\v1.5.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 420, in validate
    raise ManifestVersionError(min_version_str)

    west.manifest.ManifestVersionError: ('0.10', None)



    The above exception was the direct cause of the following exception:



    Traceback (most recent call last):

    File "C:/Users/edukenevr001/ncs/v1.5.0/zephyr/scripts/zephyr_module.py", line 378, in <module>
    main()
    File "C:/Users/edukenevr001/ncs/v1.5.0/zephyr/scripts/zephyr_module.py", line 283, in main
    manifest = Manifest.from_file()
    File "C:\Users\edukenevr001\ncs\v1.5.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 1084, in from_file
    return Manifest(**kwargs)
    File "C:\Users\edukenevr001\ncs\v1.5.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 1228, in __init__
    raise ManifestVersionError(mv.version, file=source_file) from mv

    west.manifest.ManifestVersionError: ('0.10',
    WindowsPath('C:/Users/edukenevr001/ncs/v1.5.0/nrf/west.yml'))

    Call Stack (most recent call first):
    C:/Users/edukenevr001/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake:183 (include)
    C:/Users/edukenevr001/ncs/v1.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
    C:/Users/edukenevr001/ncs/v1.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
    CMakeLists.txt:9 (find_package)



    error: cmake failed
    create_nordic_project.py failed (1)

  • Hi,

    You get the following warning

    evren.kenanoglu said:
    WARNING: west v0.10 or later is required by the manifest

     Could you try updating west and then reopen the project in SES? If you are using Toolchain Manager you can press the down button next to "Open IDE" and select "Update SDK" and "Update toolchain". You can also update west with the following command:

    pip3 install -U west

    If this does not solve your problem, could you try moving ncs to your C:/ folder instead? NCS has some problems with path lengths, and there has been times when people have experienced issues when having the ncs folder located under their user folder. Moving it to the C:/ folder has often solved these issues.

    Have you installed NCS manually or using the Toolchain Manager? If the latter, are you opening SES with the "Open IDE" button in Toolchain Manager?

    Best regards,

    Marte

Related