<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>TF-M without UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126172/tf-m-without-uart</link><description>Hi, I&amp;#39;m working on nRF9151 on custom board, NCS 3.1.0 and I&amp;#39;m building application with TF-M enabled. I&amp;#39;ve encountered quite a strange problem. If I remove all UART instances (mainly UART0) mcu becomes secured after jumping to application. I can neither</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Dec 2025 09:55:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126172/tf-m-without-uart" /><item><title>RE: TF-M without UART</title><link>https://devzone.nordicsemi.com/thread/557177?ContentTypeID=1</link><pubDate>Wed, 17 Dec 2025 09:55:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edce239e-51a0-4983-8198-65bf477b6bf7</guid><dc:creator>Tomasz K</dc:creator><description>&lt;p&gt;I don&amp;#39;t want to jinx it, but seems like it&amp;#39;s working.&lt;br /&gt;&lt;br /&gt;I had to call it as early as possible doing in main.c:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;int const_lat(void)
{
    NRF_POWER-&amp;gt;TASKS_CONSTLAT = 1; // Enable constant latency mode
    return 0;
}

SYS_INIT(const_lat, EARLY, 0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;For debug purposes I think it should be enough.&lt;br /&gt;&lt;br /&gt;Thank you for your help, haven&amp;#39;t thought of checking errata, as it looked like some configuration issue. I guess uart was keeping clock active.&lt;br /&gt;&lt;br /&gt;Thanks again&lt;br /&gt;Tomasz&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TF-M without UART</title><link>https://devzone.nordicsemi.com/thread/557174?ContentTypeID=1</link><pubDate>Wed, 17 Dec 2025 09:20:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b3b1949-d0ab-49b0-8692-b65a49dffa5a</guid><dc:creator>Simon D-M</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Before searching more in depth, I found this erratum [&lt;a href="https://docs.nordicsemi.com/bundle/errata_nRF9151_Rev2/page/ERR/nRF9151/Rev2/latest/anomaly_151_36.html#anomaly_151_36"&gt;Debug and Trace: Access port gets locked in WFI and WFE&lt;/a&gt;] which sounds a bit like your issue. It basically is that the access port gets locked after the device went to idle.&lt;/p&gt;
&lt;p&gt;Can you please try the suggested workaround and tell me if it helped?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon D-M&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TF-M without UART</title><link>https://devzone.nordicsemi.com/thread/557130?ContentTypeID=1</link><pubDate>Tue, 16 Dec 2025 16:14:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58ae6c95-ce4a-424b-a799-e3e9891910c6</guid><dc:creator>Tomasz K</dc:creator><description>&lt;p&gt;hmmm,&lt;br /&gt;Maybe I&amp;#39;m incorrectly assuming that it&amp;#39;s tf-m fault.&lt;br /&gt;Looks like somethink is doing: &amp;quot;there is no standard debug uart, therfore this must be release build, I will enable readback protection&amp;quot;.&lt;br /&gt;I have also mcuboot there, maybe it&amp;#39;s or app itself is behaving that way?&lt;br /&gt;Is there such option maybe?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TF-M without UART</title><link>https://devzone.nordicsemi.com/thread/557124?ContentTypeID=1</link><pubDate>Tue, 16 Dec 2025 15:56:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbdf37a5-a547-44ef-bdb8-558f42441ad9</guid><dc:creator>Tomasz K</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;At some point I&amp;#39;ve already tried with&amp;nbsp;&lt;span&gt;CONFIG_TFM_SECURE_UART without any effect.&lt;br /&gt;I&amp;#39;m using NCS 3.1.0&amp;nbsp;&lt;br /&gt;I can provide tommorow some cleaned up files from devicetre and prj.conf&lt;br /&gt;&lt;br /&gt;Device tree have SPI0, I2C1, SPI2 and SPI3 configured with corresponding pins. Uart is nowhere mentioned, standard includes (as in most examples) are used.&lt;br /&gt;&lt;br /&gt;Part of prj.conf:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SERIAL=n
CONFIG_LOG=y
CONFIG_CONSOLE=y
CONFIG_RTT_CONSOLE=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_EXTENDED_LOGS=y

CONFIG_NRF_SECURITY=y
CONFIG_MBEDTLS_PSA_CRYPTO_C=y

CONFIG_PSA_CRYPTO_DRIVER_OBERON=y # Fallback to Oberon if CC3XX fails
CONFIG_PSA_CRYPTO_DRIVER_CC3XX=y
CONFIG_PSA_WANT_ALG_ECB_NO_PADDING=y
CONFIG_PSA_WANT_ALG_SHA_256=y
CONFIG_NRF_SECURITY_ADVANCED=y
CONFIG_NORDIC_SECURITY_BACKEND=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Rest are config options for network, modem, spi, i2c...&lt;br /&gt;&lt;br /&gt;defconfig file:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Copyright (c) 2024 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

# Enable MPU
CONFIG_ARM_MPU=y

# Enable TrustZone-M
CONFIG_ARM_TRUSTZONE_M=y

# Enable GPIO and PINCTRL
CONFIG_GPIO=y
CONFIG_PINCTRL=y
CONFIG_PINCTRL_DYNAMIC=y

# External Flash
CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
CONFIG_FLASH_JESD216_API=y
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;ns_defconfig file:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Copyright (c) 2024 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

# Enable MPU
CONFIG_ARM_MPU=y

# Enable TrustZone-M
CONFIG_ARM_TRUSTZONE_M=y

# Generate TF-M image 
CONFIG_BUILD_WITH_TFM=y
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
CONFIG_TFM_LOG_LEVEL_SILENCE=y
CONFIG_TFM_PROFILE_TYPE_MINIMAL=n
CONFIG_TFM_CMAKE_BUILD_TYPE_MINSIZEREL=y

# This Board implies building Non-Secure firmware
CONFIG_TRUSTED_EXECUTION_NONSECURE=y

# Enable GPIO and PINCTRL
CONFIG_GPIO=y
CONFIG_PINCTRL=y
CONFIG_PINCTRL_DYNAMIC=y

# External Flash
CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
CONFIG_FLASH_JESD216_API=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Hope that helps at least something. If not, we can always convert ticket to privet and then I can share whole files.&lt;br /&gt;&lt;br /&gt;Best regards&lt;br /&gt;Tomasz&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TF-M without UART</title><link>https://devzone.nordicsemi.com/thread/557107?ContentTypeID=1</link><pubDate>Tue, 16 Dec 2025 14:51:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c9425c9-eb0a-417f-bd35-e9469c243f5f</guid><dc:creator>Simon D-M</dc:creator><description>&lt;p&gt;Hi Tomasz,&lt;/p&gt;
&lt;p&gt;Can you please try with &lt;code&gt;CONFIG_TFM_SECURE_UART=n&lt;/code&gt; ? It should already be at &amp;quot;n&amp;quot; as you enabled&amp;nbsp;&lt;code&gt;CONFIG_TFM_LOG_LEVEL_SILENCE&lt;/code&gt;, but we never know.&lt;/p&gt;
&lt;p&gt;If it doesn&amp;#39;t work, what NCS SDK version are you using ?&lt;/p&gt;
&lt;p&gt;Can you maybe share some files from your project (devicetree/kconfig/...) ?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon D-M&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>