Fail to boot after upgrade to NCS 3.1.1

We have a NCS 3.0.2 app + MCU boot with OTA functionality on nRF54L15 (PCA10156 rev 0.9.3)

After upgrading to NCS 3.1.1 it doesn't boot anymore.

*** Booting MCUboot v2.1.0-dev-9b4ae4cbc9e2 ***
*** Using nRF Connect SDK v3.1.1-e2a97fe2578a ***
*** Using Zephyr OS v4.1.99-ff8f0c579eeb ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Image index: 0, Swap type: none
I: Bootloader chainload address offset: 0x14000
I: Image version: v0.1.4
I: Jumping to the first image slot
E: Protect mcuboot flash failed, cancel startup.

I tried with

nrfjprog --recover
west build --pristine -b nrf54l15dk/nrf54l15/cpuapp/ns --sysbuild x:/path/to/project
Flash
west ncs-provision upload -s nrf54l15 -k pk.pem
Reboot

Key provisioning is successful. But I get the same error as above. 

After downgrade to NCS 3.0.2 it works again, so the problem is obviously related to upgrade NCS 3.1.1
So, what is wrong? How to fix this?

Parents
  • Hello,

    This error ''E: Protect mcuboot flash failed, cancel startup.'' is a common issue after upgrading to NCS 3.1.1 on nRF54L15. It is related to MCUboot handling flash protection (FPROTECT) and partition sizes in recent SDK versions.

    You can read this here Known issues.

    ''FPROTECT can support locking up to 62 KB of RRAM on nRF54L SoCs when used by immutable MCUboot. Either the partition declared for MCUboot or its size might be too large for using FPROTECT (depends on MCUboot configuration). Without access to MCUboot logs, this might be misrecognized as an application that is not working or starting''

    You need to check the MCUboot partition size and make sure that it does not exceed 62KB if FROTECT is enable; or disable FPROTECT in your configuration by setting  CONFIG_FPROTECT=n in your MCUboot prj.conf or sysbuild.conf.

    You can also configure the MCUboot partition size dynamically from the mcuboot.conf file; for example:

    CONFIG_PM_PARTITION_SIZE_MCUBOOT=0xF800

    After this, try to rebuild and flash the sample again. Let me know if it works or not.

    Thanks.

    BR
    Kazi

  • Hello!

    I am working on this issue with Igor. 

    Disabling FPROTECT works, however we need this feature.

    I have checked the partition sizes and MCUboot partition is 48kb. Do you have any other potential fixes.

    I am including the partition report and build logs. have also tried reducing mcuboot partition to 40kb and increasing it to 60kb both of which give the same error that Igor posted. I also tried to use dynamic partition allocation and that gives the same mcuboot flash failed error when i flash the device. Do you have any suggestion what might be wrong? I am also attaching the pm_static file that we are using.

    EMPTY_0:
      address: 0x162000
      end_address: 0x163000
      placement:
        after:
        - mcuboot_secondary
      region: flash_primary
      size: 0x1000
    app:
      address: 0x54000
      end_address: 0xbb000
      region: flash_primary
      size: 0x67000
    bootconf:
      address: 0xffd080
      end_address: 0xffd084
      region: bootconf
      size: 0x4
    mcuboot:
      address: 0x0
      end_address: 0xc000
      placement:
        align:
          end: 0x1000
        before:
        - mcuboot_primary
      region: flash_primary
      size: 0xc000
    mcuboot_pad:
      address: 0x14000
      end_address: 0x14800
      placement:
        before:
        - mcuboot_primary_app
      region: flash_primary
      size: 0x800
    mcuboot_primary:
      address: 0x14000
      end_address: 0xbb000
      orig_span: &id001
      - mcuboot_pad
      - tfm
      - app
      region: flash_primary
      sharers: 0x1
      size: 0xa7000
      span: *id001
    mcuboot_primary_app:
      address: 0x14800
      end_address: 0xbb000
      orig_span: &id002
      - app
      - tfm
      region: flash_primary
      size: 0xa6800
      span: *id002
    mcuboot_secondary:
      address: 0xbb000
      end_address: 0x162000
      placement:
        after:
        - mcuboot_primary
        align:
          start: 0x1000
      region: flash_primary
      share_size:
      - mcuboot_primary
      size: 0xa7000
    mcuboot_sram:
      address: 0x20000000
      end_address: 0x20013000
      orig_span: &id003
      - tfm_sram
      region: sram_primary
      size: 0x13000
      span: *id003
    nonsecure_storage:
      address: 0x163000
      end_address: 0x165000
      orig_span: &id004
      - settings_storage
      region: flash_primary
      size: 0x2000
      span: *id004
    otp:
      address: 0xffd500
      end_address: 0xffd9fc
      region: otp
      size: 0x4fc
    settings_storage:
      address: 0x163000
      end_address: 0x165000
      inside:
      - nonsecure_storage
      placement:
        after:
        - app
        align:
          start: 0x1000
        before:
        - end
      region: flash_primary
      size: 0x2000
    sram_nonsecure:
      address: 0x20013000
      end_address: 0x2002f000
      orig_span: &id005
      - sram_primary
      region: sram_primary
      size: 0x1c000
      span: *id005
    sram_primary:
      address: 0x20013000
      end_address: 0x2002f000
      region: sram_primary
      size: 0x1c000
    sram_secure:
      address: 0x20000000
      end_address: 0x20013000
      orig_span: &id006
      - tfm_sram
      region: sram_primary
      size: 0x13000
      span: *id006
    tfm:
      address: 0x14800
      end_address: 0x54000
      inside:
      - mcuboot_primary_app
      placement:
        before:
        - app
      region: flash_primary
      size: 0x3f800
    tfm_its:
      address: 0xc000
      end_address: 0xe000
      inside:
      - tfm_storage
      placement:
        before:
        - tfm_otp_nv_counters
      region: flash_primary
      size: 0x2000
    tfm_nonsecure:
      address: 0x54000
      end_address: 0xbb000
      orig_span: &id007
      - app
      region: flash_primary
      size: 0x67000
      span: *id007
    tfm_otp_nv_counters:
      address: 0xe000
      end_address: 0x10000
      inside:
      - tfm_storage
      placement:
        before:
        - tfm_ps
      region: flash_primary
      size: 0x2000
    tfm_ps:
      address: 0x10000
      end_address: 0x14000
      inside:
      - tfm_storage
      placement:
        after:
        - mcuboot
        - tfm_secure
      region: flash_primary
      size: 0x4000
    tfm_secure:
      address: 0x14000
      end_address: 0x54000
      orig_span: &id008
      - mcuboot_pad
      - tfm
      region: flash_primary
      size: 0x40000
      span: *id008
    tfm_sram:
      address: 0x20000000
      end_address: 0x20013000
      inside:
      - sram_secure
      placement:
        after:
        - start
      region: sram_primary
      size: 0x13000
    tfm_storage:
      address: 0xc000
      end_address: 0x14000
      orig_span: &id009
      - tfm_ps
      - tfm_its
      - tfm_otp_nv_counters
      region: flash_primary
      size: 0x8000
      span: *id009
    

    ninja partition_manager_report
    [1/1] cmd.exe /C "cd /D C:\Users\SimonVukadin\Documents\smartcup\build\_sysbuild && C:\ncs\toolchains...ts/partition_manager_report.py --input C:/Users/SimonVukadin/Documents/smartcup/build/partitions.yml" 
      bootconf (0x4 - 4B): 
    +-------------------------------+
    | 0xffd080: bootconf (0x4 - 4B) |
    +-------------------------------+
    
      flash_primary (0x165000 - 1428kB): 
    +--------------------------------------------------+
    | 0x0: mcuboot (0xc000 - 48kB)                     |
    +---0xc000: tfm_storage (0x8000 - 32kB)------------+
    | 0xc000: tfm_its (0x2000 - 8kB)                   |
    | 0xe000: tfm_otp_nv_counters (0x2000 - 8kB)       |
    | 0x10000: tfm_ps (0x4000 - 16kB)                  |
    +---0x14000: mcuboot_primary (0xa7000 - 668kB)-----+
    +---0x14000: tfm_secure (0x40000 - 256kB)----------+
    | 0x14000: mcuboot_pad (0x800 - 2kB)               |
    +---0x14800: mcuboot_primary_app (0xa6800 - 666kB)-+
    | 0x14800: tfm (0x3f800 - 254kB)                   |
    +---0x54000: tfm_nonsecure (0x67000 - 412kB)-------+
    | 0x54000: app (0x67000 - 412kB)                   |
    +--------------------------------------------------+
    | 0xbb000: mcuboot_secondary (0xa7000 - 668kB)     |
    | 0x162000: EMPTY_0 (0x1000 - 4kB)                 |
    +---0x163000: nonsecure_storage (0x2000 - 8kB)-----+
    | 0x163000: settings_storage (0x2000 - 8kB)        |
    +--------------------------------------------------+
    
      otp (0x4fc - 1kB): 
    +-----------------------------+
    | 0xffd500: otp (0x4fc - 1kB) |
    +-----------------------------+
    
      sram_primary (0x2f000 - 188kB): 
    +------------------------------------------------+
    +---0x20000000: mcuboot_sram (0x13000 - 76kB)----+
    +---0x20000000: sram_secure (0x13000 - 76kB)-----+
    | 0x20000000: tfm_sram (0x13000 - 76kB)          |
    +---0x20013000: sram_nonsecure (0x1c000 - 112kB)-+
    | 0x20013000: sram_primary (0x1c000 - 112kB)     |
    +------------------------------------------------+
     *  Executing task: nRF Connect: Build [pristine]: smartcup/build (active) 
    
    Building smartcup
    west build --build-dir c:/Users/SimonVukadin/Documents/smartcup/build c:/Users/SimonVukadin/Documents/smartcup --pristine --board nrf54l15dk/nrf54l15/cpuapp/ns --sysbuild --
    
    -- 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: nrf54l15dk, qualifiers: nrf54l15/cpuapp/ns
    Parsing C:/ncs/v3.1.1/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'C:/Users/SimonVukadin/Documents/smartcup/build/_sysbuild/empty.conf'
    Merged configuration 'c:/Users/SimonVukadin/Documents/smartcup/sysbuild.conf'
    Configuration saved to 'C:/Users/SimonVukadin/Documents/smartcup/build/zephyr/.config'
    Kconfig header saved to 'C:/Users/SimonVukadin/Documents/smartcup/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: nrf54l15dk, qualifiers: nrf54l15/cpuapp
    -- 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/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
    -- Found devicetree overlay: C:/ncs/v3.1.1/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Generated zephyr.dts: C:/Users/SimonVukadin/Documents/smartcup/build/mcuboot/zephyr/zephyr.dts
    -- Generated pickled edt: C:/Users/SimonVukadin/Documents/smartcup/build/mcuboot/zephyr/edt.pickle
    -- Generated devicetree_generated.h: C:/Users/SimonVukadin/Documents/smartcup/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
    
    warning: NRF_RTC_TIMER_USER_CHAN_COUNT (defined at
    C:/ncs/v3.1.1/zephyr/soc/nordic\nrf53\Kconfig.sync_rtc:24, soc/nordic\nrf53\Kconfig.sync_rtc:24,
    drivers/timer/Kconfig.nrf_rtc:20) was assigned the value '0' but got the value ''. Check these
    unsatisfied dependencies: ((NRF53_SYNC_RTC && SOC_SERIES_NRF53X && SOC_FAMILY_NORDIC_NRF) ||
    (NRF53_SYNC_RTC && SOC_SERIES_NRF53X && SOC_FAMILY_NORDIC_NRF) || (NRF_RTC_TIMER &&
    SYS_CLOCK_EXISTS)) (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_NRF_RTC_TIMER_USER_CHAN_COUNT and/or look
    up NRF_RTC_TIMER_USER_CHAN_COUNT 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.
    
    Parsing C:/ncs/v3.1.1/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v3.1.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig'
    Merged configuration 'C:/ncs/v3.1.1/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration 'C:/ncs/v3.1.1/bootloader/mcuboot/boot/zephyr/socs/nrf54l15_cpuapp.conf'
    Merged configuration 'C:/ncs/v3.1.1/nrf/modules/mcuboot/tfm.conf'
    Merged configuration 'C:/Users/SimonVukadin/Documents/smartcup/build/mcuboot/zephyr/.config.sysbuild'
    Configuration saved to 'C:/Users/SimonVukadin/Documents/smartcup/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/Users/SimonVukadin/Documents/smartcup/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (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: C:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    =========== Generating psa_crypto_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: False
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: False
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_config ===============
    =========== Generating psa_crypto_library_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: False
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: False
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_library_config ===============
    -- Found gen_kobject_list: C:/ncs/v3.1.1/zephyr/scripts/build/gen_kobject_list.py
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/SimonVukadin/Documents/smartcup/build/mcuboot
    --
       ******************************
       * Running CMake for smartcup *
       ******************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Users/SimonVukadin/Documents/smartcup
    -- 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: nrf54l15dk, qualifiers: nrf54l15/cpuapp/ns
    -- 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/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_ns.dts
    -- Generated zephyr.dts: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/zephyr.dts
    -- Generated pickled edt: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/edt.pickle
    -- Generated devicetree_generated.h: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/include/generated/zephyr/devicetree_generated.h
    
    warning: Deprecated symbol BT_CTLR is enabled.
    
    
    warning: Experimental symbol TFM_EXPERIMENTAL is enabled.
    
    
    warning: Experimental symbol BT_HCI_ERR_TO_STR is enabled.
    
    Parsing C:/ncs/v3.1.1/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v3.1.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_ns_defconfig'
    Merged configuration 'C:/Users/SimonVukadin/Documents/smartcup/prj.conf'
    Merged configuration 'C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/.config.sysbuild'
    Configuration saved to 'C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/.config'
    Kconfig header saved to 'C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (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: C:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    =========== Generating psa_crypto_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: True
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: True
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_config ===============
    =========== Generating psa_crypto_library_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: True
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: True
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_library_config ===============
    -- Found gen_kobject_list: C:/ncs/v3.1.1/zephyr/scripts/build/gen_kobject_list.py
    -- Including signing script: C:/ncs/v3.1.1/nrf/cmake/sysbuild/image_signing.cmake
    CMake Warning at C:/ncs/v3.1.1/zephyr/CMakeLists.txt:2232 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup
    -- Found partition manager static configuration : C:/Users/SimonVukadin/Documents/smartcup/pm_static.yml
    Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_pad' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_primary' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_primary_app' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_secondary' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_sram' is not included in the dynamic resolving since it is statically defined.
    Partition 'nonsecure_storage' is not included in the dynamic resolving since it is statically defined.
    Partition 'settings_storage' is not included in the dynamic resolving since it is statically defined.
    Partition 'sram_nonsecure' is not included in the dynamic resolving since it is statically defined.
    Partition 'sram_secure' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm_its' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm_nonsecure' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm_otp_nv_counters' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm_ps' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm_secure' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm_sram' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm_storage' is not included in the dynamic resolving since it is statically defined.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/SimonVukadin/Documents/smartcup/build
    ←[92m-- west build: building application
    [9/20] Performing build step for 'smartcup'
    [0/1] Re-running CMake...
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/Users/SimonVukadin/Documents/smartcup
    -- CMake version: 3.21.0
    -- 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: nrf54l15dk, qualifiers: nrf54l15/cpuapp/ns
    -- 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 BOARD.dts: C:/ncs/v3.1.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_ns.dts
    -- Generated zephyr.dts: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/zephyr.dts
    -- Generated pickled edt: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/edt.pickle
    -- Generated devicetree_generated.h: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/include/generated/zephyr/devicetree_generated.h
    
    warning: Deprecated symbol BT_CTLR is enabled.
    
    
    warning: Experimental symbol TFM_EXPERIMENTAL is enabled.
    
    
    warning: Experimental symbol BT_HCI_ERR_TO_STR is enabled.
    
    Parsing C:/ncs/v3.1.1/zephyr/Kconfig
    Loaded configuration 'C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/.config'
    Merged configuration 'C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/.config.sysbuild'
    No change to configuration in 'C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/.config'
    No change to Kconfig header in 'C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/include/generated/zephyr/autoconf.h'
    =========== Generating psa_crypto_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: True
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: True
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_config ===============
    =========== Generating psa_crypto_library_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: True
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: True
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_library_config ===============
    -- Found gen_kobject_list: C:/ncs/v3.1.1/zephyr/scripts/build/gen_kobject_list.py
    -- Including signing script: C:/ncs/v3.1.1/nrf/cmake/sysbuild/image_signing.cmake
    CMake Warning at C:/ncs/v3.1.1/zephyr/CMakeLists.txt:2232 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup
    [6/384] Generating include/generated/zephyr/version.h
    -- Zephyr version: 4.1.99 (C:/ncs/v3.1.1/zephyr), build: ncs-v3.1.1
    [12/384] Generating ../../tfm/CMakeCache.txt
    -- Found Git: C:/ncs/toolchains/c1a76fddb2/mingw64/bin/git.exe (found version "2.37.3.windows.1")
    -- 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: C:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/c1a76fddb2/opt/bin/python.exe (found version "3.12.4") found components: Interpreter
    -- 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
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/tfm
    [17/384] Performing build step for 'tfm'
    [108/235] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/core/hw_init.o
    C:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/hw_init.c:34:13: warning: 'nrf_cleanup_uarte' defined but not used [-Wunused-function]
       34 | static void nrf_cleanup_uarte(NRF_UARTE_Type * uarte_reg)
          |             ^~~~~~~~~~~~~~~~~
    [231/235] Linking C executable bin\tfm_s.axf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       72276 B       254 KB     27.79%
                 RAM:       50824 B        76 KB     65.31%
    [235/235] Linking C static library secure_fw\libtfm_s_veneers.a
    [19/384] Performing install step for 'tfm'
    -- Install configuration: "MinSizeRel"
    ----- Installing platform NS -----
    [384/384] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      334144 B       412 KB     79.20%
                 RAM:       89664 B       112 KB     78.18%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/zephyr.elf for board: nrf54l15dk
    image.py: sign the digest
    image.py: sign the digest
    [11/20] Performing build step for 'mcuboot'
    [6/271] Generating include/generated/zephyr/version.h
    -- Zephyr version: 4.1.99 (C:/ncs/v3.1.1/zephyr), build: ncs-v3.1.1
    [266/271] Linking C executable zephyr\zephyr_pre0.elf
    lto-wrapper.exe: warning: using serial compilation of 2 LTRANS jobs
    lto-wrapper.exe: note: see the '-flto' option documentation for more information
    [271/271] Linking C executable zephyr\zephyr.elf
    lto-wrapper.exe: warning: using serial compilation of 2 LTRANS jobs
    lto-wrapper.exe: note: see the '-flto' option documentation for more information
    Memory region         Used Size  Region Size  %age Used
               FLASH:       38340 B        48 KB     78.00%
                 RAM:       22176 B        76 KB     28.50%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from C:/Users/SimonVukadin/Documents/smartcup/build/mcuboot/zephyr/zephyr.elf for board: nrf54l15dk
    [20/20] Generating ../merged.hex
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Flash: smartcup/build (active) 
    
    . I 



Reply
  • Hello!

    I am working on this issue with Igor. 

    Disabling FPROTECT works, however we need this feature.

    I have checked the partition sizes and MCUboot partition is 48kb. Do you have any other potential fixes.

    I am including the partition report and build logs. have also tried reducing mcuboot partition to 40kb and increasing it to 60kb both of which give the same error that Igor posted. I also tried to use dynamic partition allocation and that gives the same mcuboot flash failed error when i flash the device. Do you have any suggestion what might be wrong? I am also attaching the pm_static file that we are using.

    EMPTY_0:
      address: 0x162000
      end_address: 0x163000
      placement:
        after:
        - mcuboot_secondary
      region: flash_primary
      size: 0x1000
    app:
      address: 0x54000
      end_address: 0xbb000
      region: flash_primary
      size: 0x67000
    bootconf:
      address: 0xffd080
      end_address: 0xffd084
      region: bootconf
      size: 0x4
    mcuboot:
      address: 0x0
      end_address: 0xc000
      placement:
        align:
          end: 0x1000
        before:
        - mcuboot_primary
      region: flash_primary
      size: 0xc000
    mcuboot_pad:
      address: 0x14000
      end_address: 0x14800
      placement:
        before:
        - mcuboot_primary_app
      region: flash_primary
      size: 0x800
    mcuboot_primary:
      address: 0x14000
      end_address: 0xbb000
      orig_span: &id001
      - mcuboot_pad
      - tfm
      - app
      region: flash_primary
      sharers: 0x1
      size: 0xa7000
      span: *id001
    mcuboot_primary_app:
      address: 0x14800
      end_address: 0xbb000
      orig_span: &id002
      - app
      - tfm
      region: flash_primary
      size: 0xa6800
      span: *id002
    mcuboot_secondary:
      address: 0xbb000
      end_address: 0x162000
      placement:
        after:
        - mcuboot_primary
        align:
          start: 0x1000
      region: flash_primary
      share_size:
      - mcuboot_primary
      size: 0xa7000
    mcuboot_sram:
      address: 0x20000000
      end_address: 0x20013000
      orig_span: &id003
      - tfm_sram
      region: sram_primary
      size: 0x13000
      span: *id003
    nonsecure_storage:
      address: 0x163000
      end_address: 0x165000
      orig_span: &id004
      - settings_storage
      region: flash_primary
      size: 0x2000
      span: *id004
    otp:
      address: 0xffd500
      end_address: 0xffd9fc
      region: otp
      size: 0x4fc
    settings_storage:
      address: 0x163000
      end_address: 0x165000
      inside:
      - nonsecure_storage
      placement:
        after:
        - app
        align:
          start: 0x1000
        before:
        - end
      region: flash_primary
      size: 0x2000
    sram_nonsecure:
      address: 0x20013000
      end_address: 0x2002f000
      orig_span: &id005
      - sram_primary
      region: sram_primary
      size: 0x1c000
      span: *id005
    sram_primary:
      address: 0x20013000
      end_address: 0x2002f000
      region: sram_primary
      size: 0x1c000
    sram_secure:
      address: 0x20000000
      end_address: 0x20013000
      orig_span: &id006
      - tfm_sram
      region: sram_primary
      size: 0x13000
      span: *id006
    tfm:
      address: 0x14800
      end_address: 0x54000
      inside:
      - mcuboot_primary_app
      placement:
        before:
        - app
      region: flash_primary
      size: 0x3f800
    tfm_its:
      address: 0xc000
      end_address: 0xe000
      inside:
      - tfm_storage
      placement:
        before:
        - tfm_otp_nv_counters
      region: flash_primary
      size: 0x2000
    tfm_nonsecure:
      address: 0x54000
      end_address: 0xbb000
      orig_span: &id007
      - app
      region: flash_primary
      size: 0x67000
      span: *id007
    tfm_otp_nv_counters:
      address: 0xe000
      end_address: 0x10000
      inside:
      - tfm_storage
      placement:
        before:
        - tfm_ps
      region: flash_primary
      size: 0x2000
    tfm_ps:
      address: 0x10000
      end_address: 0x14000
      inside:
      - tfm_storage
      placement:
        after:
        - mcuboot
        - tfm_secure
      region: flash_primary
      size: 0x4000
    tfm_secure:
      address: 0x14000
      end_address: 0x54000
      orig_span: &id008
      - mcuboot_pad
      - tfm
      region: flash_primary
      size: 0x40000
      span: *id008
    tfm_sram:
      address: 0x20000000
      end_address: 0x20013000
      inside:
      - sram_secure
      placement:
        after:
        - start
      region: sram_primary
      size: 0x13000
    tfm_storage:
      address: 0xc000
      end_address: 0x14000
      orig_span: &id009
      - tfm_ps
      - tfm_its
      - tfm_otp_nv_counters
      region: flash_primary
      size: 0x8000
      span: *id009
    

    ninja partition_manager_report
    [1/1] cmd.exe /C "cd /D C:\Users\SimonVukadin\Documents\smartcup\build\_sysbuild && C:\ncs\toolchains...ts/partition_manager_report.py --input C:/Users/SimonVukadin/Documents/smartcup/build/partitions.yml" 
      bootconf (0x4 - 4B): 
    +-------------------------------+
    | 0xffd080: bootconf (0x4 - 4B) |
    +-------------------------------+
    
      flash_primary (0x165000 - 1428kB): 
    +--------------------------------------------------+
    | 0x0: mcuboot (0xc000 - 48kB)                     |
    +---0xc000: tfm_storage (0x8000 - 32kB)------------+
    | 0xc000: tfm_its (0x2000 - 8kB)                   |
    | 0xe000: tfm_otp_nv_counters (0x2000 - 8kB)       |
    | 0x10000: tfm_ps (0x4000 - 16kB)                  |
    +---0x14000: mcuboot_primary (0xa7000 - 668kB)-----+
    +---0x14000: tfm_secure (0x40000 - 256kB)----------+
    | 0x14000: mcuboot_pad (0x800 - 2kB)               |
    +---0x14800: mcuboot_primary_app (0xa6800 - 666kB)-+
    | 0x14800: tfm (0x3f800 - 254kB)                   |
    +---0x54000: tfm_nonsecure (0x67000 - 412kB)-------+
    | 0x54000: app (0x67000 - 412kB)                   |
    +--------------------------------------------------+
    | 0xbb000: mcuboot_secondary (0xa7000 - 668kB)     |
    | 0x162000: EMPTY_0 (0x1000 - 4kB)                 |
    +---0x163000: nonsecure_storage (0x2000 - 8kB)-----+
    | 0x163000: settings_storage (0x2000 - 8kB)        |
    +--------------------------------------------------+
    
      otp (0x4fc - 1kB): 
    +-----------------------------+
    | 0xffd500: otp (0x4fc - 1kB) |
    +-----------------------------+
    
      sram_primary (0x2f000 - 188kB): 
    +------------------------------------------------+
    +---0x20000000: mcuboot_sram (0x13000 - 76kB)----+
    +---0x20000000: sram_secure (0x13000 - 76kB)-----+
    | 0x20000000: tfm_sram (0x13000 - 76kB)          |
    +---0x20013000: sram_nonsecure (0x1c000 - 112kB)-+
    | 0x20013000: sram_primary (0x1c000 - 112kB)     |
    +------------------------------------------------+
     *  Executing task: nRF Connect: Build [pristine]: smartcup/build (active) 
    
    Building smartcup
    west build --build-dir c:/Users/SimonVukadin/Documents/smartcup/build c:/Users/SimonVukadin/Documents/smartcup --pristine --board nrf54l15dk/nrf54l15/cpuapp/ns --sysbuild --
    
    -- 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: nrf54l15dk, qualifiers: nrf54l15/cpuapp/ns
    Parsing C:/ncs/v3.1.1/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'C:/Users/SimonVukadin/Documents/smartcup/build/_sysbuild/empty.conf'
    Merged configuration 'c:/Users/SimonVukadin/Documents/smartcup/sysbuild.conf'
    Configuration saved to 'C:/Users/SimonVukadin/Documents/smartcup/build/zephyr/.config'
    Kconfig header saved to 'C:/Users/SimonVukadin/Documents/smartcup/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: nrf54l15dk, qualifiers: nrf54l15/cpuapp
    -- 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/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
    -- Found devicetree overlay: C:/ncs/v3.1.1/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Generated zephyr.dts: C:/Users/SimonVukadin/Documents/smartcup/build/mcuboot/zephyr/zephyr.dts
    -- Generated pickled edt: C:/Users/SimonVukadin/Documents/smartcup/build/mcuboot/zephyr/edt.pickle
    -- Generated devicetree_generated.h: C:/Users/SimonVukadin/Documents/smartcup/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
    
    warning: NRF_RTC_TIMER_USER_CHAN_COUNT (defined at
    C:/ncs/v3.1.1/zephyr/soc/nordic\nrf53\Kconfig.sync_rtc:24, soc/nordic\nrf53\Kconfig.sync_rtc:24,
    drivers/timer/Kconfig.nrf_rtc:20) was assigned the value '0' but got the value ''. Check these
    unsatisfied dependencies: ((NRF53_SYNC_RTC && SOC_SERIES_NRF53X && SOC_FAMILY_NORDIC_NRF) ||
    (NRF53_SYNC_RTC && SOC_SERIES_NRF53X && SOC_FAMILY_NORDIC_NRF) || (NRF_RTC_TIMER &&
    SYS_CLOCK_EXISTS)) (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_NRF_RTC_TIMER_USER_CHAN_COUNT and/or look
    up NRF_RTC_TIMER_USER_CHAN_COUNT 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.
    
    Parsing C:/ncs/v3.1.1/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v3.1.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig'
    Merged configuration 'C:/ncs/v3.1.1/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration 'C:/ncs/v3.1.1/bootloader/mcuboot/boot/zephyr/socs/nrf54l15_cpuapp.conf'
    Merged configuration 'C:/ncs/v3.1.1/nrf/modules/mcuboot/tfm.conf'
    Merged configuration 'C:/Users/SimonVukadin/Documents/smartcup/build/mcuboot/zephyr/.config.sysbuild'
    Configuration saved to 'C:/Users/SimonVukadin/Documents/smartcup/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/Users/SimonVukadin/Documents/smartcup/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (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: C:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    =========== Generating psa_crypto_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: False
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: False
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_config ===============
    =========== Generating psa_crypto_library_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: False
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: False
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_library_config ===============
    -- Found gen_kobject_list: C:/ncs/v3.1.1/zephyr/scripts/build/gen_kobject_list.py
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/SimonVukadin/Documents/smartcup/build/mcuboot
    --
       ******************************
       * Running CMake for smartcup *
       ******************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Users/SimonVukadin/Documents/smartcup
    -- 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: nrf54l15dk, qualifiers: nrf54l15/cpuapp/ns
    -- 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/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_ns.dts
    -- Generated zephyr.dts: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/zephyr.dts
    -- Generated pickled edt: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/edt.pickle
    -- Generated devicetree_generated.h: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/include/generated/zephyr/devicetree_generated.h
    
    warning: Deprecated symbol BT_CTLR is enabled.
    
    
    warning: Experimental symbol TFM_EXPERIMENTAL is enabled.
    
    
    warning: Experimental symbol BT_HCI_ERR_TO_STR is enabled.
    
    Parsing C:/ncs/v3.1.1/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v3.1.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_ns_defconfig'
    Merged configuration 'C:/Users/SimonVukadin/Documents/smartcup/prj.conf'
    Merged configuration 'C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/.config.sysbuild'
    Configuration saved to 'C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/.config'
    Kconfig header saved to 'C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (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: C:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    =========== Generating psa_crypto_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: True
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: True
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_config ===============
    =========== Generating psa_crypto_library_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: True
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: True
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_library_config ===============
    -- Found gen_kobject_list: C:/ncs/v3.1.1/zephyr/scripts/build/gen_kobject_list.py
    -- Including signing script: C:/ncs/v3.1.1/nrf/cmake/sysbuild/image_signing.cmake
    CMake Warning at C:/ncs/v3.1.1/zephyr/CMakeLists.txt:2232 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup
    -- Found partition manager static configuration : C:/Users/SimonVukadin/Documents/smartcup/pm_static.yml
    Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_pad' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_primary' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_primary_app' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_secondary' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_sram' is not included in the dynamic resolving since it is statically defined.
    Partition 'nonsecure_storage' is not included in the dynamic resolving since it is statically defined.
    Partition 'settings_storage' is not included in the dynamic resolving since it is statically defined.
    Partition 'sram_nonsecure' is not included in the dynamic resolving since it is statically defined.
    Partition 'sram_secure' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm_its' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm_nonsecure' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm_otp_nv_counters' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm_ps' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm_secure' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm_sram' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm_storage' is not included in the dynamic resolving since it is statically defined.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/SimonVukadin/Documents/smartcup/build
    ←[92m-- west build: building application
    [9/20] Performing build step for 'smartcup'
    [0/1] Re-running CMake...
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/Users/SimonVukadin/Documents/smartcup
    -- CMake version: 3.21.0
    -- 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: nrf54l15dk, qualifiers: nrf54l15/cpuapp/ns
    -- 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 BOARD.dts: C:/ncs/v3.1.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_ns.dts
    -- Generated zephyr.dts: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/zephyr.dts
    -- Generated pickled edt: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/edt.pickle
    -- Generated devicetree_generated.h: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/include/generated/zephyr/devicetree_generated.h
    
    warning: Deprecated symbol BT_CTLR is enabled.
    
    
    warning: Experimental symbol TFM_EXPERIMENTAL is enabled.
    
    
    warning: Experimental symbol BT_HCI_ERR_TO_STR is enabled.
    
    Parsing C:/ncs/v3.1.1/zephyr/Kconfig
    Loaded configuration 'C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/.config'
    Merged configuration 'C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/.config.sysbuild'
    No change to configuration in 'C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/.config'
    No change to Kconfig header in 'C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/include/generated/zephyr/autoconf.h'
    =========== Generating psa_crypto_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: True
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: True
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_config ===============
    =========== Generating psa_crypto_library_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: True
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: True
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_library_config ===============
    -- Found gen_kobject_list: C:/ncs/v3.1.1/zephyr/scripts/build/gen_kobject_list.py
    -- Including signing script: C:/ncs/v3.1.1/nrf/cmake/sysbuild/image_signing.cmake
    CMake Warning at C:/ncs/v3.1.1/zephyr/CMakeLists.txt:2232 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup
    [6/384] Generating include/generated/zephyr/version.h
    -- Zephyr version: 4.1.99 (C:/ncs/v3.1.1/zephyr), build: ncs-v3.1.1
    [12/384] Generating ../../tfm/CMakeCache.txt
    -- Found Git: C:/ncs/toolchains/c1a76fddb2/mingw64/bin/git.exe (found version "2.37.3.windows.1")
    -- 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: C:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/c1a76fddb2/opt/bin/python.exe (found version "3.12.4") found components: Interpreter
    -- 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
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/tfm
    [17/384] Performing build step for 'tfm'
    [108/235] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/core/hw_init.o
    C:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/hw_init.c:34:13: warning: 'nrf_cleanup_uarte' defined but not used [-Wunused-function]
       34 | static void nrf_cleanup_uarte(NRF_UARTE_Type * uarte_reg)
          |             ^~~~~~~~~~~~~~~~~
    [231/235] Linking C executable bin\tfm_s.axf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       72276 B       254 KB     27.79%
                 RAM:       50824 B        76 KB     65.31%
    [235/235] Linking C static library secure_fw\libtfm_s_veneers.a
    [19/384] Performing install step for 'tfm'
    -- Install configuration: "MinSizeRel"
    ----- Installing platform NS -----
    [384/384] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      334144 B       412 KB     79.20%
                 RAM:       89664 B       112 KB     78.18%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from C:/Users/SimonVukadin/Documents/smartcup/build/smartcup/zephyr/zephyr.elf for board: nrf54l15dk
    image.py: sign the digest
    image.py: sign the digest
    [11/20] Performing build step for 'mcuboot'
    [6/271] Generating include/generated/zephyr/version.h
    -- Zephyr version: 4.1.99 (C:/ncs/v3.1.1/zephyr), build: ncs-v3.1.1
    [266/271] Linking C executable zephyr\zephyr_pre0.elf
    lto-wrapper.exe: warning: using serial compilation of 2 LTRANS jobs
    lto-wrapper.exe: note: see the '-flto' option documentation for more information
    [271/271] Linking C executable zephyr\zephyr.elf
    lto-wrapper.exe: warning: using serial compilation of 2 LTRANS jobs
    lto-wrapper.exe: note: see the '-flto' option documentation for more information
    Memory region         Used Size  Region Size  %age Used
               FLASH:       38340 B        48 KB     78.00%
                 RAM:       22176 B        76 KB     28.50%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from C:/Users/SimonVukadin/Documents/smartcup/build/mcuboot/zephyr/zephyr.elf for board: nrf54l15dk
    [20/20] Generating ../merged.hex
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Flash: smartcup/build (active) 
    
    . I 



Children
No Data
Related