<?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>FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96756/flash-overflow-when-building-for-thingy-53</link><description>Hi. 
 I&amp;#39;m trying to build a project for Thingy 53 which works fine in NRF5340DK, using VSCode with nRF Connect SDK v2.2.0, but I&amp;#39;m getting a FLASH Overflow error related with TF-M. The project is a more developed version of the one attached in this ticket</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Oct 2023 04:48:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96756/flash-overflow-when-building-for-thingy-53" /><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/451413?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2023 04:48:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:106f1f4a-bffb-455b-beb6-1aa286614930</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;There might be some thingy53-specific configuration. Yes, with the updated version of NCS, I guess there is no support for thingy 53 and the TFM secure partition sample. See the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/tfm/tfm_secure_peripheral/README.html#:~:text=The%20sample%20supports%20the%20following%20development%20kits%3A"&gt;supported boards&lt;/a&gt;&amp;nbsp;section for this&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/tfm/tfm_secure_peripheral/README.html"&gt;sample&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/450850?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2023 12:54:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0523c59-f4e8-47bb-8d48-da9e1850694a</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I can now see the reports but the problem is that not even the tfm secure partition sample can be built for the Thingy, as it appears to be unsupported, which is strange since it was supported in previous SDK versions and it has the same flash and RAM memory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/450754?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2023 07:45:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:277c4276-29cc-4ac7-bb65-cb16e353338e</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Hello,&lt;br /&gt;&lt;br /&gt; Are you able to see the memory reports now? Since you are getting flash overflow and yours is a big project with TFM I would suggest to add the configuration one by one and see which configuration will fit and which one is throwing the error. There might be some Thingy specific configuration which is throwing the error. It&amp;#39;s hard to reproduce this here (as your project is quite complex with lot of configuration).&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Kind Regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Abhijith&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/450272?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2023 11:32:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2395a7e-cb70-4921-a3e7-eb4a7a14e352</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have managed to build the project properly for nRF5340DK using 2.4.0. version of the SDK, but I still face the same issue when trying to build for Thingy 53 with the same flash overflow. Is there any possible approach?&lt;br /&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/438218?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 10:24:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cbad3e2-b27d-4010-848e-48ffc37b7569</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry I was unclear about the issue. The RAM/FLASH overflow happened with previous version 2.2.0. Now using version 2.4.0 the building process doesn&amp;#39;t reach that point, giving the error from my previous reply. When trying to generate the memory report in VSCode it just gives a fatal error without any explanation, probably because the building process failed too soon:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Command failed: west build -d c:\Users\mario\OneDrive\Escritorio\bls-hsm\remote-signer\build_1 -t footprint
FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;c:\Users\mario\OneDrive\Escritorio\bls-hsm\remote-signer\build_1&amp;#39; --target footprint&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/438095?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 13:31:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:470f7376-7686-47fb-b2d0-c9ed347179b9</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s bit hard to reproduce/debug the flash overflow error as your project seems quite big with lot of configurations. Why you are not able to generate the memory report? What is the error you are getting when trying to generate the memory report? Have you tried from the VS-code?&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/436205?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 10:12:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed5b59a6-41b3-4d56-925a-ca196a44755f</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The first error I get is related to a Kconfig warning, giving this output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;warning: the hex symbol USB_DEVICE_PID (defined at C:/Users/mario/OneDrive/Escritorio/bls-hsm/remote-signer/Kconfig:4, subsys/usb/device/Kconfig:25) has a non-hex default USB_PID_CDC_ACM_SAMPLE (undefined)

error: Aborting due to Kconfig warnings

CMake Error at C:/ncs/v2.4.0/zephyr/cmake/modules/kconfig.cmake:339 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  C:/ncs/v2.4.0/nrf/cmake/modules/kconfig.cmake:29 (include)
  C:/ncs/v2.4.0/zephyr/cmake/modules/zephyr_default.cmake:115 (include)
  C:/ncs/v2.4.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/ncs/v2.4.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
  CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This seems to be solved assigning a hexadecimal value to that config, but then I get these errors when trying to build it again:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;[6/309] Generating ../../tfm/CMakeCache.txt&lt;/code&gt;&lt;br /&gt;&lt;code&gt;FAILED: tfm/CMakeCache.txt &lt;/code&gt;&lt;br /&gt;&lt;code&gt;cmd.exe /C &amp;quot;cd /D C:\Users\mario\OneDrive\Escritorio\bls-hsm\remote-signer\build_2\tfm &amp;amp;&amp;amp; C:\ncs\toolchains\31f4403e35\opt\bin\cmake.exe -GNinja -DTFM_TOOLCHAIN_FILE=C:/ncs/v2.4.0/modules/tee/tf-m/trusted-firmware-m/toolchain_GNUARM.cmake -DCROSS_COMPILE=C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi -DCMAKE_BUILD_TYPE=MinSizeRel -DTFM_PLATFORM=C:/ncs/v2.4.0/nrf/modules/tfm/tfm/boards/nrf9160 -DCONFIG_TFM_BUILD_LOG_QUIET=ON -DCONFIG_TFM_SPM_BACKEND=&amp;quot;IPC&amp;quot; -DBL2=FALSE -DNS=FALSE -DTFM_ISOLATION_LEVEL=1 -DITS_MAX_ASSET_SIZE=512 -DTFM_EXCEPTION_INFO_DUMP=OFF -DTFM_PARTITION_LOG_LEVEL=TFM_PARTITION_LOG_LEVEL_SILENCE -DTFM_SPM_LOG_LEVEL=TFM_SPM_LOG_LEVEL_SILENCE -DTFM_PARTITION_NS_AGENT_MAILBOX=OFF -DTFM_PARTITION_PROTECTED_STORAGE=ON -DTFM_PARTITION_INTERNAL_TRUSTED_STORAGE=ON -DTFM_PARTITION_CRYPTO=ON -DTFM_PARTITION_PLATFORM=ON -DTFM_PARTITION_INITIAL_ATTESTATION=ON -DTFM_PARTITION_FIRMWARE_UPDATE=OFF -DCRYPTO_RNG_MODULE_DISABLED=FALSE -DCRYPTO_KEY_MODULE_DISABLED=FALSE -DCRYPTO_AEAD_MODULE_DISABLED=FALSE -DCRYPTO_MAC_MODULE_DISABLED=FALSE -DCRYPTO_HASH_MODULE_DISABLED=FALSE -DCRYPTO_CIPHER_MODULE_DISABLED=FALSE -DCRYPTO_ASYM_SIGN_MODULE_DISABLED=FALSE -DCRYPTO_ASYM_ENCRYPT_MODULE_DISABLED=FALSE -DCRYPTO_KEY_DERIVATION_MODULE_DISABLED=FALSE -DQCBOR_PATH=C:/ncs/v2.4.0/modules/tee/tf-m/trusted-firmware-m/../qcbor -DCONFIG_TFM_ENABLE_FP=OFF -DHAL_NORDIC_PATH=C:/ncs/v2.4.0/modules/hal/nordic -DNRF_ALLOW_NON_SECURE_RESET=ON -DCONFIG_TFM_HALT_ON_CORE_PANIC= -DSECURE_UART1= -DCONFIG_TFM_LOG_SHARE_UART= -DNRF_DIR=C:/ncs/v2.4.0/nrf -DZEPHYR_BASE=C:/ncs/v2.4.0/zephyr -DCRYPTO_HW_ACCELERATOR=True -DPLATFORM_DEFAULT_UART_STDOUT=OFF -DPython3_EXECUTABLE=C:/ncs/toolchains/31f4403e35/opt/bin/python.exe -DPYTHON_PREFER=C:/ncs/toolchains/31f4403e35/opt/bin/python.exe -DPROJECT_CONFIG_HEADER_FILE=C:/Users/mario/OneDrive/Escritorio/bls-hsm/remote-signer/build_2/modules/nrf/modules/tfm/zephyr/tfm_config.h -DNRF_SECURITY_SETTINGS=&amp;quot;ZEPHYR_DOTCONFIG=C:/Users/mario/OneDrive/Escritorio/bls-hsm/remote-signer/build_2/zephyr/.config GCC_M_CPU=cortex-m33 ARM_MBEDTLS_PATH=C:/ncs/v2.4.0/modules/crypto/mbedtls ZEPHYR_AUTOCONF=C:/Users/mario/OneDrive/Escritorio/bls-hsm/remote-signer/build_2/zephyr/include/generated/autoconf.h&amp;quot; -DTFM_MBEDCRYPTO_CONFIG_PATH:STRING=nrf-config.h -DTFM_MBEDCRYPTO_PLATFORM_EXTRA_CONFIG_PATH:STRING=nrf-config-user.h -DTFM_EXTRA_MANIFEST_LIST_FILES=C:/Users/mario/OneDrive/Escritorio/bls-hsm/remote-signer/build_2/secure_partition/tfm_manifest_list.yaml -DTFM_EXTRA_PARTITION_PATHS=C:/Users/mario/OneDrive/Escritorio/bls-hsm/remote-signer/../secure_partition -DMBEDCRYPTO_PATH=C:/ncs/v2.4.0/nrfxlib/nrf_security/tfm -DTFM_TEST_REPO_PATH=C:/ncs/v2.4.0/modules/tee/tf-m/trusted-firmware-m/../tf-m-tests -DPSA_ARCH_TESTS_PATH=C:/ncs/v2.4.0/modules/tee/tf-m/trusted-firmware-m/../psa-arch-tests C:/ncs/v2.4.0/modules/tee/tf-m/trusted-firmware-m&amp;quot;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;-- Found Git: C:/ncs/toolchains/31f4403e35/mingw64/bin/git.exe (found version &amp;quot;2.37.3.windows.1&amp;quot;) &lt;/code&gt;&lt;br /&gt;&lt;code&gt;-- The C compiler identification is GNU 12.2.0&lt;/code&gt;&lt;br /&gt;&lt;code&gt;-- The ASM compiler identification is GNU&lt;/code&gt;&lt;br /&gt;&lt;code&gt;-- Found assembler: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe&lt;/code&gt;&lt;br /&gt;&lt;code&gt;-- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found version &amp;quot;3.8.2&amp;quot;) found components: Interpreter &lt;/code&gt;&lt;br /&gt;&lt;code&gt;Traceback (most recent call last):&lt;/code&gt;&lt;br /&gt;&lt;code&gt; File &amp;quot;C:/ncs/v2.4.0/modules/tee/tf-m/trusted-firmware-m/tools/tfm_parse_manifest_list.py&amp;quot;, line 723, in &amp;lt;module&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt; main()&lt;/code&gt;&lt;br /&gt;&lt;code&gt; File &amp;quot;C:/ncs/v2.4.0/modules/tee/tf-m/trusted-firmware-m/tools/tfm_parse_manifest_list.py&amp;quot;, line 711, in main&lt;/code&gt;&lt;br /&gt;&lt;code&gt; context = process_partition_manifests(manifest_lists,&lt;/code&gt;&lt;br /&gt;&lt;code&gt; File &amp;quot;C:/ncs/v2.4.0/modules/tee/tf-m/trusted-firmware-m/tools/tfm_parse_manifest_list.py&amp;quot;, line 303, in process_partition_manifests&lt;/code&gt;&lt;br /&gt;&lt;code&gt; logging.info(&amp;quot; {:40s} ON&amp;quot;.format(manifest_item['description']))&lt;/code&gt;&lt;br /&gt;&lt;code&gt;KeyError: &amp;#39;description&amp;#39;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CMake Error at c:\Users\mario\OneDrive\Escritorio\bls-hsm\remote-signer\build_2\tools\CMakeLists.txt:192 (message):&lt;/code&gt;&lt;br /&gt;&lt;code&gt; Manifest tool failed to generate files!&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;code&gt;-- Configuring incomplete, errors occurred!&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;(I tried to insert this output as the one above but it didn&amp;#39;t let me do it)&lt;/p&gt;
&lt;p&gt;I also tried to generate the memory report, but it gives an error when generating too.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/435951?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 11:33:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2781a616-56c8-45cb-b3a7-54312a53c8bb</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;AFAIK, there is not much configuration changes with latest update (Since you are moving from NCS V2.2.0). Can you share the error logs? Please use insert tab to paste the log as it will help to read through the log easily.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since it is a flash overflow error I am sharing few thought which could be followed for optimizing the memory:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Disabling debug and logging (you mentioned debug is not enabled).&lt;/li&gt;
&lt;li&gt;Next I would recommend you to go through&amp;nbsp;&lt;a title="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/debunking-misconceptions-a-technical-analysis-of-nrf5-sdk-and-nrf-connect-sdk#mcetoc_1gt36dhrh1:~:text=dk%20(target%20nrf52dk_nrf52832).-,memory%20footprint,-going%20from%20a" href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/debunking-misconceptions-a-technical-analysis-of-nrf5-sdk-and-nrf-connect-sdk#mcetoc_1gt36dhrh1:~:text=DK%20(target%20nrf52dk_nrf52832).-,Memory%20footprint,-Going%20from%20a" rel="noopener noreferrer" target="_blank"&gt;this guide&lt;/a&gt; which explains on optimizing the memory footprints in nRF connect SDK. See the &lt;a title="https://developer.nordicsemi.com/nrf_connect_sdk/doc/latest/nrf/test_and_optimize/optimizing/memory.html" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/test_and_optimize/optimizing/memory.html" rel="noopener noreferrer" target="_blank"&gt;Memory footprint optimization&lt;/a&gt; section inside or developer page.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can also share the memory report of your application by using the command &amp;quot;nrfjprog_manager_report&amp;quot; or use the &lt;a title="https://nrfconnect.github.io/vscode-nrf-connect/guides/memory_overview.html" href="https://nrfconnect.github.io/vscode-nrf-connect/guides/memory_overview.html" rel="noopener noreferrer" target="_blank"&gt;VScode extension&lt;/a&gt; for generating the same.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/435450?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 10:53:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e3a0fc5-ec36-4138-8951-b412e14f2497</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tried building with the latest NCS version and it won&amp;#39;t even start the bulding process, giving a configuration error at the beginning. Is it possible I need to readapt the whole project to the new version due to changes in configurations in recent NCS versions?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/434910?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2023 10:07:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26225c4f-b740-4da4-97a3-647d891e499b</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="MarioDLH"]Is there anything that could fix it or has it been fixed in recent updates?[/quote]
&lt;p&gt;I am not sure on this but can you try updating the NCS to latest version and see whether that fixes this issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/434660?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 10:41:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c5681b2-1737-49df-a452-9a619df4113f</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;In addition to the problem with the Thingy 53, we are also facing a similar problem when trying to build the project with additional configurations for nRF9160DK, but the issue is still related to the TFM partition, being in this case a RAM overflow. The error given says &amp;quot;TFM_APP_ROT_LINKER_BSS&amp;#39; will not fit in region `RAM&amp;#39;&amp;quot;. Is there anything that could fix it or has it been fixed in recent updates?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/433436?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 11:05:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e323ab0-7448-4d5a-8f43-ace4c023fe49</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Thanks for the response. Debug options is not enabled. The options used are only the necessary for the project to work properly, but it still gives the flash overflow error. I hope there is another solution.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/424017?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 13:27:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f5c71b3-ddd1-4809-bfaa-e1484d271f02</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;Sorry for the long response time I took here.&lt;/p&gt;
&lt;p&gt;I was checking with my colleague about this issue. Are you building this with debug options Enabled? This might be the reason for TFM Image not fitting inside default flash region allocated for TF-M.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/416754?ContentTypeID=1</link><pubDate>Wed, 22 Mar 2023 10:37:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:315801cb-aba3-426a-97b1-ac4a32c2455c</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;There are no updates yet, we&amp;#39;re still working on this. Regarding the secure partition sample, I managed to build it following the instructions given in the mentioned ticket at the first post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/416601?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 14:43:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:289eab32-3566-446d-9f34-7c8e46fa4227</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry somehow I missed this ticket. Is there any update on this issue? I tried to build the TF-M secure partition sample with Thingy53 but it is not working well. I am checking with my colleagues about this and I will get back to you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/411995?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 13:58:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edfe30a3-e32e-4911-b2a7-2295cbf779a3</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The project main folder is called &lt;em&gt;remote-signer&lt;/em&gt;, which uses &lt;em&gt;secure_partition&lt;/em&gt; the way it&amp;#39;s used in the&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/samples/tfm_integration/tfm_secure_partition/README.html"&gt;zephyr tfm secure partition sample&lt;/a&gt;. The libraries and includes are located in &lt;em&gt;libs&lt;/em&gt; folder. There is no need to make it private as the full project is public in github&amp;nbsp;&lt;a href="https://github.com/decentralizedsecurity/bls-hsm/tree/tfm"&gt;here&lt;/a&gt;, where there is more info about the project. If you need more information about it feel free to ask.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/411934?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 11:24:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:285613d7-e66b-4f1c-8f92-4aad88e007e8</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for sharing the project. Could&amp;nbsp; you give me some more context on this. May be explaining the files included in the Zip might give me some more idea. I can make the case private So that the discussion will stay with us. Please let me know if I need to do so.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/411621?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 10:39:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a18f2ac8-e4e5-444e-9c9b-d4c98b3371d6</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the support. I&amp;#39;ve attached the full project if you want to replicate the issue. In order to build it, usb.conf has to be added as a kconfig fragment. I hope it helps.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/bls_2D00_hsm_2D00_tfm.zip"&gt;devzone.nordicsemi.com/.../bls_2D00_hsm_2D00_tfm.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/411604?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 10:13:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b346c1c-e24d-40cc-a146-0de0eeeda74f</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Letting you know I am looking into this. But I need some more time for finding the proper issue.&lt;/p&gt;
&lt;p&gt;Thank you for understanding.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/410852?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 11:03:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c5189c6-b23e-477e-b5b9-3457dad8a149</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m afraid I cannot reproduce it in a minimal project as it is a problem that comes with all the source code and libraries used&amp;nbsp; in the full project, which I believe causes the flash overflow for Thingy 53, but the .conf files used include these options:&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BUILD_WITH_TFM&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_TFM_PROFILE_TYPE_NOT_SET&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_TFM_LOG_LEVEL_SILENCE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_STDOUT_CONSOLE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NEWLIB_LIBC&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#for u64 serialization&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NEWLIB_LIBC&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NEWLIB_LIBC_NANO&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NEWLIB_LIBC_FLOAT_PRINTF&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CJSON_LIB&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MAIN_STACK_SIZE=17408&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NORDIC_SECURITY_BACKEND&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NRF_SECURITY&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_PSA_CRYPTO_C&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PM_PARTITION_SIZE_TFM&lt;/span&gt;&lt;span&gt;=0x60000&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;CONFIG_USB_DEVICE_STACK&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_USB_DEVICE_PRODUCT&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;Remote Signer&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_USB_DRIVER_LOG_LEVEL_ERR&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_USB_DEVICE_LOG_LEVEL_ERR&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SERIAL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_UART_INTERRUPT_DRIVEN&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_UART_LINE_CTRL&lt;/span&gt;&lt;span&gt;=y&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;If this isn&amp;#39;t enough I could try reproducing it anyway with only the libraries and without source files but at the end all the code would be necessary and I don&amp;#39;t think that could help. Also I tried modifying options like&amp;nbsp;&lt;span&gt;CONFIG_PM_PARTITION_SIZE_TFM and&amp;nbsp;CONFIG_MAIN_STACK_SIZE without making any difference as I said before.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when building for Thingy 53</title><link>https://devzone.nordicsemi.com/thread/410616?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 11:56:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9ea0197-e97a-4786-ac90-3e239580fafb</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you experiencing this while running the sample from SDK &lt;span style="color:rgba(0, 0, 255, 1);"&gt;(ncs\v2.2.0\zephyr\samples\tfm_integration\tfm_secure_partition)&lt;/span&gt;?&lt;/p&gt;
&lt;p&gt;Could you share a minimal project to reproduce this? Or please share the changes you made in the proj.config of the sample file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>