<?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>SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126763/ssd1306-oled-display-fails-for-nrf52840-boards-using-nrf-connect-sdk-3-2-1</link><description>Hello, 
 I’ve been using SSD1306 128x64 OLED displays with nRF52840 boards for several years without any issues, building with nRF Connect SDK 2.5.x to 3.1.0. Recently, I&amp;#39;ve been attempting to move existing NCS 3.1.0 projects over to NCS 3.2.1. However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Feb 2026 14:05:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126763/ssd1306-oled-display-fails-for-nrf52840-boards-using-nrf-connect-sdk-3-2-1" /><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/561844?ContentTypeID=1</link><pubDate>Mon, 23 Feb 2026 14:05:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c8b47f4-0000-401a-a506-07a34702103a</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;&lt;br /&gt;Thank you. Your efforts are very much appreciated.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ll go ahead and close this&amp;nbsp;ticket.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;Ravi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/561796?ContentTypeID=1</link><pubDate>Mon, 23 Feb 2026 08:58:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0120011-2de0-449d-b8f4-27dd2b82d6f4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ravi,&lt;/p&gt;
&lt;p&gt;Thanks for update. I think this summarises the problems you have experienced.&lt;/p&gt;
[quote user="zpm1066"]One thing I did notice on the nRF54l15DK, with TF-M logging on one of the&amp;nbsp;BT non-secure application, was the appearance of &amp;nbsp;Crypto Accelerator Engine (CRACEN) in the TF-M logs.[/quote]
&lt;p&gt;The CRACEN is powered off between uses to avoid affecting the idle&amp;nbsp;current. The same is done when using the CC312 crypto accelerator with the nRF5340, but it is simply not logged.&lt;/p&gt;
[quote user="zpm1066"]&lt;span&gt;I plan using security&amp;nbsp;&lt;/span&gt;peripherals in a TF-M partition in a few projects soon.&amp;nbsp;So, hopefully this exposure to TF-M will assist.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know if the DevAcademy Team have a TF-M Services&amp;nbsp;in the works but it would be welcomed as IoT&amp;nbsp;security requirements are gaining considerable attention in the market.[/quote]
&lt;p&gt;I agree, and security in general is also something we are focusing on more now. I will forward your&amp;nbsp;request internally.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/561772?ContentTypeID=1</link><pubDate>Mon, 23 Feb 2026 03:27:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15e7ebd7-9dd5-4443-97e1-6045c08b9685</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;&lt;br /&gt;Thank you for the explanation regarding the&amp;nbsp;&lt;span&gt;TWIM0(i2c0) being&amp;nbsp;shared with UART0 on the Thingy53, and that the application will trigger a secure fault on any writes to the shared TWIM0 / UART0 pin registers reserved for the TF-M image. This all makes perfect sense. Thank you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;On the Thingy53, I&amp;#39;m now using i2c2 for the SSD1306 &amp;amp; BME688 sensor. Now have NS applications, including BT NS applications, running successfully with TF-M logs appearing on P0.12 / P0.11 of the &amp;quot;Current Measurement &amp;amp; Debug&amp;quot; board plugged into the Thingy53.&lt;br /&gt;&lt;br /&gt;As nRF5340DK uses UART1 for TF-M, I&amp;#39;ve switched over from i2c1 to i2c2 as well. So, no more TF-M bus faults there. Of course, one could if needed&amp;nbsp;silence the TF-M logs and use i2c1.&lt;br /&gt;&lt;br /&gt;One thing I did notice on the nRF54l15DK, with TF-M logging on one of the&amp;nbsp;BT non-secure application, was the appearance of &amp;nbsp;Crypto Accelerator Engine (CRACEN) in the TF-M logs. &lt;br /&gt;&lt;br /&gt;What&amp;#39;s triggering these &amp;quot;Powered on/off CRACEN&amp;quot;. I don&amp;#39;t see them&amp;nbsp;on the Thingy53 or nRF5340DK for the same application.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Powered on CRACEN.
Powered off CRACEN.
Powered on CRACEN.
Powered off CRACEN.&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;I really appreciate your help on&amp;nbsp;issues related to getting the SSD1306 OLED&amp;nbsp;working (i.e. switch from TWI to TWIM) &amp;nbsp;and, of course, how to use&amp;nbsp;TF-M logging on Thingy53 / nRF5340DK / nRF54L15DK without the applications triggering secure faults.&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;I plan using security&amp;nbsp;&lt;/span&gt;peripherals in a TF-M partition in a few projects soon.&amp;nbsp;So, hopefully this exposure to TF-M will assist.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know if the DevAcademy Team have a TF-M Services&amp;nbsp;in the works but it would be welcomed as IoT&amp;nbsp;security requirements are gaining considerable attention in the market.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;br /&gt;Ravi&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/561649?ContentTypeID=1</link><pubDate>Fri, 20 Feb 2026 06:34:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94c6d4ac-345c-477b-9b1e-f49d163d2f32</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It all makes sense now, and I should have caught it earlier. The issue is exactly the same as the one discussed in the linked ticket below, except that the Thingy is using UART0 instead of UART1.&amp;nbsp;TWIM0(i2c0) is shared with uart0.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/126763/ssd1306-oled-display-fails-for-nrf52840-boards-using-nrf-connect-sdk-3-2-1/560012"]Are you using the same overlay as you were using for your&amp;nbsp;&lt;span&gt;thingy53/nrf5340/cpuapp build? If not, please make sure you are not using the i2c1 instance while also having logging enabled in TF-M:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109959/i2c-problems-in-sdk-v2-6-0-on-nrf5340dk"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/109959/i2c-problems-in-sdk-v2-6-0-on-nrf5340dk&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;[/quote]
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;With CONFIG_TFM_SECURE_UART0=y selected in your case (you can see this in the app&amp;#39;s .config build output), the application will trigger a secure fault as soon as it writes the pins to the TWIM0 pin registers since the same registers belong to UART0 reserved to the TF-M image.&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1771569251751v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/561646?ContentTypeID=1</link><pubDate>Fri, 20 Feb 2026 05:47:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52fdf4f6-29e0-46ac-b0e8-da72cfe01170</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m&amp;nbsp;getting a little further as to why the NS applications may be bus faulting when a TF-M configurable build is run.&lt;br /&gt;&lt;br /&gt;On Thingy53, as TF-M logging is output to UART0, I&amp;#39;m able to observe the TF-M logs&amp;nbsp;using P0.12 (Tx) and P0.11 on the &amp;ldquo;Current Measurement &amp;amp; Debug Board&amp;rdquo; connected to the Thingy53.&lt;br /&gt;&lt;br /&gt;With the &amp;quot;cfb&amp;quot; sample and using&amp;nbsp;the following &amp;quot;thingy53_nrf5340_cpuapp_ns.conf&amp;quot; &amp;amp;&amp;nbsp;TF-M size of 96kB, TF-M throws a BusFault.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# TF-M profile has to be properly configured to be able to run
# the Bluetooth stack which uses PSA crypto API.
# The following configuration is a minimal set of options required.
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
CONFIG_TFM_PARTITION_PLATFORM=y
CONFIG_TFM_PARTITION_CRYPTO=y
CONFIG_TFM_PARTITION_INTERNAL_TRUSTED_STORAGE=y
CONFIG_TFM_PARTITION_PROTECTED_STORAGE=n
CONFIG_TFM_PARTITION_INITIAL_ATTESTATION=n

# This Board implies building Non-Secure firmware
CONFIG_TRUSTED_EXECUTION_NONSECURE=y

# Enable TF-M logging on UART0
CONFIG_TFM_SECURE_UART0=y
CONFIG_TFM_SECURE_UART_SHARE_INSTANCE=n
CONFIG_TFM_LOG_LEVEL_SILENCE=n
CONFIG_TFM_EXCEPTION_INFO_DUMP=y
CONFIG_TFM_SPM_LOG_LEVEL_DEBUG=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thingy53 Console output:&lt;/p&gt;
&lt;p&gt;Nothing as a BUsFault occurs and the console&amp;nbsp;is not available.&lt;/p&gt;
&lt;p&gt;TF-M Log output on Thingy53 UART0:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[Disconnected]
[Connected]
All pins have been configured as non-secure
Booting TF-M v2.2.0
[Sec Thread] Secure image initializing!
TF-M isolation level is: 0x00000001
TF-M Float ABI: Hard
Lazy stacking enabled
FATAL ERROR: BusFault
Here is some context for the exception:
    EXC_RETURN (LR): 0xFFFFFFBD
    Exception came from non-secure FW in thread mode.
    xPSR:    0x80000005
    MSP:     0x20002BF8
    PSP:     0x2000AEC8
    MSP_NS:  0x2003F018
    PSP_NS:  0x20040098
    Exception frame at: 0x20040098
       (Note that the exception frame may be corrupted for this type of error.)
        R0:   0x0006A9B4
        R1:   0x00000000
        R2:   0x00072240
        R3:   0x00000008
        R12:  0x00000000
        LR:   0x000649E5
        PC:   0x0004D3F6
        xPSR: 0x81000000
    Callee saved register state:
        R4:   0x00000005
        R5:   0x20032E58
        R6:   0x40008000
        R7:   0x00000000
        R8:   0x0006A9BC
        R9:   0x000001FF
        R10:  0x0006A9B4
        R11:  0xFFFCF0F0
    CFSR:  0x00008200
    BFSR:  0x00000082
    BFAR: 0x4000850C
    MMFSR: 0x00000000
    MMFAR: Not Valid
    UFSR:  0x00000000
    HFSR:  0x00000000
    SFSR:  0x00000000
    SFAR: Not Valid&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The BusFault appears to occur&amp;nbsp;in the pinctrl driver at &amp;quot;&lt;span&gt;/opt/nordic/ncs/v3.2.1/zephyr/drivers/pinctrl/pinctrl_nrf.c:274&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; case NRF_FUN_TWIM_SDA:&lt;br /&gt; NRF_PSEL_TWIM(reg, SDA) = psel;&lt;br /&gt; if (drive == NRF_GPIO_PIN_S0S1) {&lt;br /&gt; drive = NRF_GPIO_PIN_S0D1;&lt;br /&gt; }&lt;br /&gt; dir = NRF_GPIO_PIN_DIR_INPUT;&lt;br /&gt; input = NRF_GPIO_PIN_INPUT_CONNECT;&lt;br /&gt; break;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;pioneer15@pioneer15 ~ % /opt/nordic/ncs/toolchains/5c0d382932/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-addr2line&amp;#160; -e /Volumes/PioneerD/2026_dev/2026_zephyr_dev/original/cfb/build/thingy53_nrf5340_cpuapp_ns/cfb/zephyr/zephyr.elf 0x00032462&amp;#160;

/opt/nordic/ncs/v3.2.1/zephyr/drivers/pinctrl/pinctrl_nrf.c:274&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Here is the &amp;quot;thingy53_nrf5340_cpuapp_ns.overlay&amp;quot; overlay being used for the SSD1306.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		zephyr,display = &amp;amp;ssd1306;
	};
};

&amp;amp;pinctrl {
	i2c0_default: i2c0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(TWIM_SDA, 0, 5)&amp;gt;,
				&amp;lt;NRF_PSEL(TWIM_SCL, 0, 4)&amp;gt;;
		};
	};

	i2c0_sleep: i2c0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(TWIM_SDA, 0, 5)&amp;gt;,
				&amp;lt;NRF_PSEL(TWIM_SCL, 0, 4)&amp;gt;;
		};
	};
};

&amp;amp;i2c0 {
	compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	clock-frequency = &amp;lt;I2C_BITRATE_FAST&amp;gt;;
	zephyr,concat-buf-size = &amp;lt;4096&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;i2c0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;i2c0_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	ssd1306: ssd1306@3c {
		compatible = &amp;quot;solomon,ssd1306fb&amp;quot;;
		reg = &amp;lt;0x3c&amp;gt;;
		width = &amp;lt;128&amp;gt;;
		height = &amp;lt;64&amp;gt;;
		segment-offset = &amp;lt;0&amp;gt;;
		page-offset = &amp;lt;0&amp;gt;;
		display-offset = &amp;lt;0&amp;gt;;
		multiplex-ratio = &amp;lt;63&amp;gt;;
		segment-remap;
		com-invdir;
		prechargep = &amp;lt;0x22&amp;gt;;
	};
};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;As mentioned before, the &amp;quot;cfb&amp;quot; (and all my other NS applications&amp;quot; run successfully if the TF-M logs are silenced or if I share the TF-M with the application console. Is the latter the same as TF_M silenced since the USB console isn&amp;#39;t using UART0 at all?&lt;br /&gt;&lt;br /&gt;Do you mind looking into why the bus fault occurs? Thank you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Ravi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/561553?ContentTypeID=1</link><pubDate>Thu, 19 Feb 2026 05:15:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f52c887-9ce0-4e2d-b018-b1e74b3fa62c</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;HI Vidar,&lt;br /&gt;&lt;br /&gt;Thank you for the explanation regarding&amp;nbsp;USB logging being not available in TF-M, and also for the link to the hardcoded TF-M pin assignments for the nRF5340DK. Much&amp;nbsp;appreciated.&lt;/p&gt;
&lt;p&gt;1. The Thingy53 has several GPIO pins on the &amp;quot;Current Measurement &amp;amp; Debug&amp;quot; interface board, including pins that can be used for a UART. &lt;br /&gt;&lt;br /&gt;I would think that 2 of the TRACE pins (TRACE0 - TRACE03, TRACECLK) &amp;nbsp;could be assigned to UART1 in the Thingy53 overlay to&amp;nbsp;enable TF_M logging.&amp;nbsp;Would that work?&lt;br /&gt;&lt;br /&gt;2. In order to get the NS applications to run successfully, I&amp;#39;ve had to configure TF-M to share with the application console, otherwise I get bus faults. The other alternative is to simple silence the TF_M log output.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;Ravi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/561413?ContentTypeID=1</link><pubDate>Wed, 18 Feb 2026 06:44:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7116b078-72f1-4147-a4e7-9813db4d07a5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ravi,&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;I only tried the TF-M Hello World sample. I was looking&amp;nbsp;for one specific sample and exact steps to reproduce the problem.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="108657" url="~/f/nordic-q-a/126763/ssd1306-oled-display-fails-for-nrf52840-boards-using-nrf-connect-sdk-3-2-1/561409"]&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;k_msleep&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;1000&lt;/span&gt;&lt;span&gt;);&amp;quot; doesn&amp;#39;t quite work of rme. Instead, &amp;quot;&lt;/span&gt;CONFIG_SHELL=y&amp;quot; worked consistently without the&amp;nbsp;delay.[/quote]
&lt;p&gt;&lt;span&gt;&lt;span style="font-family:inherit;"&gt;When you enable the logger module with or without the shell, the logs will not be printed immediately (provided LOG_MODE_IMMEDIATE is not selected), but instead placed in a buffer and &lt;/span&gt;processed&lt;span style="font-family:inherit;"&gt;&amp;nbsp;in a separate logger thread that is run once every second. The original sample is only using console output and prints&amp;nbsp;everything immediately.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="108657" url="~/f/nordic-q-a/126763/ssd1306-oled-display-fails-for-nrf52840-boards-using-nrf-connect-sdk-3-2-1/561409"]1. Why is it that for the Thingy53, we do not observe the &lt;span&gt; &amp;quot;Booting TF-M v2.2.0&amp;quot; TF-M messages&lt;/span&gt;&amp;nbsp;similar to what is observed with nRF5340-DK output when both TF-M and application share the same output device?[/quote]
&lt;p&gt;Because it does not have UART logging. USB logging is not available in TF-M. Supporting a USB stack in TF-M is entirely different from supporting a UART driver.&lt;/p&gt;
[quote userid="108657" url="~/f/nordic-q-a/126763/ssd1306-oled-display-fails-for-nrf52840-boards-using-nrf-connect-sdk-3-2-1/561409"]2. For the nRF5340-DK v2.0.0 , the TF-M Logging docs state that to&amp;nbsp;get the UART output from the TF-M, one can either physically connect pins P0.25/P0.26 to P0.20/P0.22 or change the pins used by TF-M.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Where is it defined that TF-M logging output uses pins P0.25 and P0.26? I cannot find it anywhere, other than the&amp;nbsp;brief mention&amp;nbsp;in the &amp;quot;TF_M Logging&amp;quot; docs. I would like to try using the nRF5340-DK UART1 to output TF-M logs.[/quote]
&lt;p&gt;TF-M is getting the pin assignments from the devicetree except for the nRF5340DK and other nordic boards where it is hardcoded here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-trusted-firmware-m/commit/70abd66a1225a89312a8e6775c09d18873ff0579"&gt;https://github.com/nrfconnect/sdk-trusted-firmware-m/commit/70abd66a1225a89312a8e6775c09d18873ff0579&lt;/a&gt;. Anyway, logging on the nRF5340 DK is now using UART1. So when you are not using the network core, you will have one com port available just for the TF-M and another for the application so the application and TF-M does not need to share the same uart instance.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/561409?ContentTypeID=1</link><pubDate>Wed, 18 Feb 2026 04:17:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:475fae8a-144e-43e5-a882-a81cdc39b454</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;HI Vidar,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m a little unclear what you were not able to reproduce.&lt;br /&gt;&lt;br /&gt;Did you try running the sample &amp;quot;cfb&amp;quot; with a SSD1306 &amp;amp; TF-M size 96kB on a Thingy53 (and also a&amp;nbsp;nRF5340-DK), &amp;nbsp;with the TF-M configuration&amp;nbsp;that I used below?&lt;br /&gt;&lt;br /&gt;I used a&amp;nbsp;Thingy53 and also a nRF4340-DK, sample &amp;quot;cfb&amp;quot; with a SSD1306 &amp;amp; TF-M size &amp;nbsp;96kB. The NS &amp;quot;cfb&amp;quot; application&amp;nbsp;ran&amp;nbsp;sucessfully&amp;nbsp;provided the following configuration gets&amp;nbsp;used. TF-M logging shared with application console.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# TF-M profile has to be properly configured to be able to run
# the Bluetooth stack which uses PSA crypto API.
# The following configuration is a minimal set of options required.
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
CONFIG_TFM_PARTITION_PLATFORM=y
CONFIG_TFM_PARTITION_CRYPTO=y
CONFIG_TFM_PARTITION_INTERNAL_TRUSTED_STORAGE=y
CONFIG_TFM_PARTITION_PROTECTED_STORAGE=n
CONFIG_TFM_PARTITION_INITIAL_ATTESTATION=n

# This Board implies building Non-Secure firmware
CONFIG_TRUSTED_EXECUTION_NONSECURE=y

CONFIG_TFM_SECURE_UART0=y
CONFIG_TFM_SECURE_UART_SHARE_INSTANCE=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Thingy53 console output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[Connected]
Initialized ssd1306@3c
font width 10, font height 16
font width 15, font height 24
font width 20, font height 32
x_res 128, y_res 64, ppt 8, rows 8, cols 128

[00:00:00.000,885] &amp;lt;inf&amp;gt; udc_nrf: Preinit
*** Booting nRF Connect SDK v3.2.1-d8887f6f32df ***
*** Using Zephyr OS v4.2.99-ec78104f1569 ***
[00:00:00.012,542] &amp;lt;inf&amp;gt; udc_nrf: Initialized
[00:00:00.012,969] &amp;lt;dbg&amp;gt; cfb: cfb_framebuffer_init: number of fonts 3
[00:00:00.016,784] &amp;lt;inf&amp;gt; udc_nrf: SUSPEND state detected
[00:00:00.115,142] &amp;lt;inf&amp;gt; udc_nrf: Reset
[00:00:00.115,203] &amp;lt;inf&amp;gt; udc: ep 0x80 is not halted|disabled
[00:00:00.115,203] &amp;lt;inf&amp;gt; udc_nrf: RESUMING from suspend&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;nRF4350-DK output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Writing random Hardware Unique Keys to the KMU.
Success
All pins have been configured as non-secure
Booting TF-M v2.2.0
[Sec Thread] Secure image initializing!
Initialized ssd1306@3c

*** Booting nRF Connect SDK v3.2.1-d8887f6f32df ***
*** Using Zephyr OS v4.2.99-ec78104f1569 ***
[00:00:00.412,933] &amp;lt;dbg&amp;gt; cfb: cfb_framebuffer_init: number of fonts 3
uart:~$ font width 10, font height 16
font width 15, font height 24
font width 20, font height 32
x_res 128, y_res 64, ppt 8, rows 8, cols 128&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;If&amp;nbsp;TF-M logging is disabled with&amp;nbsp;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;CONFIG_TFM_LOG_LEVEL_SILENCE=y&amp;quot;, then the NS applications also run successfully.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regarding &amp;quot;tfm_hello_world&amp;quot; sample with Thingy53:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;k_msleep&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;1000&lt;/span&gt;&lt;span&gt;);&amp;quot; doesn&amp;#39;t quite work of rme. Instead, &amp;quot;&lt;/span&gt;CONFIG_SHELL=y&amp;quot; worked consistently without the&amp;nbsp;delay.&lt;/p&gt;
&lt;p&gt;Questions:&lt;/p&gt;
&lt;p&gt;1. Why is it that for the Thingy53, we do not observe the &lt;span&gt; &amp;quot;Booting TF-M v2.2.0&amp;quot; TF-M messages&lt;/span&gt;&amp;nbsp;similar to what is observed with nRF5340-DK output when both TF-M and application share the same output device?&lt;br /&gt;&lt;br /&gt;Is it because the TF_M logs&amp;nbsp;get output before the Thingy53 USB gets attached? &lt;br /&gt;&lt;br /&gt;How do I get the TF-M messages to show up on the Thingy53&lt;span&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;2. For the nRF5340-DK v2.0.0 , the TF-M Logging docs state that to&amp;nbsp;get the UART output from the TF-M, one can either physically connect pins P0.25/P0.26 to P0.20/P0.22 or change the pins used by TF-M.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Where is it defined that TF-M logging output uses pins P0.25 and P0.26? I cannot find it anywhere, other than the&amp;nbsp;brief mention&amp;nbsp;in the &amp;quot;TF_M Logging&amp;quot; docs. I would like to try using the nRF5340-DK UART1 to output TF-M logs.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;br /&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;Ravi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/561338?ContentTypeID=1</link><pubDate>Tue, 17 Feb 2026 10:32:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e823c7ff-fe6e-43da-915c-1f3f70a7fa92</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ravi,&lt;/p&gt;
&lt;p&gt;I have tried with the TF-M hello world sample as well now and I did not manage to reproduce the behaviour you observed. I did however have to &amp;nbsp;add &amp;quot;&lt;span&gt;k_msleep&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;1000&lt;/span&gt;&lt;span&gt;);&amp;quot; at the beginning of main to allow the USB to attach before the messages were&amp;nbsp;printed.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/561304?ContentTypeID=1</link><pubDate>Tue, 17 Feb 2026 01:25:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd6db825-6c6a-47fc-b8bf-2183270c87ce</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;HI Vidar,&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve found out that&amp;nbsp;the TF-M configuration and logging is slightly different on&amp;nbsp;the nRF5340-DK.&lt;/p&gt;
&lt;p&gt;According to &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/nrf53/logging_nrf5340.html#nrf5430-tfm-log"&gt;log output from TF-M on the nRF5340-DK&lt;/a&gt;, one option is to&amp;nbsp;&lt;span style="font-family:inherit;"&gt;wire the secure and non-secure UART peripherals to the same pins, i.e. physically wire together the pins P0.25 and P0.26 to P0.20 and P0.22, respectively.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After wiring together P.025 -&amp;gt; P0.20 &amp;amp; P0.26 -&amp;gt; P0.22, plus using the following TF-M configuration (same as what was&amp;nbsp;used on the Thingy53)&amp;nbsp;worked for NS applications.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# TF-M profile has to be properly configured to be able to run
# the Bluetooth stack which uses PSA crypto API.
# The following configuration is a minimal set of options required.
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
CONFIG_TFM_PARTITION_PLATFORM=y
CONFIG_TFM_PARTITION_CRYPTO=y
CONFIG_TFM_PARTITION_INTERNAL_TRUSTED_STORAGE=y
CONFIG_TFM_PARTITION_PROTECTED_STORAGE=n
CONFIG_TFM_PARTITION_INITIAL_ATTESTATION=n

# This Board implies building Non-Secure firmware
CONFIG_TRUSTED_EXECUTION_NONSECURE=y

# Set TF-M to share the default console
CONFIG_TFM_SECURE_UART0=y
CONFIG_TFM_SECURE_UART_SHARE_INSTANCE=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Console output (shared by application and TF-M):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;All pins have been configured as non-secure
Booting TF-M v2.2.0
[Sec Thread] Secure image initializing!
TF-M Float ABI: Hard
Lazy stacking enabled

*** Booting nRF Connect SDK v3.2.1-d8887f6f32df ***
*** Using Zephyr OS v4.2.99-ec78104f1569 ***
[00:00:05.421,661] &amp;lt;inf&amp;gt; app: Board target: nrf5340dk/nrf5340/cpuapp/ns

[00:00:05.421,691] &amp;lt;inf&amp;gt; app: bme688x_iaq_ssd1306 - App started
[00:00:05.421,691] &amp;lt;inf&amp;gt; app: Init ssd1306
[00:00:05.421,875] &amp;lt;dbg&amp;gt; cfb: cfb_framebuffer_init: number of fonts 2
[00:00:05.449,005] &amp;lt;inf&amp;gt; oled: Index[0] font dimensions  5x8
[00:00:05.449,035] &amp;lt;inf&amp;gt; oled: Index[1] font dimensions  8x8
[00:00:05.449,035] &amp;lt;inf&amp;gt; oled: Selected font: index[0]
[00:00:05.449,066] &amp;lt;inf&amp;gt; oled: x_res 128, y_res 64, ppt 8, rows 8, cols 128&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Do you know where it is specified&amp;nbsp;that TF-M uses P.25 &amp;amp; P.26 on the nRF5340DK for logging? I couldn&amp;#39;t find any reference to it in the nRF5340-DK Hardware Guide or the nRF5340-DK devicetree.&lt;/p&gt;
&lt;p&gt;Also, What pins are used on the Thingy53 for TF-M logging, as I do not see the shared TF-M / application outputs in&amp;nbsp;the Thing53 console output as in nRF5340-DK?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Ravi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/561183?ContentTypeID=1</link><pubDate>Mon, 16 Feb 2026 01:18:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72381ce5-276f-4f39-93d2-d1390c76be30</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;&lt;br /&gt;I had another look at&amp;nbsp;the Thingy53 NS builds for non-BT applications.&lt;/p&gt;
&lt;p&gt;After making the following Kconfig change, the non-BT applications now&amp;nbsp;run on the Thing53.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Set TF-M to share the default console
CONFIG_TFM_SECURE_UART0=y
CONFIG_TFM_SECURE_UART_SHARE_INSTANCE=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The Thingy53 uses the USB cdc_acm_uart for the application console and UART0 by default is disabled. &lt;br /&gt;&lt;br /&gt;It seems that although UART0 is disabled, TF-M logging still requires UART0 configuration and to share TF-M&amp;#39;s UART instance with the NS&amp;nbsp;application.&lt;/p&gt;
&lt;p&gt;Earlier, without the&amp;nbsp;above configuration, &amp;nbsp;NS applications on Thingy53 worked only if the TF-M logging was disabled via &amp;quot;&lt;span&gt;CONFIG_TFM_LOG_LEVEL_SILENCE=y&amp;quot;.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve verified the resolution using the Zephyr sample &amp;quot;/zephyr/samples/subsys/display/cfb&amp;quot; with&amp;nbsp;&lt;/span&gt;TF-M Configurable builds.&lt;br /&gt;&lt;br /&gt;TF-M size set to 96kB using static partitioning file&amp;nbsp;&amp;quot;pm_static_thingy53_nrf5340_cpuapp_ns.yml&amp;quot; in the project folder.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0363.Address.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;thingy53_nrf5340_cpuapp_ns.conf:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# TF-M profile has to be properly configured to be able to run
# the Bluetooth stack which uses PSA crypto API.
# The following configuration is a minimal set of options required.
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
CONFIG_TFM_PARTITION_PLATFORM=y
CONFIG_TFM_PARTITION_CRYPTO=y
CONFIG_TFM_PARTITION_INTERNAL_TRUSTED_STORAGE=y
CONFIG_TFM_PARTITION_PROTECTED_STORAGE=n
CONFIG_TFM_PARTITION_INITIAL_ATTESTATION=n

# This Board implies building Non-Secure firmware
CONFIG_TRUSTED_EXECUTION_NONSECURE=y

# Set TF-M to share the default console
CONFIG_TFM_SECURE_UART0=y
CONFIG_TFM_SECURE_UART_SHARE_INSTANCE=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Console output:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[Disconnected]
[Connected]
Initialized ssd1306@3c
font width 10, font height 16
font width 15, font height 24
font width 20, font height 32
x_res 128, y_res 64, ppt 8, rows 8, cols 128

[00:00:00.000,885] &amp;lt;inf&amp;gt; udc_nrf: Preinit
*** Booting nRF Connect SDK v3.2.1-d8887f6f32df ***
*** Using Zephyr OS v4.2.99-ec78104f1569 ***
[00:00:00.012,756] &amp;lt;inf&amp;gt; udc_nrf: Initialized
[00:00:00.013,153] &amp;lt;dbg&amp;gt; cfb: cfb_framebuffer_init: number of fonts 3
[00:00:00.016,967] &amp;lt;inf&amp;gt; udc_nrf: SUSPEND state detected
[00:00:00.114,532] &amp;lt;inf&amp;gt; udc_nrf: Reset
[00:00:00.114,562] &amp;lt;inf&amp;gt; udc: ep 0x80 is not halted|disabled
[00:00:00.114,593] &amp;lt;inf&amp;gt; udc_nrf: RESUMING from suspend&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Also, I&amp;#39;ve ran the sample NS &amp;nbsp;build of sample &amp;quot;tfm_hello_world&amp;quot; on the Thingy53. I noticed an unexpected&amp;nbsp;behaviour.&lt;br /&gt;&lt;br /&gt;Initially, I got the following console output below. Some messages seem to have been dropped for some reason.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[Connected]
84--- 16 messages dropped ---
dfde2b22388088bd36ccfbcdd9aab068e63105303997eb0d5a
Example finished successfully!
[00:00:00.005,279] &amp;lt;inf&amp;gt; udc_nrf: SUSPEND state detected
[00:00:00.103,698] &amp;lt;inf&amp;gt; udc_nrf: Reset
[00:00:00.103,729] &amp;lt;inf&amp;gt; udc: ep 0x80 is not halted|disabled
[00:00:00.103,759] &amp;lt;inf&amp;gt; udc_nrf: RESUMING from suspend&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If I set &amp;quot;CONFIG_SHELL=y&amp;quot;, then the console output is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[Connected]
*** Booting nRF Connect SDK v3.2.1-d8887f6f32df ***
*** Using Zephyr OS v4.2.99-ec78104f1569 ***
Hello World! thingy53/nrf5340/cpuapp/ns
Reading some secure memory that NS is allowed to read
Approximate IPC overhead us: 174
FICR-&amp;gt;INFO.FLASH: 0x00000400
Generating random number
0xf1663a5d54a3d23924674a231407b1e44908755aad87a0f8a8c364e5986025ca
Hashing &amp;#39;Hello World! thingy53/nrf5340/cpuapp/ns&amp;#39;
SHA256 digest:
0x8d062694d91c7504ce428d05b015fb1bfcb3437cf5a2fab6ec5db63830751c1e
Example finished successfully!
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I don&amp;#39;t understand why the SHELL configuration resolves the dropped messages.&lt;br /&gt;&lt;br /&gt;Can you please run the &amp;quot;tfm_hello_world&amp;quot; sample on a Thingy53 to see if you get the same behaviour. Thank you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Ravi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/561147?ContentTypeID=1</link><pubDate>Fri, 13 Feb 2026 16:26:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6da5a19-e75b-4a99-becc-113e004c3f59</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ravi,&lt;/p&gt;
&lt;p&gt;This don&amp;#39;t make much sense to me. I can try to debug this on my end, but I would&amp;nbsp;need to know the exact sample and configuration to use in that case.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/561112?ContentTypeID=1</link><pubDate>Fri, 13 Feb 2026 13:33:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfd031b6-8cd5-426d-97e3-5eece1769be0</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;&lt;br /&gt;I agree. The&lt;span&gt;&amp;nbsp;same TF-M configuration should also work for non-BT applications on Thingy53.&lt;br /&gt;&lt;br /&gt;In my previous comment, I meant to say&amp;nbsp;that the non-BT applications work if I silence the TF-M logs (&lt;/span&gt;&lt;span&gt;CONFIG_TFM_LOG_LEVEL_SILENCE&lt;/span&gt;&lt;span&gt;=y) and use the&amp;nbsp;TF-M minimal configuration.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;If TFM logs are enabled and &amp;quot;CONFIG_RESET_ON_FATAL_ERROR=n &amp;quot;, then the non-BT applications don&amp;#39;t&amp;nbsp;run and the USB serial console doesn&amp;#39;t show up.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;br /&gt;This thingy53_nrf5340_cpuapp_ns works but fails if&amp;nbsp;CONFIG_TFM_LOG_LEVEL_SILENCE=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;# TF-M profile has to be properly configured to be able to run
# the Bluetooth stack which uses PSA crypto API.
# The following configuration is a minimal set of options required.
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
CONFIG_TFM_PARTITION_PLATFORM=y
CONFIG_TFM_PARTITION_CRYPTO=y
CONFIG_TFM_PARTITION_INTERNAL_TRUSTED_STORAGE=y
CONFIG_TFM_PARTITION_PROTECTED_STORAGE=n
CONFIG_TFM_PARTITION_INITIAL_ATTESTATION=n

# This Board implies building Non-Secure firmware
CONFIG_TRUSTED_EXECUTION_NONSECURE=y

# Disables reboots on fatal error
CONFIG_RESET_ON_FATAL_ERROR=n

# TFM logs disabled
CONFIG_TFM_LOG_LEVEL_SILENCE=y&lt;/pre&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Best Regards,&lt;br /&gt;Ravi&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/561022?ContentTypeID=1</link><pubDate>Thu, 12 Feb 2026 13:50:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b1e01fb-e243-4972-a9ca-c5980fa4c13c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ravi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any reason for why the same TF-M configuration should not work for non-BT applications. I&amp;#39;m not able to reproduce this here with the same board modifications I posted earlier either.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/561021?ContentTypeID=1</link><pubDate>Thu, 12 Feb 2026 13:40:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be7b90f1-84fe-47c1-8e5e-28f81987248b</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;HI Vidar,&lt;br /&gt;&lt;br /&gt;For the non-BT TF-M applications, I have tried to use your suggested TF-M minimal configuration. The applications build but din&amp;#39;t run. However, as mentioned, when I turn off logging, the applications run successfully. &lt;br /&gt;&lt;br /&gt;I&amp;#39;ve reviewed the TF-M docs but will take another look later today. The issue now is how to get&amp;nbsp;successful TF-M for non-BT applications. I&amp;#39;ve tried a few different configurations but not been successful yet, other than by disabling logging.&lt;br /&gt;&lt;br /&gt;I tried building the &amp;quot;tfm_hello_world&amp;quot; sample unmodified on the Thingy53 as NS. The build runs successfully if I disable TF-M logging&amp;nbsp;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;CONFIG_TFM_LOG_LEVEL_SILENCE&lt;/span&gt;&lt;span&gt;=y) &lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;Ravi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/560976?ContentTypeID=1</link><pubDate>Thu, 12 Feb 2026 08:23:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:628859fe-b179-4814-8028-5c140df680ad</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ravi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Good to hear that it works now. What configuration to use for your TF-M image depends on what you are going to use it for. The configuration I used&amp;nbsp;provides the crypto services needed to perform LE secure connections pairing. Please refer to the SDK documentation here for more details on this:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/security/tfm/tfm_supported_services.html#tf-m-version-in-the-ncs"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/security/tfm/tfm_supported_services.html#tf-m-version-in-the-ncs&lt;/a&gt;&lt;/p&gt;
[quote user="zpm1066"]I&amp;#39;m finding that I need to turn off logging (CONFIG_LOG=n) in order to get the non-BT&amp;nbsp;&lt;span&gt;thingy53/nrf5340/cpuapp/ns applications to run successfully. &lt;br /&gt;&lt;br /&gt;Is this related to &amp;quot;When building TF-M with logging enabled, UART instance used by TF-M must be disabled in the non-secure application, otherwise the non-secure application will fail to run.&amp;quot; as mentioned in the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/security/tfm/tfm_logging.html"&gt;TF-M Logging docs&lt;/a&gt;?&amp;nbsp; Thingy53 has the TF-M logging on UART0, same as the console.&lt;/span&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The ns application is using the USB device for console/logging. UART0 is not used.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/560966?ContentTypeID=1</link><pubDate>Thu, 12 Feb 2026 05:43:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:846cc6e5-b8aa-4dc7-a884-910f6450675d</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;HI Vidar,&lt;br /&gt;&lt;br /&gt;Thank you for the TF-M Kconfig. Using the minimal set of option for TF-M, I can now build and run my BT applications (including peripheral_lbs) for thingy53/nrf5340/cpuapp/ns. Your help is much&amp;nbsp;appreciated.&lt;br /&gt;&lt;br /&gt;What minimal TF-M configuration should be used to build &amp;amp; successfully run&amp;nbsp;&lt;span&gt;thingy53/nrf5340/cpuapp/ns applications that do not use BT?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;I&amp;#39;m finding that I need to turn off logging (CONFIG_LOG=n) in order to get the non-BT&amp;nbsp;&lt;span&gt;thingy53/nrf5340/cpuapp/ns applications to run successfully. &lt;br /&gt;&lt;br /&gt;Is this related to &amp;quot;When building TF-M with logging enabled, UART instance used by TF-M must be disabled in the non-secure application, otherwise the non-secure application will fail to run.&amp;quot; as mentioned in the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/security/tfm/tfm_logging.html"&gt;TF-M Logging docs&lt;/a&gt;?&amp;nbsp; Thingy53 has the TF-M logging on UART0, same as the console.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Ravi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/560862?ContentTypeID=1</link><pubDate>Wed, 11 Feb 2026 06:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcc0b414-3b08-4375-9b67-6dca4e5e8b25</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ravi,&lt;/p&gt;
&lt;p&gt;I thought you were getting the same warning on&amp;nbsp;nrf5340DK. Have now tried to build for the thingy53 as well after making the following changes in the board directory:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="diff"&gt;diff --git a/boards/nordic/thingy53/pm_static_thingy53_nrf5340_cpuapp_ns.yml b/boards/nordic/thingy53/pm_static_thingy53_nrf5340_cpuapp_ns.yml
index 70ffe6d9c12..b05346273bd 100644
--- a/boards/nordic/thingy53/pm_static_thingy53_nrf5340_cpuapp_ns.yml
+++ b/boards/nordic/thingy53/pm_static_thingy53_nrf5340_cpuapp_ns.yml
@@ -8,20 +8,20 @@ mcuboot_pad:
   size: 0x200
 tfm_secure:
   address: 0x10000
-  size: 0xc000
+  size: 0x18000 
   span: [mcuboot_pad, tfm]
 tfm_nonsecure:
-  address: 0x1c000
-  size: 0xd4000
+  address: 0x28000
+  size: 0xc8000
   span: [app]
 tfm:
   address: 0x10200
   region: flash_primary
-  size: 0xbe00
+  size: 0x17e00
 app:
-  address: 0x1c000
+  address: 0x28000
   region: flash_primary
-  size: 0xd4000
+  size: 0xc8000
 mcuboot_primary:
   address: 0x10000
   orig_span: &amp;amp;id001
diff --git a/boards/nordic/thingy53/thingy53_nrf5340_cpuapp_ns_defconfig b/boards/nordic/thingy53/thingy53_nrf5340_cpuapp_ns_defconfig
index f831ec5148e..aeb0691df9d 100644
--- a/boards/nordic/thingy53/thingy53_nrf5340_cpuapp_ns_defconfig
+++ b/boards/nordic/thingy53/thingy53_nrf5340_cpuapp_ns_defconfig
@@ -6,6 +6,17 @@ CONFIG_ARM_MPU=y
 # Enable TrustZone-M
 CONFIG_ARM_TRUSTZONE_M=y
 
+# TF-M profile has to be properly configured to be able to run
+# the Bluetooth stack which uses PSA crypto API.
+# The following configuration is a minimal set of options required.
+CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
+
+CONFIG_TFM_PARTITION_PLATFORM=y
+CONFIG_TFM_PARTITION_CRYPTO=y
+CONFIG_TFM_PARTITION_INTERNAL_TRUSTED_STORAGE=y
+CONFIG_TFM_PARTITION_PROTECTED_STORAGE=n
+CONFIG_TFM_PARTITION_INITIAL_ATTESTATION=n
+
 # This Board implies building Non-Secure firmware
 CONFIG_TRUSTED_EXECUTION_NONSECURE=y
 
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I did not see any warnings or errors in the log.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/560820?ContentTypeID=1</link><pubDate>Tue, 10 Feb 2026 15:11:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c196203-f3a4-4cad-b97d-dcc52963544a</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;&lt;br /&gt;No modification to the original peripheral_lbs sample was made when building for thingy53/nrf5340/cpuapp/ns. Building the sample for nrf5340dk/nrf5340/cpuapp/ns works, and it runs fine. The issue is with the Thingy53 NS.&lt;/p&gt;
&lt;p&gt;I have just taken another copy of peripheral_lbs from the NCS 3.2.1 samples and attempted to build for&amp;nbsp;&lt;span&gt;thingy53/nrf5340/cpuapp/ns.&lt;br /&gt;&lt;br /&gt;Again, I get the FLASH overflow error, as below.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2026_2D00_02_2D00_10-at-9.53.28_2F20_AM.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Can&amp;nbsp;you please try to build peripheral_lbs for&amp;nbsp;&amp;nbsp;thingy53/nrf5340/cpuapp/ns? Thank you.&lt;br /&gt;&lt;br /&gt;On Github nrfconnect sdk, for the&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/peripheral_lbs"&gt;&amp;nbsp;peripheral_lbs&lt;/a&gt;, I noticed that there was a change in the Kconfig.sysbuild last week. PM was disabled for the Thingy53.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;config PARTITION_MANAGER
	default n if !BOARD_THINGY53 &amp;amp;&amp;amp; !BOARD_IS_NON_SECURE

config NRF_DEFAULT_IPC_RADIO
	default y

config NETCORE_IPC_RADIO_BT_HCI_IPC
	default y

source &amp;quot;share/sysbuild/Kconfig&amp;quot;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I haven&amp;#39;t updated NCS 3.2.1 to the latest but will later today.&lt;br /&gt;&lt;br /&gt;Also, from the &lt;a href="https://github.com/nrfconnect/sdk-nrf/commit/8af3c31f50f1a63abcb0cfd7de2e91f91c7070a6"&gt;sample.yml history&lt;/a&gt;,&amp;nbsp;the Thingy53 non secure target got removed&amp;nbsp;because of BT_CRYPTO support.&lt;br /&gt;&lt;br /&gt;Anyway, I&amp;#39;ve ended up the path of modifying TF_M size for the Thingy53 NS applications because of the additional space required to support BT_CRYPTO.&lt;br /&gt;&lt;br /&gt;As mentioned before, if I silence (CONFIG_TFM_LOG_LEVEL_SILENCE=y) the TF-M logs, the Thingy NS applications run fine.&lt;br /&gt;&lt;br /&gt;I like to know what&amp;#39;s causing TFM Log bus faults and if here is a way to have TFM logs enabled for Thing NS builds.. Thank you.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best&amp;nbsp;&lt;/span&gt;Regards,&lt;br /&gt;Ravi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/560778?ContentTypeID=1</link><pubDate>Tue, 10 Feb 2026 10:57:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91fce7c6-3944-439a-934d-56e606f6fce3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ravi,&lt;/p&gt;
&lt;p&gt;Have you made any other changes modifications to the &lt;span&gt;peripheral_lbs sample? I&lt;/span&gt;&amp;nbsp;do not get any build errors if I build the original version from&amp;nbsp;from SDK v3.2.1 for nrf5340dk/nrf5340/cpuapp/ns. It also seems to run without issues.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1770721057401v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/560718?ContentTypeID=1</link><pubDate>Mon, 09 Feb 2026 18:46:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eee20040-0873-4f3e-9f39-a07de3c69f9b</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;&lt;br /&gt;For both the Thingy53 and nRF5340-DK, when building&amp;nbsp;BLE applications, I&amp;#39;ve extended the TF-M size to get successful non-secure builds. A&amp;nbsp;&amp;ldquo;pm_static_thingy53_nrf5340_cpuapp_ns.yml&amp;rdquo; in the local project folder with TF_M size extended to 96kB was used.&lt;br /&gt;&lt;br /&gt;These applications (peripheral_lbs sample and a few migrated BLE applications) run fine provided if I silence (CONFIG_TFM_LOG_LEVEL_SILENCE=y) the TF-M logs. Otherwise, I get&amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;&amp;ldquo;&amp;lt;err&amp;gt; flash_nrf: invalid address: 0x100feff8:8&amp;rdquo;.&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="Apple-converted-space"&gt;Clearly this&lt;/span&gt;&amp;nbsp;address is outside the 1MB address range for Thingy53 internal FLASH. I&amp;#39;m not sure what TF-M logging generates the error. Any suggestions on how to debug the TF-M logs? Thanks.&lt;br /&gt;&lt;br /&gt;I need to debug further and also us&amp;nbsp;the&amp;nbsp;&lt;span&gt;addr2line utility to isolate the cause of the issue.&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Have you seen this type of error before?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;Ravi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/560514?ContentTypeID=1</link><pubDate>Fri, 06 Feb 2026 08:20:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2685e0f6-ddf8-404f-ac34-855d82ca78ea</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ravi,&lt;/p&gt;
&lt;p&gt;The thingy53 board includes a static memory partition file to ensure consistent memory layout for all samples built for this board and keep compatibility with the version of the bootloader that comes pre-programmed on the board. But when you have an external debugger you can safely change the memory layout without worrying about bricking the device.&lt;/p&gt;
[quote user="zpm1066"]How do I configure CONFIG_PM_PARTITION_SIZE_TFM correctly?&amp;nbsp;Thank you.[/quote]
&lt;p&gt;The static partitioning file takes precedence. If you want to allow dynamic allocation, you need to remove this&amp;nbsp;partitioning file from the board directory:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/ncs-v3.2.1/boards/nordic/thingy53/pm_static_thingy53_nrf5340_cpuapp_ns.yml"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/ncs-v3.2.1/boards/nordic/thingy53/pm_static_thingy53_nrf5340_cpuapp_ns.yml&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/560487?ContentTypeID=1</link><pubDate>Thu, 05 Feb 2026 21:31:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae033621-a9d1-4769-97d4-299d458a6fbc</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;&lt;br /&gt;I tried the following.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;&lt;/span&gt;Added CONFIG_RESET_ON_FATAL_ERROR=n to prj.conf&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;/span&gt;Built a debug version of &amp;nbsp;thingy53/nrf5340/cpuapp/ns target&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Got build errors with TFM FLASH overflow&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/nordic/ncs/v3.2.1/nrfxlib/crypto/nrf_oberon/lib/cortex-m33/soft-float/liboberon_3.0.17.a &amp;amp;&amp;amp; :
/opt/nordic/ncs/toolchains/322ac893fe/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld: address 0x1c300 of bin/tfm_s.axf section `.TFM_UNPRIV_CODE&amp;#39; is not within region `FLASH&amp;#39;
/opt/nordic/ncs/toolchains/322ac893fe/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld: address 0x1fc40 of bin/tfm_s.axf section `.gnu.sgstubs&amp;#39; is not within region `FLASH&amp;#39;
/opt/nordic/ncs/toolchains/322ac893fe/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld: bin/tfm_s.axf section `.TFM_DATA&amp;#39; will not fit in region `FLASH&amp;#39;
/opt/nordic/ncs/toolchains/322ac893fe/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld: address 0x1c300 of bin/tfm_s.axf section `.TFM_UNPRIV_CODE&amp;#39; is not within region `FLASH&amp;#39;
/opt/nordic/ncs/toolchains/322ac893fe/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld: address 0x1fc40 of bin/tfm_s.axf section `.gnu.sgstubs&amp;#39; is not within region `FLASH&amp;#39;
/opt/nordic/ncs/toolchains/322ac893fe/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld: region `FLASH&amp;#39; overflowed by 15856 bytes
Memory region         Used Size  Region Size  %age Used
           FLASH:       64496 B      48640 B    132.60%
             RAM:       14560 B        32 KB     44.43%
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_PM_PARTITION_SIZE_TFM"&gt;CONFIG_PM_PARTITION_SIZE_TFM&lt;/a&gt;&amp;nbsp;suggests TFM FLASH size can be increased.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;&lt;/span&gt;Resolved TFM overflow by disabling TFM logging and increased&amp;nbsp;TFM partition size to 256kB (0x40000)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_TFM_PROFILE_TYPE_MINIMAL=n
CONFIG_TFM_LOG_LEVEL_SILENCE=y
CONFIG_PM_PARTITION_SIZE_TFM=0x40000&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Build was successful.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Disabling TFM logging was enough to prevent TFM FLASH overflow in this &amp;quot;cfb&amp;quot; sample&lt;/li&gt;
&lt;li&gt;However, the TFM partition size remained the same.&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Why hasn&amp;rsquo;t the FLASH region size changed to 320KB (0x40000) as per link above? Thanks.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2026_2D00_02_2D00_05-at-4.33.42_2F20_PM.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;RTT output:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;SEGGER J-Link V8.96 - Real time terminal output
SEGGER J-Link (unknown) V1.0, SN=&amp;lt;xxxxxxxxxxxx&amp;gt;
Process: JLinkExe

rtt:~$ Initialized ssd1306@3c
font width 10, font height 16
font width 15, font height 24
font width 20, font height 32
x_res 128, y_res 64, ppt 8, rows 8, cols 128
[00:00:00.001,617] &amp;lt;inf&amp;gt; udc_nrf: Preinit
*** Booting nRF Connect SDK v3.2.1-d8887f6f32df ***
*** Using Zephyr OS v4.2.99-ec78104f1569 ***
[00:00:00.012,725] &amp;lt;inf&amp;gt; udc_nrf: Initialized
Zephyr v4.2.99
Board target: thingy53/nrf5340/cpuapp/ns
[00:00:00.013,153] &amp;lt;dbg&amp;gt; cfb: cfb_framebuffer_init: number of fonts 3
[00:00:00.016,937] &amp;lt;inf&amp;gt; udc_nrf: SUSPEND state detected
[00:00:00.115,203] &amp;lt;inf&amp;gt; udc_nrf: Reset
[00:00:00.115,264] &amp;lt;inf&amp;gt; udc: ep 0x80 is not halted|disabled
[00:00:00.115,295] &amp;lt;inf&amp;gt; udc_nrf: RESUMING from suspend&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The sample &amp;quot;cfb&amp;quot; for NS build runs successfully. &amp;nbsp;However, for a typical NS application with BT, the TFM size would be greater than the default ~47.5KB.&lt;br /&gt;&lt;br /&gt;How do I configure CONFIG_PM_PARTITION_SIZE_TFM correctly?&amp;nbsp;Thank you.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;Ravi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/560391?ContentTypeID=1</link><pubDate>Thu, 05 Feb 2026 03:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:712025d9-cb9f-48d6-88b7-6b2ae2706f1e</guid><dc:creator>zpm1066</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;&lt;br /&gt;I&amp;#39;ll try your suggestion of disabling&amp;nbsp;&lt;span&gt;CONFIG_RESET_ON_FATAL_ERROR for the Thingy53 debugging. I&amp;#39;ll sync up with you on the findings.&lt;br /&gt;&lt;br /&gt;For thingy53/nrf5340/ns targets where the TF-M overflows FLASH significantly, can we not use the external FLASH?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;br /&gt;Ravi&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SSD1306 OLED display fails for nRF52840 boards using nRF Connect SDK 3.2.1</title><link>https://devzone.nordicsemi.com/thread/560300?ContentTypeID=1</link><pubDate>Wed, 04 Feb 2026 08:24:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93ad1560-1a33-46b0-8dcc-c72b2f9bd4c9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ravi,&lt;/p&gt;
[quote user="zpm1066"]I&amp;#39;ve tried to debug with&amp;nbsp;Segger&amp;#39;s Edu Mini probe and also the nrf54l15dk debug with Thingy53, with debug info to RTT. In both cases, I never get to a point where there is any output to RTT. Weird!&amp;nbsp;[/quote]
&lt;p&gt;This suggests that there may be an error occurring during startup before the logger is available. To troubleshoot this further I would disable the CONFIG_RESET_ON_FATAL_ERROR symbol in the project configuration and attach the debugger to see if the program entered the error handler.&lt;/p&gt;
[quote user="zpm1066"] It seems Nordic is deprecating&amp;nbsp;&lt;span&gt;thingy53/nrf5340/cpuapp/&lt;/span&gt;&lt;span&gt;ns&lt;/span&gt;[/quote]
&lt;p&gt;The Zephyr Bluetooth Host switched to using &lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.1.0/page/nrf/security/psa_certified_api_overview.html#psa_crypto_api"&gt;PSA Crypto &lt;/a&gt;instead having crypto support from tinycrypt built into the stack. For /ns targets &amp;nbsp;this requires building TF-M with these crypto services enabled, which significantly increases its memory footprint compared to the minimal TF-M builds used previously. The Thingy53 board uses static memory partitions that do not allocate sufficient memory to the secure region. For this reason, we have removed this board target from the BLE samples.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>