Intermediate course, lesson 8 exercise 2 on nRF5340DK

Good morning,

I am trying to understand how the bootloader process works on the nRF5340, and working on the excercises from the intermediate course. The target at the moment is an nRF5340DK board, while a custom board based on the same processor is being developed.

I made it to step 5, not everything is crystal clear in detail but the general picture about the bootloader and firmware update process is OK. The exercise asks to build the application and flash it to the board, I used nrf5340dk_nrf5340_cpuapp as a build configuration, is this ok?

Anyway after flashing the code to the board step 6 asks to connect to the target USB connector, near the reset button... may be this is a stupid question but where is the board supposed to get power after that? Nothing happens and no virtual COM port is shown in Windows device manager (while the J-Link USB gives two as usual).

Thanks to anybody that will help, Nordic development environment and documentation is good but I couldn't figure this out.

Besides, did someone try the excercise 1 on the nrf5340DK? I tried it but got nothing out of the serial terminal.

Regards, Davide

Parents
  • Hello,

    Could you tell me which SDK version you are using here? This sample is working fine on my side. Have you tried any other sample from SDK? Please share the whole log here, use the insert tab to paste the whole log.

    Kind Regards,

    Abhijith

  • At the moment I am using Zephyr v3.6.99, toolchain v2.6.0, running on a nrf5340DK board

    Here are the logs. The first one is the output of a pristine build of the solved project, as is:

    (.venv) C:\Users\Davide\zephyrproject\projects\inter_less8_exer2_solution>west build
    [0/1] Re-running CMake...
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution
    -- CMake version: 3.21.0
    -- Cache files will be written to: C:/Users/Davide/zephyrproject/zephyr/.cache
    -- Zephyr version: 3.6.99 (C:/Users/Davide/zephyrproject/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    CMake Warning at C:/Users/Davide/zephyrproject/zephyr/cmake/modules/boards.cmake:110 (message):
      Deprecated BOARD=nrf5340dk_nrf5340_cpuapp_ns specified, board automatically
      changed to: nrf5340dk/nrf5340/cpuapp/ns.
    Call Stack (most recent call first):
      C:/Users/Davide/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:132 (include)
      C:/Users/Davide/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/Users/Davide/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
      CMakeLists.txt:7 (find_package)
    
    
    -- Board: nrf5340dk, qualifiers: nrf5340/cpuapp/ns
    -- Found host-tools: zephyr 0.16.5 (C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/Users/Davide/zephyrproject/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp_ns.dts
    -- Found devicetree overlay: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/app.overlay
    -- Generated zephyr.dts: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/dts.cmake
    
    C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/boards/nrf5340dk_nrf5340_cpuapp_ns.conf:4: warning: attempt to assign the value 'y' to the undefined symbol MCUBOOT_USE_ALL_AVAILABLE_RAMParsing C:/Users/Davide/zephyrproject/zephyr/Kconfig
    Loaded configuration 'C:/Users/Davide/zephyrproject/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp_ns_defconfig' 
    Merged configuration 'C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/prj.conf'
    Merged configuration 'C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/boards/nrf5340dk_nrf5340_cpuapp_ns.conf'
    
    
    error: Aborting due to Kconfig warnings
    
    CMake Error at C:/Users/Davide/zephyrproject/zephyr/cmake/modules/kconfig.cmake:391 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      C:/Users/Davide/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:132 (include)
      C:/Users/Davide/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/Users/Davide/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
      CMakeLists.txt:7 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/CMakeFiles/CMakeOutput.log".
    See also "C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/CMakeFiles/CMakeError.log".
    ←[31mFAILED: ←[0mbuild.ninja
    C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.exe --regenerate-during-build -SC:\Users\Davide\zephyrproject\projects\inter_less8_exer2_solution -BC:\Users\Davide\zephyrproject\projects\inter_less8_exer2_solution\build
    ninja: error: rebuilding 'build.ninja': subcommand failed
    ←[91mFATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'C:\Users\Davide\zephyrproject\projects\inter_less8_exer2_solution\build'
    ←[0m
    (.venv) C:\Users\Davide\zephyrproject\projects\inter_less8_exer2_solution>
    

    If I comment out the "CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM=y" line in nrf5340dk_nrf5340_cpuapp_ns.conf the output changes but the build still fails

    [0/1] Re-running CMake...
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution
    -- CMake version: 3.21.0
    -- Cache files will be written to: C:/Users/Davide/zephyrproject/zephyr/.cache
    -- Zephyr version: 3.6.99 (C:/Users/Davide/zephyrproject/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    CMake Warning at C:/Users/Davide/zephyrproject/zephyr/cmake/modules/boards.cmake:110 (message):
    Deprecated BOARD=nrf5340dk_nrf5340_cpuapp_ns specified, board automatically
    changed to: nrf5340dk/nrf5340/cpuapp/ns.
    Call Stack (most recent call first):
    C:/Users/Davide/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:132 (include)
    C:/Users/Davide/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    C:/Users/Davide/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
    CMakeLists.txt:7 (find_package)


    -- Board: nrf5340dk, qualifiers: nrf5340/cpuapp/ns
    -- Found host-tools: zephyr 0.16.5 (C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/Users/Davide/zephyrproject/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp_ns.dts
    -- Found devicetree overlay: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/app.overlay
    -- Generated zephyr.dts: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/dts.cmake
    Parsing C:/Users/Davide/zephyrproject/zephyr/Kconfig
    Loaded configuration 'C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/.config'
    No change to configuration in 'C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/.config'
    No change to Kconfig header in 'C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/include/generated/autoconf.h'
    CMake Warning at C:/Users/Davide/zephyrproject/zephyr/subsys/usb/device/CMakeLists.txt:22 (message):
    CONFIG_USB_DEVICE_VID has default value 0x2FE3.

    This value is only for testing and MUST be configured for USB products.


    CMake Warning at C:/Users/Davide/zephyrproject/zephyr/subsys/usb/device/CMakeLists.txt:28 (message):
    CONFIG_USB_DEVICE_PID has default value 0x100.

    This value is only for testing and MUST be configured for USB products.


    CMake Warning at C:/Users/Davide/zephyrproject/zephyr/modules/trusted-firmware-m/CMakeLists.txt:485 (message):
    TFM_DUMMY_PROVISIONING is enabled:

    The device will be provisioned using dummy keys and is NOT secure!
    This is not suitable for production


    -- Including signing script: C:/Users/Davide/zephyrproject/zephyr/cmake/mcuboot.cmake
    CMake Warning at C:/Users/Davide/zephyrproject/zephyr/cmake/mcuboot.cmake:28 (message):
    Neither CONFIG_MCUBOOT_GENERATE_UNSIGNED_IMAGE or
    CONFIG_MCUBOOT_SIGNATURE_KEY_FILE are set, the generated build will not be
    bootable by MCUboot unless it is signed manually/externally.
    Call Stack (most recent call first):
    C:/Users/Davide/zephyrproject/zephyr/cmake/mcuboot.cmake:189 (zephyr_mcuboot_tasks)
    C:/Users/Davide/zephyrproject/zephyr/CMakeLists.txt:1888 (include)


    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build
    [1/308] Generating ../../tfm/CMakeCache.txt
    FAILED: tfm/CMakeCache.txt C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/tfm/CMakeCache.txt
    cmd.exe /C "cd /D C:\Users\Davide\zephyrproject\projects\inter_less8_exer2_solution\build\tfm && C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.exe -GNinja -DTFM_TOOLCHAIN_FILE=C:/Users/Davide/zephyrproject/modules/tee/tf-m/trusted-firmware-m/toolchain_GNUARM.cmake -DCROSS_COMPILE=C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi -DCMAKE_BUILD_TYPE=MinSizeRel -DTFM_PLATFORM=C:/Users/Davide/zephyrproject/zephyr/modules/trusted-firmware-m/nordic/nrf5340_cpuapp -DCONFIG_TFM_BUILD_LOG_QUIET=ON -DSILENCE_TFM_VERSION_WARNING=ON -DCONFIG_TFM_MEMORY_USAGE_QUIET=OFF -DPython3_EXECUTABLE=C:/ncs/toolchains/cf2149caf2/opt/bin/python.exe -DCONFIG_TFM_SPM_BACKEND="IPC" -DBL2=TRUE -DMCUBOOT_IMAGE_VERSION_S=0.0.0+0 -DMCUBOOT_IMAGE_VERSION_NS=0.0.0+0 -DTFM_ISOLATION_LEVEL=1 -DMCUBOOT_IMAGE_NUMBER=2 -DTFM_DUMMY_PROVISIONING=ON -DTFM_EXCEPTION_INFO_DUMP=ON -DMCUBOOT_LOG_LEVEL=INFO -DTFM_PARTITION_LOG_LEVEL=TFM_PARTITION_LOG_LEVEL_INFO -DTFM_SPM_LOG_LEVEL=TFM_SPM_LOG_LEVEL_INFO -DTFM_PARTITION_NS_AGENT_MAILBOX=OFF -DTFM_PARTITION_PROTECTED_STORAGE=ON -DTFM_PARTITION_INTERNAL_TRUSTED_STORAGE=ON -DTFM_PARTITION_CRYPTO=ON -DTFM_PARTITION_PLATFORM=ON -DTFM_PARTITION_INITIAL_ATTESTATION=OFF -DTFM_PARTITION_FIRMWARE_UPDATE=OFF -DMCUBOOT_PATH=C:/Users/Davide/zephyrproject/bootloader/mcuboot -DCONFIG_TFM_ENABLE_FP=OFF -DHAL_NORDIC_PATH=C:/Users/Davide/zephyrproject/modules/hal/nordic -DZEPHYR_BASE=C:/Users/Davide/zephyrproject/zephyr -DNRF_NS_STORAGE=y -DMBEDCRYPTO_PATH=C:/Users/Davide/zephyrproject/modules/crypto/mbedtls -DPSA_ARCH_TESTS_PATH=C:/Users/Davide/zephyrproject/modules/tee/tf-m/trusted-firmware-m/../psa-arch-tests C:/Users/Davide/zephyrproject/modules/tee/tf-m/trusted-firmware-m"
    fatal: detected dubious ownership in repository at 'C:/Users/Davide/zephyrproject/modules/tee/tf-m/trusted-firmware-m'
    'C:/Users/Davide/zephyrproject/modules/tee/tf-m/trusted-firmware-m' is owned by:
    BUILTIN/Administrators (S-1-5-32-544)
    but the current user is:
    IPPOCRATE/Davide (S-1-5-21-3087781598-2221732471-1810239106-1001)
    To add an exception for this directory, call:

    git config --global --add safe.directory C:/Users/Davide/zephyrproject/modules/tee/tf-m/trusted-firmware-m
    CMake Error at cmake/version.cmake:19 (string):
    string sub-command FIND requires 3 or 4 parameters.
    Call Stack (most recent call first):
    CMakeLists.txt:22 (include)


    CMake Error at cmake/version.cmake:25 (string):
    string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
    command.
    Call Stack (most recent call first):
    CMakeLists.txt:22 (include)


    CMake Error at cmake/version.cmake:27 (string):
    string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
    command.
    Call Stack (most recent call first):
    CMakeLists.txt:22 (include)


    CMake Error at cmake/version.cmake:28 (string):
    string sub-command REGEX, mode MATCH needs at least 5 arguments total to
    command.
    Call Stack (most recent call first):
    CMakeLists.txt:22 (include)


    CMake Warning at cmake/version.cmake:32 (message):
    TFM_VERSION_MANUAL mismatches to actual TF-M version. Please update
    TFM_VERSION_MANUAL in cmake/version.cmake
    Call Stack (most recent call first):
    CMakeLists.txt:22 (include)


    CMake Warning at CMakeLists.txt:49 (project):
    VERSION keyword not followed by a value or was followed by a value that
    expanded to nothing.


    -- Could NOT find Threads (missing: Threads_FOUND)
    -- Could NOT find Threads (missing: Threads_FOUND)
    -- Configuring incomplete, errors occurred!
    See also "C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/tfm/CMakeFiles/CMakeOutput.log".
    See also "C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/tfm/CMakeFiles/CMakeError.log".
    [2/308] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'C:\Users\Davide\zephyrproject\projects\inter_less8_exer2_solution\build'

    Sorry I had to copy/paste output here because inserting it as code (as I did for the other one) for some reason does not work Disappointed

Reply
  • At the moment I am using Zephyr v3.6.99, toolchain v2.6.0, running on a nrf5340DK board

    Here are the logs. The first one is the output of a pristine build of the solved project, as is:

    (.venv) C:\Users\Davide\zephyrproject\projects\inter_less8_exer2_solution>west build
    [0/1] Re-running CMake...
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution
    -- CMake version: 3.21.0
    -- Cache files will be written to: C:/Users/Davide/zephyrproject/zephyr/.cache
    -- Zephyr version: 3.6.99 (C:/Users/Davide/zephyrproject/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    CMake Warning at C:/Users/Davide/zephyrproject/zephyr/cmake/modules/boards.cmake:110 (message):
      Deprecated BOARD=nrf5340dk_nrf5340_cpuapp_ns specified, board automatically
      changed to: nrf5340dk/nrf5340/cpuapp/ns.
    Call Stack (most recent call first):
      C:/Users/Davide/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:132 (include)
      C:/Users/Davide/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/Users/Davide/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
      CMakeLists.txt:7 (find_package)
    
    
    -- Board: nrf5340dk, qualifiers: nrf5340/cpuapp/ns
    -- Found host-tools: zephyr 0.16.5 (C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/Users/Davide/zephyrproject/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp_ns.dts
    -- Found devicetree overlay: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/app.overlay
    -- Generated zephyr.dts: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/dts.cmake
    
    C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/boards/nrf5340dk_nrf5340_cpuapp_ns.conf:4: warning: attempt to assign the value 'y' to the undefined symbol MCUBOOT_USE_ALL_AVAILABLE_RAMParsing C:/Users/Davide/zephyrproject/zephyr/Kconfig
    Loaded configuration 'C:/Users/Davide/zephyrproject/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp_ns_defconfig' 
    Merged configuration 'C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/prj.conf'
    Merged configuration 'C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/boards/nrf5340dk_nrf5340_cpuapp_ns.conf'
    
    
    error: Aborting due to Kconfig warnings
    
    CMake Error at C:/Users/Davide/zephyrproject/zephyr/cmake/modules/kconfig.cmake:391 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      C:/Users/Davide/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:132 (include)
      C:/Users/Davide/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/Users/Davide/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
      CMakeLists.txt:7 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/CMakeFiles/CMakeOutput.log".
    See also "C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/CMakeFiles/CMakeError.log".
    ←[31mFAILED: ←[0mbuild.ninja
    C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.exe --regenerate-during-build -SC:\Users\Davide\zephyrproject\projects\inter_less8_exer2_solution -BC:\Users\Davide\zephyrproject\projects\inter_less8_exer2_solution\build
    ninja: error: rebuilding 'build.ninja': subcommand failed
    ←[91mFATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'C:\Users\Davide\zephyrproject\projects\inter_less8_exer2_solution\build'
    ←[0m
    (.venv) C:\Users\Davide\zephyrproject\projects\inter_less8_exer2_solution>
    

    If I comment out the "CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM=y" line in nrf5340dk_nrf5340_cpuapp_ns.conf the output changes but the build still fails

    [0/1] Re-running CMake...
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution
    -- CMake version: 3.21.0
    -- Cache files will be written to: C:/Users/Davide/zephyrproject/zephyr/.cache
    -- Zephyr version: 3.6.99 (C:/Users/Davide/zephyrproject/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    CMake Warning at C:/Users/Davide/zephyrproject/zephyr/cmake/modules/boards.cmake:110 (message):
    Deprecated BOARD=nrf5340dk_nrf5340_cpuapp_ns specified, board automatically
    changed to: nrf5340dk/nrf5340/cpuapp/ns.
    Call Stack (most recent call first):
    C:/Users/Davide/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:132 (include)
    C:/Users/Davide/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    C:/Users/Davide/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
    CMakeLists.txt:7 (find_package)


    -- Board: nrf5340dk, qualifiers: nrf5340/cpuapp/ns
    -- Found host-tools: zephyr 0.16.5 (C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/Users/Davide/zephyrproject/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp_ns.dts
    -- Found devicetree overlay: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/app.overlay
    -- Generated zephyr.dts: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/dts.cmake
    Parsing C:/Users/Davide/zephyrproject/zephyr/Kconfig
    Loaded configuration 'C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/.config'
    No change to configuration in 'C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/.config'
    No change to Kconfig header in 'C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/zephyr/include/generated/autoconf.h'
    CMake Warning at C:/Users/Davide/zephyrproject/zephyr/subsys/usb/device/CMakeLists.txt:22 (message):
    CONFIG_USB_DEVICE_VID has default value 0x2FE3.

    This value is only for testing and MUST be configured for USB products.


    CMake Warning at C:/Users/Davide/zephyrproject/zephyr/subsys/usb/device/CMakeLists.txt:28 (message):
    CONFIG_USB_DEVICE_PID has default value 0x100.

    This value is only for testing and MUST be configured for USB products.


    CMake Warning at C:/Users/Davide/zephyrproject/zephyr/modules/trusted-firmware-m/CMakeLists.txt:485 (message):
    TFM_DUMMY_PROVISIONING is enabled:

    The device will be provisioned using dummy keys and is NOT secure!
    This is not suitable for production


    -- Including signing script: C:/Users/Davide/zephyrproject/zephyr/cmake/mcuboot.cmake
    CMake Warning at C:/Users/Davide/zephyrproject/zephyr/cmake/mcuboot.cmake:28 (message):
    Neither CONFIG_MCUBOOT_GENERATE_UNSIGNED_IMAGE or
    CONFIG_MCUBOOT_SIGNATURE_KEY_FILE are set, the generated build will not be
    bootable by MCUboot unless it is signed manually/externally.
    Call Stack (most recent call first):
    C:/Users/Davide/zephyrproject/zephyr/cmake/mcuboot.cmake:189 (zephyr_mcuboot_tasks)
    C:/Users/Davide/zephyrproject/zephyr/CMakeLists.txt:1888 (include)


    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build
    [1/308] Generating ../../tfm/CMakeCache.txt
    FAILED: tfm/CMakeCache.txt C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/tfm/CMakeCache.txt
    cmd.exe /C "cd /D C:\Users\Davide\zephyrproject\projects\inter_less8_exer2_solution\build\tfm && C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.exe -GNinja -DTFM_TOOLCHAIN_FILE=C:/Users/Davide/zephyrproject/modules/tee/tf-m/trusted-firmware-m/toolchain_GNUARM.cmake -DCROSS_COMPILE=C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi -DCMAKE_BUILD_TYPE=MinSizeRel -DTFM_PLATFORM=C:/Users/Davide/zephyrproject/zephyr/modules/trusted-firmware-m/nordic/nrf5340_cpuapp -DCONFIG_TFM_BUILD_LOG_QUIET=ON -DSILENCE_TFM_VERSION_WARNING=ON -DCONFIG_TFM_MEMORY_USAGE_QUIET=OFF -DPython3_EXECUTABLE=C:/ncs/toolchains/cf2149caf2/opt/bin/python.exe -DCONFIG_TFM_SPM_BACKEND="IPC" -DBL2=TRUE -DMCUBOOT_IMAGE_VERSION_S=0.0.0+0 -DMCUBOOT_IMAGE_VERSION_NS=0.0.0+0 -DTFM_ISOLATION_LEVEL=1 -DMCUBOOT_IMAGE_NUMBER=2 -DTFM_DUMMY_PROVISIONING=ON -DTFM_EXCEPTION_INFO_DUMP=ON -DMCUBOOT_LOG_LEVEL=INFO -DTFM_PARTITION_LOG_LEVEL=TFM_PARTITION_LOG_LEVEL_INFO -DTFM_SPM_LOG_LEVEL=TFM_SPM_LOG_LEVEL_INFO -DTFM_PARTITION_NS_AGENT_MAILBOX=OFF -DTFM_PARTITION_PROTECTED_STORAGE=ON -DTFM_PARTITION_INTERNAL_TRUSTED_STORAGE=ON -DTFM_PARTITION_CRYPTO=ON -DTFM_PARTITION_PLATFORM=ON -DTFM_PARTITION_INITIAL_ATTESTATION=OFF -DTFM_PARTITION_FIRMWARE_UPDATE=OFF -DMCUBOOT_PATH=C:/Users/Davide/zephyrproject/bootloader/mcuboot -DCONFIG_TFM_ENABLE_FP=OFF -DHAL_NORDIC_PATH=C:/Users/Davide/zephyrproject/modules/hal/nordic -DZEPHYR_BASE=C:/Users/Davide/zephyrproject/zephyr -DNRF_NS_STORAGE=y -DMBEDCRYPTO_PATH=C:/Users/Davide/zephyrproject/modules/crypto/mbedtls -DPSA_ARCH_TESTS_PATH=C:/Users/Davide/zephyrproject/modules/tee/tf-m/trusted-firmware-m/../psa-arch-tests C:/Users/Davide/zephyrproject/modules/tee/tf-m/trusted-firmware-m"
    fatal: detected dubious ownership in repository at 'C:/Users/Davide/zephyrproject/modules/tee/tf-m/trusted-firmware-m'
    'C:/Users/Davide/zephyrproject/modules/tee/tf-m/trusted-firmware-m' is owned by:
    BUILTIN/Administrators (S-1-5-32-544)
    but the current user is:
    IPPOCRATE/Davide (S-1-5-21-3087781598-2221732471-1810239106-1001)
    To add an exception for this directory, call:

    git config --global --add safe.directory C:/Users/Davide/zephyrproject/modules/tee/tf-m/trusted-firmware-m
    CMake Error at cmake/version.cmake:19 (string):
    string sub-command FIND requires 3 or 4 parameters.
    Call Stack (most recent call first):
    CMakeLists.txt:22 (include)


    CMake Error at cmake/version.cmake:25 (string):
    string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
    command.
    Call Stack (most recent call first):
    CMakeLists.txt:22 (include)


    CMake Error at cmake/version.cmake:27 (string):
    string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
    command.
    Call Stack (most recent call first):
    CMakeLists.txt:22 (include)


    CMake Error at cmake/version.cmake:28 (string):
    string sub-command REGEX, mode MATCH needs at least 5 arguments total to
    command.
    Call Stack (most recent call first):
    CMakeLists.txt:22 (include)


    CMake Warning at cmake/version.cmake:32 (message):
    TFM_VERSION_MANUAL mismatches to actual TF-M version. Please update
    TFM_VERSION_MANUAL in cmake/version.cmake
    Call Stack (most recent call first):
    CMakeLists.txt:22 (include)


    CMake Warning at CMakeLists.txt:49 (project):
    VERSION keyword not followed by a value or was followed by a value that
    expanded to nothing.


    -- Could NOT find Threads (missing: Threads_FOUND)
    -- Could NOT find Threads (missing: Threads_FOUND)
    -- Configuring incomplete, errors occurred!
    See also "C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/tfm/CMakeFiles/CMakeOutput.log".
    See also "C:/Users/Davide/zephyrproject/projects/inter_less8_exer2_solution/build/tfm/CMakeFiles/CMakeError.log".
    [2/308] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'C:\Users\Davide\zephyrproject\projects\inter_less8_exer2_solution\build'

    Sorry I had to copy/paste output here because inserting it as code (as I did for the other one) for some reason does not work Disappointed

Children
No Data
Related