Enabling logs in Mbed TLS

Hello! I am trying to monitor mbedtls heap usage in the azure_iot_hub sample (v2.8.0), building for nrf7002dk/nrf5340/cpuapp/ns. I can see in modules/crypto/mbedtls/library/memory_buffer_alloc.c that there is already some code that keeps track how many bytes are allocated, so the only question is how to enable it.


I would expect that adding below options to the prj.conf would work, however I get a linker error related to the memory allocator.

CONFIG_MBEDTLS_DEBUG=y 
CONFIG_MBEDTLS_MEMORY_DEBUG=y CONFIG_MBEDTLS_LOG_LEVEL_DBG=y
/home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld: /home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/lib/thumb/v8-m.main/nofp/libnosys.a(sbrk.o): in function `_sbrk':
sbrk.c:(.text._sbrk+0x1c): undefined reference to `end'
Memory region         Used Size  Region Size  %age Used
           FLASH:      129980 B     130560 B     99.56%
             RAM:       39072 B        48 KB     79.49%

The above error happens in the tf-m build.

After seeing the above error I limited my effort to just get mbedtls logs working. In nrf/applications/serial_lte_modem/overlay-native_tls.conf I have found the following commented block:

# Enable Mbed TLS logs
#CONFIG_MBEDTLS_DEBUG=y
#CONFIG_MBEDTLS_DEBUG_C=y
#CONFIG_MBEDTLS_DEBUG_LEVEL=3

I uncommented the lines and build the mentioned application with west build -b nrf9160dk/nrf9160/ns -- -DEXTRA_CONF_FILE=overlay-native_tls.conf

In that case I got the following error:

-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: /home/user/ncs/toolchains/b81a7cd864/usr/local/bin/python3.12 (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /home/user/.cache/zephyr
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf9160dk, Revision: 0.14.0, qualifiers: nrf9160/ns
Parsing /home/user/workdir/zephyr/share/sysbuild/Kconfig
Loaded configuration '/home/user/workdir/nrf/applications/serial_lte_modem/build/_sysbuild/empty.conf'
Merged configuration '/home/user/workdir/nrf/applications/serial_lte_modem/build/_sysbuild/empty.conf'
Merged configuration '/home/user/workdir/nrf/applications/serial_lte_modem/sysbuild.conf'
Configuration saved to '/home/user/workdir/nrf/applications/serial_lte_modem/build/zephyr/.config'
Kconfig header saved to '/home/user/workdir/nrf/applications/serial_lte_modem/build/_sysbuild/autoconf.h'
--
   *****************************
   * Running CMake for mcuboot *
   *****************************

Loading Zephyr default modules (Zephyr base).
-- Application: /home/user/workdir/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.21.0
-- Found Python3: /home/user/ncs/toolchains/b81a7cd864/usr/local/bin/python (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /home/user/.cache/zephyr
-- Zephyr version: 3.7.99 (/home/user/workdir/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf9160dk, Revision: 0.14.0, qualifiers: nrf9160
-- Found host-tools: zephyr 0.16.8 (/home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.8 (/home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk)
-- Found Dtc: /home/user/ncs/toolchains/b81a7cd864/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/user/workdir/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160.dts
-- Found devicetree overlay: /home/user/workdir/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_0_14_0.overlay
-- Found devicetree overlay: /home/user/workdir/nrf/applications/serial_lte_modem/sysbuild/mcuboot/app.overlay
-- Generated zephyr.dts: /home/user/workdir/nrf/applications/serial_lte_modem/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/user/workdir/nrf/applications/serial_lte_modem/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /home/user/workdir/nrf/applications/serial_lte_modem/build/mcuboot/zephyr/dts.cmake

warning: MBEDTLS_CFG_FILE (defined at /home/user/workdir/bootloader/mcuboot/boot/zephyr/Kconfig:367,
/home/user/workdir/nrf/subsys/nrf_security/Kconfig:66, modules/mbedtls/Kconfig:58,
modules/mbedtls/Kconfig:58) was assigned the value 'mcuboot-mbedtls-cfg.h' but got the value ''.
Check these unsatisfied dependencies: (MBEDTLS || NRF_SECURITY || (MBEDTLS_BUILTIN && MBEDTLS) ||
(MBEDTLS_BUILTIN && MBEDTLS && 0)) (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MBEDTLS_CFG_FILE and/or look up
MBEDTLS_CFG_FILE 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 /home/user/workdir/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/home/user/workdir/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_defconfig'
Merged configuration '/home/user/workdir/nrf/applications/serial_lte_modem/sysbuild/mcuboot/prj.conf'
Merged configuration '/home/user/workdir/nrf/modules/mcuboot/tfm.conf'
Merged configuration '/home/user/workdir/nrf/modules/mcuboot/fih_low_enable.conf'
Merged configuration '/home/user/workdir/nrf/applications/serial_lte_modem/build/mcuboot/zephyr/.config.sysbuild'
Configuration saved to '/home/user/workdir/nrf/applications/serial_lte_modem/build/mcuboot/zephyr/.config'
Kconfig header saved to '/home/user/workdir/nrf/applications/serial_lte_modem/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: /home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (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: /home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Setting build type to 'MinSizeRel' as none was specified.
-- Using ccache: /home/user/ncs/toolchains/b81a7cd864/usr/bin/ccache
CMake Warning at /home/user/workdir/zephyr/CMakeLists.txt:952 (message):
  No SOURCES given to Zephyr library: drivers__console

  Excluding target from build.


MCUBoot bootloader key file: /home/user/workdir/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/workdir/nrf/applications/serial_lte_modem/build/mcuboot
--
   **************************************
   * Running CMake for serial_lte_modem *
   **************************************

Loading Zephyr default modules (Zephyr base).
-- Application: /home/user/workdir/nrf/applications/serial_lte_modem
-- CMake version: 3.21.0
-- Found Python3: /home/user/ncs/toolchains/b81a7cd864/usr/local/bin/python (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /home/user/.cache/zephyr
-- Zephyr version: 3.7.99 (/home/user/workdir/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf9160dk, Revision: 0.14.0, qualifiers: nrf9160/ns
-- Found host-tools: zephyr 0.16.8 (/home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.8 (/home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk)
-- Found Dtc: /home/user/ncs/toolchains/b81a7cd864/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/user/workdir/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_ns.dts
-- Found devicetree overlay: /home/user/workdir/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_ns_0_14_0.overlay
-- Found devicetree overlay: /home/user/workdir/nrf/applications/serial_lte_modem/boards/nrf9160dk_nrf9160_ns.overlay
-- Found devicetree overlay: /home/user/workdir/nrf/applications/serial_lte_modem/boards/nrf9160dk_nrf9160_ns_0_14_0.overlay
-- Generated zephyr.dts: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/dts.cmake

warning: Deprecated symbol MBEDTLS_LEGACY_CRYPTO_C is enabled.


warning: Deprecated symbol POSIX_CLOCK is enabled.


warning: Deprecated symbol NET_SOCKETS_POSIX_NAMES is enabled.


warning: Experimental symbol TFTP_LIB is enabled.

Parsing /home/user/workdir/nrf/applications/serial_lte_modem/Kconfig
Loaded configuration '/home/user/workdir/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_ns_defconfig'
Merged configuration '/home/user/workdir/nrf/applications/serial_lte_modem/prj.conf'
Merged configuration '/home/user/workdir/nrf/applications/serial_lte_modem/boards/nrf9160dk_nrf9160_ns.conf'
Merged configuration '/home/user/workdir/nrf/applications/serial_lte_modem/overlay-native_tls.conf'
Merged configuration '/home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/.config.sysbuild'
Configuration saved to '/home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/.config'
Kconfig header saved to '/home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: /home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (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: /home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
=========== 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: False
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: False
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: False
Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Backup: CONFIG_MBEDTLS_THREADING: False
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: False
Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Restore: CONFIG_MBEDTLS_THREADING: False
Restore: CONFIG_MBEDTLS_THREADING_ALT: False
=========== End psa_crypto_library_config ===============
-- Setting build type to 'MinSizeRel' as none was specified.
-- Using ccache: /home/user/ncs/toolchains/b81a7cd864/usr/bin/ccache
-- Including signing script: /home/user/workdir/nrf/cmake/sysbuild/image_signing.cmake
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem
CMake Warning at /home/user/workdir/nrf/cmake/sysbuild/partition_manager.cmake:106 (message):


        ---------------------------------------------------------------------
        --- WARNING: Using a bootloader without pm_static.yml.            ---
        --- There are cases where a deployed product can consist of       ---
        --- multiple images, and only a subset of these images can be     ---
        --- upgraded through a firmware update mechanism. In such cases,  ---
        --- the upgradable images must have partitions that are static    ---
        --- and are matching the partition map used by the bootloader     ---
        --- programmed onto the device.                                   ---
        ---------------------------------------------------------------------


Call Stack (most recent call first):
  /home/user/workdir/nrf/cmake/sysbuild/partition_manager.cmake:630 (partition_manager)
  /home/user/workdir/nrf/sysbuild/CMakeLists.txt:661 (include)
  cmake/modules/sysbuild_extensions.cmake:583 (nrf_POST_CMAKE)
  cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
  cmake/modules/sysbuild_images.cmake:23 (sysbuild_module_call)
  cmake/modules/sysbuild_default.cmake:20 (include)
  /home/user/workdir/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
  /home/user/workdir/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  /home/user/workdir/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
  template/CMakeLists.txt:10 (find_package)


Dropping partition 'nrf_modem_lib_trace' since its size is 0.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/workdir/nrf/applications/serial_lte_modem/build
-- west build: building application
[8/20] Performing build step for 'serial_lte_modem'
[0/1] Re-running CMake...
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: /home/user/workdir/nrf/applications/serial_lte_modem
-- CMake version: 3.21.0
-- Cache files will be written to: /home/user/.cache/zephyr
-- Zephyr version: 3.7.99 (/home/user/workdir/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf9160dk, Revision: 0.14.0, qualifiers: nrf9160/ns
-- Found host-tools: zephyr 0.16.8 (/home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.8 (/home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk)
-- Found BOARD.dts: /home/user/workdir/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_ns.dts
-- Found devicetree overlay: /home/user/workdir/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_ns_0_14_0.overlay
-- Found devicetree overlay: /home/user/workdir/nrf/applications/serial_lte_modem/boards/nrf9160dk_nrf9160_ns.overlay
-- Found devicetree overlay: /home/user/workdir/nrf/applications/serial_lte_modem/boards/nrf9160dk_nrf9160_ns_0_14_0.overlay
-- Generated zephyr.dts: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/dts.cmake

warning: Deprecated symbol MBEDTLS_LEGACY_CRYPTO_C is enabled.


warning: Deprecated symbol POSIX_CLOCK is enabled.


warning: Deprecated symbol NET_SOCKETS_POSIX_NAMES is enabled.


warning: Experimental symbol TFTP_LIB is enabled.

Parsing /home/user/workdir/nrf/applications/serial_lte_modem/Kconfig
Loaded configuration '/home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/.config'
Merged configuration '/home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/.config.sysbuild'
No change to configuration in '/home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/.config'
No change to Kconfig header in '/home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/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: False
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: False
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: False
Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Backup: CONFIG_MBEDTLS_THREADING: False
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: False
Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Restore: CONFIG_MBEDTLS_THREADING: False
Restore: CONFIG_MBEDTLS_THREADING_ALT: False
=========== End psa_crypto_library_config ===============
-- Using ccache: /home/user/ncs/toolchains/b81a7cd864/usr/bin/ccache
-- Including signing script: /home/user/workdir/nrf/cmake/sysbuild/image_signing.cmake
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem
[1/441] Preparing syscall dependency handling

[5/441] Generating include/generated/zephyr/version.h
-- Zephyr version: 3.7.99 (/home/user/workdir/zephyr), build: v3.7.99-ncs1
[11/441] Generating ../../tfm/CMakeCache.txt
CMake Warning at cmake/version.cmake:31 (message):
  TFM_VERSION: 2.1.1
Call Stack (most recent call first):
  CMakeLists.txt:13 (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:13 (include)


-- Found Git: /home/user/ncs/toolchains/b81a7cd864/usr/local/bin/git (found version "2.37.3")
-- 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: /home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Found Python3: /home/user/ncs/toolchains/b81a7cd864/usr/local/bin/python (found version "3.12.4") found components: Interpreter
-- Found Python3: /home/user/ncs/toolchains/b81a7cd864/usr/local/bin/python (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /home/user/.cache/zephyr
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm
[16/441] Performing build step for 'tfm'
[139/143] Linking C executable bin/tfm_s.axf
Memory region         Used Size  Region Size  %age Used
           FLASH:       31536 B      32256 B     97.77%
             RAM:       11852 B        32 KB     36.17%
[143/143] Linking C static library secure_fw/libtfm_s_veneers.a
[18/441] Performing install step for 'tfm'
-- Install configuration: "MinSizeRel"
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/tfm_ioctl_core_api.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/src/tfm_ioctl_core_ns_api.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/config_nordic_nrf_spe.cmake
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/driver/Driver_Common.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/driver/Driver_Flash.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/driver/Driver_USART.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/startup.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/startup_nrf91.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/nrfx_glue.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/pal_plat_test.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/pal_plat_test.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/startup.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/target_cfg.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/nrfx_config.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/CMakeLists.txt
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/config.cmake
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/native_drivers
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/native_drivers/spu.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/native_drivers/mpu_armv8m_drv.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/native_drivers/spu.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/native_drivers/mpu_armv8m_drv.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/cmsis_drivers
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/cmsis_drivers/Driver_USART.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/cmsis_drivers/Driver_Flash.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/common
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/common/nrf-pinctrl.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/common/nrfx_log.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/common/nrfx_glue.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/common/cmsis.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/common/tfm_hal_platform_common.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/nrfx
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/nrfx/nrfx.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/services
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/services/include
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/services/include/tfm_ioctl_core_api.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/services/include/tfm_platform_hal_ioctl.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/services/src
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/services/src/tfm_ioctl_core_s_api.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/services/src/tfm_ioctl_core_ns_api.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/services/src/tfm_platform_hal_ioctl.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/tests
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/core/tests/tfm_tests_config.cmake
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/linker_scripts/tfm_common_ns.ld
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/nrf91/nrfx_config_nrf91.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/nrf91/CMakeLists.txt
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/nrf91/config.cmake
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/nrf91/tests
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/nrf91/tests/psa_arch_tests_config.cmake
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/nrf91/partition
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/nrf91/partition/region_defs.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/nrf91/partition/flash_layout.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/CMakeLists.txt
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/cpuarch.cmake
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/common/nrf9160/cpuarch.cmake
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/config.cmake
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/../common/config.cmake
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/tests
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/tests/tfm_tests_config.cmake
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/tests/psa_arch_tests_config.cmake
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/bin
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/bin/tfm_s.axf
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/bin/tfm_s.hex
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/bin/tfm_s.map
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/bin/tfm_s.bin
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/bin/tfm_s.elf
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/lib/s_veneers.o
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/client.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/error.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa_manifest/sid.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/config_impl.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/tfm_veneers.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/tfm_ns_interface.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/tfm_ns_client_ext.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/config_tfm.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/config_base.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/tfm_psa_call_pack.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/framework_feature.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/build_info.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto_adjust_auto_enabled.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto_adjust_config_key_pair_types.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto_adjust_config_synonyms.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto_compat.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto_driver_common.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto_driver_contexts_composites.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto_driver_contexts_key_derivation.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto_driver_contexts_primitives.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto_extra.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto_legacy.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto_platform.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto_se_driver.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto_sizes.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto_struct.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto_types.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto_values.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/psa/crypto.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/mbedtls/build_info.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/mbedtls/config_psa.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/nrf-config.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/nrf-psa-crypto-config.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/tfm_platform_api.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/src/tfm_tz_psa_ns_api.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/os_wrapper
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/os_wrapper/common.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include/os_wrapper/mutex.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/src/os_wrapper
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/src/os_wrapper/tfm_ns_interface_bare_metal.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/src/os_wrapper/tfm_ns_interface_rtos.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/src/tfm_crypto_api.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/src/tfm_platform_api.c
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/config/cp_check.cmake
----- Installing platform NS -----
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/core_cm35p.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/core_sc300.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/cmsis_version.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/core_cm3.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/core_cm52.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/core_cm0.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/core_cm23.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/cmsis_compiler.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/tz_context.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/core_cm1.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/core_sc000.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/core_cm55.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/m-profile
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/m-profile/armv8m_mpu.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/m-profile/armv81m_pac.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/m-profile/cmsis_gcc_m.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/m-profile/cmsis_tiarmclang_m.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/m-profile/armv8m_pmu.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/m-profile/cmsis_clang_m.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/m-profile/cmsis_armclang_m.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/m-profile/armv7m_cachel1.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/m-profile/armv7m_mpu.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/m-profile/cmsis_iccarm_m.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/core_cm33.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/core_cm0plus.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/core_ca.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/core_cm4.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/core_starmc1.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/a-profile
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/a-profile/cmsis_clang_a.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/a-profile/cmsis_iccarm_a.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/a-profile/irq_ctrl.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/a-profile/cmsis_cp15.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/a-profile/cmsis_armclang_a.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/a-profile/cmsis_gcc_a.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/core_cm85.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/ext/cmsis/Include/core_cm7.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_hal_device_header.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_plat_otp.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_hal_interrupt.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_plat_rotpk.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_plat_crypto_keys.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/fatal_error.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_hal_its_encryption.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_hal_platform.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_plat_boot_seed.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_attest_hal.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/exception_info.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_plat_provisioning.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_hal_its.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_hal_isolation.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/cmsis_override.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_plat_config.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_plat_device_id.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_hal_mailbox.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/region.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_platform_system.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_plat_nv_counters.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_plat_ns.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/boot_hal.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_hal_defs.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_plat_defs.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_plat_crypto_nv_seed.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_hal_ps.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/mbedtls_entropy_nv_seed_config.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_hal_multi_core.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/tfm_plat_test.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/CMakeLists.txt
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/cmake/toolchain_ns_GNUARM.cmake
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/cmake/toolchain_ns_ARMCLANG.cmake
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/cmake/toolchain_ns_IARARM.cmake
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/platform/include/fih.h
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/cmake/spe_export.cmake
-- Installing: /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/cmake/set_extensions.cmake
[377/441] Building C object zephyr/CMakeFiles/zephyr.dir/modules/mbedtls/debug.c.obj
FAILED: zephyr/CMakeFiles/zephyr.dir/modules/mbedtls/debug.c.obj
ccache /home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DEXT_API_MAGIC=0x281ee6de,0xb845acea,23298 -DFIRMWARE_INFO_MAGIC=0x281ee6de,0x8fcebb4c,23298 -DKERNEL -DK_HEAP_MEM_POOL_SIZE=16384 -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-psa-crypto-config.h\" -DNRF9160_XXAA -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DPICOLIBC_DOUBLE_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/user/workdir/zephyr/kernel/include -I/home/user/workdir/zephyr/arch/arm/include -I/home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/include/generated/zephyr -I/home/user/workdir/zephyr/include -I/home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/include/generated -I/home/user/workdir/zephyr/soc/nordic -I/home/user/workdir/zephyr/soc/nordic/nrf91/. -I/home/user/workdir/zephyr/soc/nordic/common/. -I/home/user/workdir/zephyr/subsys/net/ip -I/home/user/workdir/zephyr/subsys/settings/include -I/home/user/workdir/nrf/include -I/home/user/workdir/nrf/lib/at_parser/include -I/home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include -I/home/user/workdir/nrf/subsys/net/lib/nrf_cloud/./include -I/home/user/workdir/nrf/subsys/net/lib/nrf_cloud/coap/include -I/home/user/workdir/nrf/subsys/net/lib/download_client/./include -I/home/user/workdir/nrf/subsys/net/lib/fota_download/./include -I/home/user/workdir/nrf/subsys/net/lib/download_client/include -I/home/user/workdir/nrf/modules/trusted-firmware-m/. -I/home/user/workdir/nrf/include/tfm -I/home/user/workdir/nrf/tests/include -I/home/user/workdir/modules/lib/cjson -I/home/user/workdir/nrf/modules/cjson/include -I/home/user/workdir/modules/hal/cmsis/CMSIS/Core/Include -I/home/user/workdir/zephyr/modules/cmsis/. -I/home/user/workdir/modules/hal/nordic/nrfx -I/home/user/workdir/modules/hal/nordic/nrfx/drivers/include -I/home/user/workdir/modules/hal/nordic/nrfx/mdk -I/home/user/workdir/zephyr/modules/hal_nordic/nrfx/. -I/home/user/workdir/modules/debug/segger/SEGGER -I/home/user/workdir/modules/debug/segger/Config -I/home/user/workdir/nrfxlib/nrf_modem/include -I/home/user/workdir/nrf/applications/serial_lte_modem/src/gnss/. -I/home/user/workdir/nrf/applications/serial_lte_modem/src/nrfcloud/. -I/home/user/workdir/nrf/applications/serial_lte_modem/src/mqtt_c/. -I/home/user/workdir/nrf/applications/serial_lte_modem/src/http_c/. -I/home/user/workdir/nrf/applications/serial_lte_modem/src/gpio/. -I/home/user/workdir/nrf/applications/serial_lte_modem/src/nativetls/. -I/home/user/workdir/nrf/applications/serial_lte_modem/src/ftp_c/. -I/home/user/workdir/nrf/applications/serial_lte_modem/src -I/home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/generated/interface_nrf_security_psa -I/home/user/workdir/nrf/subsys/nrf_security/include -I/home/user/workdir/modules/crypto/oberon-psa-crypto/include -I/home/user/workdir/nrf/subsys/nrf_security/src/utils -I/home/user/workdir/modules/crypto/oberon-psa-crypto/library -I/home/user/workdir/modules/crypto/mbedtls/library -I/home/user/workdir/modules/crypto/mbedtls/include -I/home/user/workdir/modules/crypto/mbedtls/include/library -I/home/user/workdir/nrfxlib/crypto/nrf_oberon/include -I/home/user/workdir/nrfxlib/crypto/nrf_oberon/include/mbedtls -I/home/user/workdir/bootloader/mcuboot/boot/bootutil/zephyr/.. -I/home/user/workdir/bootloader/mcuboot/boot/bootutil/zephyr/../include -I/home/user/workdir/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem /home/user/workdir/zephyr/lib/libc/common/include -Os -DNDEBUG -fno-strict-aliasing -Os -imacros /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/include/generated/zephyr/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mfp16-format=ieee -mtp=soft --sysroot=/home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/user/workdir/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/user/workdir/nrf/applications/serial_lte_modem=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/user/workdir/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/user/workdir=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -D_POSIX_THREADS -std=c99 -MD -MT zephyr/CMakeFiles/zephyr.dir/modules/mbedtls/debug.c.obj -MF zephyr/CMakeFiles/zephyr.dir/modules/mbedtls/debug.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/modules/mbedtls/debug.c.obj -c /home/user/workdir/zephyr/modules/mbedtls/debug.c
/home/user/workdir/zephyr/modules/mbedtls/debug.c:11:10: fatal error: zephyr_mbedtls_priv.h: No such file or directory
   11 | #include "zephyr_mbedtls_priv.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[387/441] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/lib/sockets/sockets_tls.c.obj
FAILED: zephyr/subsys/net/CMakeFiles/subsys__net.dir/lib/sockets/sockets_tls.c.obj
ccache /home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DEXT_API_MAGIC=0x281ee6de,0xb845acea,23298 -DFIRMWARE_INFO_MAGIC=0x281ee6de,0x8fcebb4c,23298 -DKERNEL -DK_HEAP_MEM_POOL_SIZE=16384 -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-psa-crypto-config.h\" -DNRF9160_XXAA -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DPICOLIBC_DOUBLE_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/user/workdir/zephyr/subsys/net/lib/sockets/. -I/home/user/workdir/zephyr/subsys/net/lib/tls_credentials/. -I/home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/include/generated/zephyr -I/home/user/workdir/zephyr/include -I/home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/include/generated -I/home/user/workdir/zephyr/soc/nordic -I/home/user/workdir/zephyr/soc/nordic/nrf91/. -I/home/user/workdir/zephyr/soc/nordic/common/. -I/home/user/workdir/zephyr/subsys/net/ip -I/home/user/workdir/zephyr/subsys/settings/include -I/home/user/workdir/nrf/include -I/home/user/workdir/nrf/lib/at_parser/include -I/home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/tfm/api_ns/interface/include -I/home/user/workdir/nrf/subsys/net/lib/nrf_cloud/./include -I/home/user/workdir/nrf/subsys/net/lib/nrf_cloud/coap/include -I/home/user/workdir/nrf/subsys/net/lib/download_client/./include -I/home/user/workdir/nrf/subsys/net/lib/fota_download/./include -I/home/user/workdir/nrf/subsys/net/lib/download_client/include -I/home/user/workdir/nrf/modules/trusted-firmware-m/. -I/home/user/workdir/nrf/include/tfm -I/home/user/workdir/nrf/tests/include -I/home/user/workdir/modules/lib/cjson -I/home/user/workdir/nrf/modules/cjson/include -I/home/user/workdir/modules/hal/cmsis/CMSIS/Core/Include -I/home/user/workdir/zephyr/modules/cmsis/. -I/home/user/workdir/modules/hal/nordic/nrfx -I/home/user/workdir/modules/hal/nordic/nrfx/drivers/include -I/home/user/workdir/modules/hal/nordic/nrfx/mdk -I/home/user/workdir/zephyr/modules/hal_nordic/nrfx/. -I/home/user/workdir/modules/debug/segger/SEGGER -I/home/user/workdir/modules/debug/segger/Config -I/home/user/workdir/nrfxlib/nrf_modem/include -I/home/user/workdir/nrf/applications/serial_lte_modem/src/gnss/. -I/home/user/workdir/nrf/applications/serial_lte_modem/src/nrfcloud/. -I/home/user/workdir/nrf/applications/serial_lte_modem/src/mqtt_c/. -I/home/user/workdir/nrf/applications/serial_lte_modem/src/http_c/. -I/home/user/workdir/nrf/applications/serial_lte_modem/src/gpio/. -I/home/user/workdir/nrf/applications/serial_lte_modem/src/nativetls/. -I/home/user/workdir/nrf/applications/serial_lte_modem/src/ftp_c/. -I/home/user/workdir/nrf/applications/serial_lte_modem/src -I/home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/generated/interface_nrf_security_psa -I/home/user/workdir/nrf/subsys/nrf_security/include -I/home/user/workdir/modules/crypto/oberon-psa-crypto/include -I/home/user/workdir/nrf/subsys/nrf_security/src/utils -I/home/user/workdir/modules/crypto/oberon-psa-crypto/library -I/home/user/workdir/modules/crypto/mbedtls/library -I/home/user/workdir/modules/crypto/mbedtls/include -I/home/user/workdir/modules/crypto/mbedtls/include/library -I/home/user/workdir/nrfxlib/crypto/nrf_oberon/include -I/home/user/workdir/nrfxlib/crypto/nrf_oberon/include/mbedtls -isystem /home/user/workdir/zephyr/lib/libc/common/include -Os -DNDEBUG -Wshadow -fno-strict-aliasing -Os -imacros /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/include/generated/zephyr/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mfp16-format=ieee -mtp=soft --sysroot=/home/user/ncs/toolchains/b81a7cd864/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/user/workdir/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/user/workdir/nrf/applications/serial_lte_modem=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/user/workdir/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/user/workdir=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -D_POSIX_THREADS -std=c99 -MD -MT zephyr/subsys/net/CMakeFiles/subsys__net.dir/lib/sockets/sockets_tls.c.obj -MF zephyr/subsys/net/CMakeFiles/subsys__net.dir/lib/sockets/sockets_tls.c.obj.d -o zephyr/subsys/net/CMakeFiles/subsys__net.dir/lib/sockets/sockets_tls.c.obj -c /home/user/workdir/zephyr/subsys/net/lib/sockets/sockets_tls.c
/home/user/workdir/zephyr/subsys/net/lib/sockets/sockets_tls.c:56:10: fatal error: zephyr_mbedtls_priv.h: No such file or directory
   56 | #include <zephyr_mbedtls_priv.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[394/441] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/home/user/workdir/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
ninja: build stopped: subcommand failed.
[10/20] No configure step for 'mcuboot'
FAILED: _sysbuild/sysbuild/images/serial_lte_modem-prefix/src/serial_lte_modem-stamp/serial_lte_modem-build /home/user/workdir/nrf/applications/serial_lte_modem/build/_sysbuild/sysbuild/images/serial_lte_modem-prefix/src/serial_lte_modem-stamp/serial_lte_modem-build
cd /home/user/workdir/nrf/applications/serial_lte_modem/build/serial_lte_modem && /home/user/ncs/toolchains/b81a7cd864/usr/local/bin/cmake --build .
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /home/user/ncs/toolchains/b81a7cd864/usr/local/bin/cmake --build /home/user/workdir/nrf/applications/serial_lte_modem/build
user@c37e816db0d1:~/workdir/nrf/applications/serial_lte_modem$

It seems to me that there might be some misconfiguration with the build system. Any help would be much appreciated.
Related