Compiling the rest fota examples give me errors

Hey,

I was trying to compile the nordic example nrf_cloud_rest_fota with Debug optons enabled. It gives me the error that the "TF-M non-secure address start is not aligned on SPU region size":

However, If I disable the Debug option it compiles. What am I doing wrong? 

I have not change anything, I just pulled the example and build it. Do I need to anything else? 

Thanks for the help!

OS: Windows

SDK: 2.3.0

IDE: Visual Studio Code

Hardware: nRF9160 Development Kid

  • Hi, 

    I can reproduce the issue and have reported it to the team. I would be back if I get more information. 

    Regards,
    Amanda H.

  • Hey, I am also receiving an Error to work with other FOTA applications. I tried to build full_modem_update, and the application_update. This is my build output: 

    Building full_modem_update
    west build --build-dir c:\ncs_workspace\full_modem_update\build c:\ncs_workspace\full_modem_update --pristine --board nrf9160dk_nrf9160_ns -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="c:/ncs_workspace/bme680;c:/ncs_workspace/mqtt_publisher;c:/ncs_workspace/SATELVL53L4CDA;c:/ncs_workspace/asset_tracker_v2;c:/ncs_workspace/mqtt;c:/ncs_workspace/blefund_less1_exer1;c:/ncs_workspace/blefund_less2_exer1;c:/ncs_workspace/blefund_less3_exer1;c:/ncs_workspace/blefund_less4_exer1;c:/ncs_workspace/blefund_less4_exer1_solution;c:/ncs_workspace/nrf_cloud_rest_fota;c:/ncs_workspace/blefund_less4_exer3;c:/ncs_workspace/full_modem_update"
    
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs_workspace/full_modem_update
    -- Found Python3: C:/toolchains/v2.3.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Cache files will be written to: C:/v2.3.0/zephyr/.cache
    -- Zephyr version: 3.2.99 (C:/v2.3.0/zephyr)
    -- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160_ns, Revision: 0.7.0
    -- Found host-tools: zephyr 0.15.2 (C:/toolchains/v2.3.0/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.15.2 (C:/toolchains/v2.3.0/opt/zephyr-sdk)
    -- Found Dtc: C:/toolchains/v2.3.0/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/v2.3.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
    -- Found devicetree overlay: C:/ncs_workspace/full_modem_update/boards/nrf9160dk_nrf9160_ns.overlay
    -- Generated zephyr.dts: C:/ncs_workspace/full_modem_update/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs_workspace/full_modem_update/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs_workspace/full_modem_update/build/zephyr/dts.cmake
    Parsing C:/ncs_workspace/full_modem_update/Kconfig
    Loaded configuration 'C:/v2.3.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig'
    Merged configuration 'C:/ncs_workspace/full_modem_update/prj.conf'
    Merged configuration 'C:/ncs_workspace/full_modem_update/boards/nrf9160dk_nrf9160_ns.conf'
    Configuration saved to 'C:/ncs_workspace/full_modem_update/build/zephyr/.config'
    Kconfig header saved to 'C:/ncs_workspace/full_modem_update/build/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 12.1.0
    -- The CXX compiler identification is GNU 12.1.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/v2.3.0/zephyr/CMakeLists.txt:1838 (message):
      __ASSERT() statements are globally ENABLED
    
    
    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    Dropping partition 'nonsecure_storage' since it is empty.
    -- Configuring done
    CMake Error at C:/v2.3.0/zephyr/cmake/modules/extensions.cmake:418 (add_library):
      Cannot find source file:
    
        ../common/src/update.c
    Call Stack (most recent call first):
      C:/v2.3.0/zephyr/cmake/modules/kernel.cmake:209 (zephyr_library_named)
      C:/v2.3.0/zephyr/cmake/modules/zephyr_default.cmake:117 (include)
      C:/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:9 (find_package)
    
    
    -- Generating done
    CMake Generate step failed.  Build files cannot be regenerated correctly.
    FATAL ERROR: command exited with status 1: 'c:\toolchains\v2.3.0\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\toolchains\v2.3.0\opt\bin\python.exe' '-Bc:\ncs_workspace\full_modem_update\build' -GNinja -DBOARD=nrf9160dk_nrf9160_ns -DNCS_TOOLCHAIN_VERSION:STRING=NONE '-DBOARD_ROOT:STRING=c:/ncs_workspace/bme680;c:/ncs_workspace/mqtt_publisher;c:/ncs_workspace/SATELVL53L4CDA;c:/ncs_workspace/asset_tracker_v2;c:/ncs_workspace/mqtt;c:/ncs_workspace/blefund_less1_exer1;c:/ncs_workspace/blefund_less2_exer1;c:/ncs_workspace/blefund_less3_exer1;c:/ncs_workspace/blefund_less4_exer1;c:/ncs_workspace/blefund_less4_exer1_solution;c:/ncs_workspace/nrf_cloud_rest_fota;c:/ncs_workspace/blefund_less4_exer3;c:/ncs_workspace/full_modem_update' '-Sc:\ncs_workspace\full_modem_update'
    
     *  Der Terminalprozess wurde mit folgendem Exitcode beendet: 1. 
     *  Das Terminal wird von Aufgaben wiederverwendet, drücken Sie zum Schließen eine beliebige Taste. 

    Did I forget to configure something?

    Amanda, Thanks for the help!!

  • How do I pull the fix from the repo from the VS Studio perspective? I don't see any GIT interfaces where I can "patch" it. In the toolchain manager, I have the latest version of the nRF Connect SDK v2.3.0. I created the example not too long ago. I assume that I have the latest version, right?

  • Hi, 

    The PR is merged. You can the latest state of development. See Get the nRF Connect SDK code to install the main version. Then, set the SDK to main version in the VS Code. 

     

    -Amanda H.

Related