<?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 merging AWS IoT MQTT sample into existing project (TF-M overflow issue)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125666/flash-overflow-when-merging-aws-iot-mqtt-sample-into-existing-project-tf-m-overflow-issue</link><description>Hi, 
 We have an existing nRF91 (nRF9151) project (NCS 2.9.0 ) that already includes multiple modules such as ECG, external flash, RTC, modem, etc. Now we want to integrate AWS IoT MQTT functionality directly into our main application. 
 Since our original</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Nov 2025 08:51:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125666/flash-overflow-when-merging-aws-iot-mqtt-sample-into-existing-project-tf-m-overflow-issue" /><item><title>RE: FLASH overflow when merging AWS IoT MQTT sample into existing project (TF-M overflow issue)</title><link>https://devzone.nordicsemi.com/thread/555338?ContentTypeID=1</link><pubDate>Tue, 25 Nov 2025 08:51:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:364d77a8-c62a-4d45-9b7f-3fbb0b58b98f</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Milan,&lt;br /&gt;&lt;br /&gt;You could check if there are any unused features and drivers that can be disabled in your application. You could also consider disabling logging. Additionally, you can look at this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/memory-optimization-with-the-nrf-connect-sdk"&gt;guide&lt;/a&gt;&amp;nbsp;for some hints.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when merging AWS IoT MQTT sample into existing project (TF-M overflow issue)</title><link>https://devzone.nordicsemi.com/thread/555181?ContentTypeID=1</link><pubDate>Mon, 24 Nov 2025 11:02:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79fdb8fe-bae3-45a1-81b8-e329de28fc78</guid><dc:creator>Milan Pipaliya</dc:creator><description>&lt;p&gt;here means is&amp;nbsp;&lt;br /&gt;&lt;br /&gt;when one paripheral disable that time my nearly 99% flash use that time not boot and more 2 paripheral disable that time 94% flash usage in primary app usage that time build ,flash,boot successfully&lt;br /&gt;&lt;br /&gt;it means flash overflow issue&lt;br /&gt;&lt;br /&gt;when i secondary app partition remove so primary app total 800KB available and its working with all paripheral my firmware use 400 KB its perfectly working&lt;br /&gt;&lt;br /&gt;so when we primary and secondary parition that time flash overflow after adding this aws_iot_mqtt part it use huge flash usage so any solution for reduce flash usage&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when merging AWS IoT MQTT sample into existing project (TF-M overflow issue)</title><link>https://devzone.nordicsemi.com/thread/555173?ContentTypeID=1</link><pubDate>Mon, 24 Nov 2025 10:31:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:985eb138-97ed-4b4b-9fb9-da75148b4bb6</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Milan,&lt;/p&gt;
[quote user="Milan Pipaliya"]merge time we check different scinarios check like&lt;br /&gt;&lt;br /&gt;1) when we we one of paripheral disable that time build but flash is full thats why not boot&lt;br /&gt;2) when we multiple 2 or 3 paripheral disable that time build flash and boot also[/quote]
&lt;p&gt;Can you elaborate on 2 mentioned scenarios?&lt;br /&gt;Are there any other differences between 2 mentioned scenarios apart from different number of peripherals disabled?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when merging AWS IoT MQTT sample into existing project (TF-M overflow issue)</title><link>https://devzone.nordicsemi.com/thread/555104?ContentTypeID=1</link><pubDate>Sat, 22 Nov 2025 04:39:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58ab5486-3062-4eeb-a363-10b95b3d6393</guid><dc:creator>Milan Pipaliya</dc:creator><description>&lt;p&gt;merge time we check different scinarios check like&lt;br /&gt;&lt;br /&gt;1) when we we one of paripheral disable that time build but flash is full thats why not boot&lt;br /&gt;2) when we multiple 2 or 3 paripheral disable that time build flash and boot also&lt;br /&gt;&lt;br /&gt;so my concern is after merge aws_iot_mqtt example to our main code that time our flash is overflow due to above reason as i mantion my firmware is nearly 400KB&amp;nbsp;but partitions.yml&amp;nbsp;dynamically set 384KB thats why flash overflow is final conclusion&lt;br /&gt;&lt;br /&gt;so please guide us how to manage it&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when merging AWS IoT MQTT sample into existing project (TF-M overflow issue)</title><link>https://devzone.nordicsemi.com/thread/555066?ContentTypeID=1</link><pubDate>Fri, 21 Nov 2025 14:21:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b05c5265-6a19-4b34-b2d7-bd829c1f0200</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Milan,&lt;br /&gt;&lt;br /&gt;It is not clear to me if you managed to build and flash your project successfully or your build failed with the error due to flash overflow? Can you clarify this?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when merging AWS IoT MQTT sample into existing project (TF-M overflow issue)</title><link>https://devzone.nordicsemi.com/thread/555046?ContentTypeID=1</link><pubDate>Fri, 21 Nov 2025 12:53:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eceab334-40eb-4f12-8063-2f3fd1d01213</guid><dc:creator>Milan Pipaliya</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;Thanks for the support.&lt;/p&gt;
&lt;p&gt;Yes, the main issue right now is flash overflow.&lt;br /&gt; When we merge the AWS IoT MQTT + mbedTLS configs, our firmware size increases to ~400 KB, but our primary app partition is only 384 KB (because we use OTA/DFU with two app partitions).&lt;br /&gt; Because of this, the build fails inside TF-M due to FLASH overflow.&lt;/p&gt;
&lt;p&gt;We have already shared our &lt;code&gt;prj.conf&lt;/code&gt;, &lt;code&gt;pm_static.yml&lt;/code&gt;, and the merged AWS code.&lt;br /&gt; Could you please guide us on whether it&amp;rsquo;s possible to reduce flash usage or optimize the configuration so that AWS IoT can fit within the available partition size?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt; Milan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when merging AWS IoT MQTT sample into existing project (TF-M overflow issue)</title><link>https://devzone.nordicsemi.com/thread/555036?ContentTypeID=1</link><pubDate>Fri, 21 Nov 2025 11:53:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63893020-ca85-4176-81ce-06fad7a59ab2</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Are you able to get any logs if you add&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_AWS_IOT_LOG_LEVEL_DBG"&gt;CONFIG_AWS_IOT_LOG_LEVEL_DBG&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_MQTT_HELPER_LOG_LEVEL_DBG"&gt;CONFIG_MQTT_HELPER_LOG_LEVEL_DBG&lt;/a&gt;?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when merging AWS IoT MQTT sample into existing project (TF-M overflow issue)</title><link>https://devzone.nordicsemi.com/thread/554801?ContentTypeID=1</link><pubDate>Wed, 19 Nov 2025 13:54:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28ecd2f9-6c01-4b96-ac90-e77aa80ed8d9</guid><dc:creator>Milan Pipaliya</dc:creator><description>&lt;p&gt;We are currently developing an application on the nRF9151 using nRF Connect SDK 2.9.0.&lt;br /&gt;The project integrates multiple peripherals and features, all of which are working correctly with DFU OTA support.&lt;/p&gt;
&lt;p&gt;Integrated Peripherals&lt;br /&gt;SPI Interfaces&lt;/p&gt;
&lt;p&gt;MAX30001G &amp;ndash; ECG acquisition module&lt;/p&gt;
&lt;p&gt;MT29F NAND Flash &amp;ndash; External storage&lt;/p&gt;
&lt;p&gt;I2C Interfaces&lt;/p&gt;
&lt;p&gt;RTC module&lt;/p&gt;
&lt;p&gt;LIS2DW12 &amp;ndash; Accelerometer&lt;/p&gt;
&lt;p&gt;NPM1300 &amp;ndash; Power management IC&lt;/p&gt;
&lt;p&gt;UART Interface&lt;/p&gt;
&lt;p&gt;SIWG917Y Wi-Fi module&lt;/p&gt;
&lt;p&gt;Current Application Status&lt;/p&gt;
&lt;p&gt;All major functionalities are implemented and working as expected.&lt;/p&gt;
&lt;p&gt;DFU OTA update mechanism is functional and stable.&lt;/p&gt;
&lt;p&gt;Upcoming Enhancement&lt;/p&gt;
&lt;p&gt;We now want to extend the application by adding Cellular connectivity (LTE-M / NB-IoT) in addition to the existing Wi-Fi support.&lt;br /&gt;The goal is to have both Wi-Fi and Cellular as available communication options, integrated cleanly within the same firmware.&lt;br /&gt;&lt;br /&gt;NO as per above configuration boot so no log and no led on&lt;br /&gt;&lt;br /&gt;now we using partitions.yml using we create pm_static.yml and we add configuration in main code and cellular aws driver add and prj.conf change but not call just add&lt;br /&gt;&lt;br /&gt;now our main code boot but cellular modular code not boot&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;
# AWS IoT MQTT
CONFIG_AWS_IOT_LOG_LEVEL_DBG=y
CONFIG_AWS_TEST_SUITE_DQP=n
CONFIG_MQTT_LIB=y
CONFIG_MQTT_LIB_TLS=y
CONFIG_MQTT_KEEPALIVE=600
CONFIG_MQTT_LIB_TLS_USE_ALPN=y

# TLS (nRF Security only)
CONFIG_NRF_SECURITY=y
CONFIG_MBEDTLS_TLS_LIBRARY=y
CONFIG_MBEDTLS_LEGACY_CRYPTO_C=y
CONFIG_MBEDTLS_ENABLE_HEAP=y
CONFIG_MBEDTLS_HEAP_SIZE=10240
CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=10240
CONFIG_MBEDTLS_PEM_CERTIFICATE_FORMAT=y
CONFIG_MBEDTLS_SERVER_NAME_INDICATION=y
CONFIG_MBEDTLS_AES_ROM_TABLES=y
CONFIG_MBEDTLS_TLS_VERSION_1_2=y
CONFIG_MBEDTLS_MEMORY_DEBUG=y
CONFIG_MBEDTLS_HAVE_TIME_DATE=y
CONFIG_MBEDTLS_SSL_ALPN=y
CONFIG_MBEDTLS_SSL_CLI_C=y
CONFIG_MBEDTLS_X509_CRT_PARSE_C=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED=y
CONFIG_MBEDTLS_KEY_EXCHANGE_PSK_ENABLED=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED=y
CONFIG_MBEDTLS_SSL_SRV_C=y
CONFIG_MBEDTLS_KEY_EXCHANGE_RSA_ENABLED=y
CONFIG_MBEDTLS_CIPHER=y
CONFIG_MBEDTLS_MD=y
CONFIG_MBEDTLS_PK_C=y
CONFIG_MBEDTLS_PK_PARSE_C=y
CONFIG_MBEDTLS_PK_WRITE_C=y
CONFIG_MBEDTLS_RSA_C=y
CONFIG_MBEDTLS_PKCS1_V15=y
CONFIG_MBEDTLS_ECP_C=y
CONFIG_MBEDTLS_ECDSA_C=y
CONFIG_MBEDTLS_ECDH_C=y
CONFIG_MBEDTLS_DHM_C=y
CONFIG_MBEDTLS_GCM_C=y
CONFIG_MBEDTLS_SHA256_C=y
CONFIG_MBEDTLS_X509_USE_C=y
CONFIG_MBEDTLS_SSL_CONTEXT_SERIALIZATION=y
CONFIG_MBEDTLS_SSL_PROTO_TLS1_2=y

# LTE/Modem
CONFIG_NRF_MODEM_LIB=y
CONFIG_LTE_LINK_CONTROL=y

# Sockets offload for modem (if using LTE for AWS)
CONFIG_NET_NATIVE=n
CONFIG_NET_SOCKETS_OFFLOAD=y

# AWS IoT MQTT Helper
CONFIG_MQTT_HELPER_SEC_TAG=212

# SNTP
CONFIG_SNTP=y
CONFIG_SNTP_LOG_LEVEL_DBG=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;so we want configurtion and modular code which work saperatly and after merge it working&amp;nbsp;&lt;br /&gt;&lt;br /&gt;so please guide us to solve&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when merging AWS IoT MQTT sample into existing project (TF-M overflow issue)</title><link>https://devzone.nordicsemi.com/thread/554790?ContentTypeID=1</link><pubDate>Wed, 19 Nov 2025 13:04:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9055427-4817-4069-ba06-85575cc83a4e</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]The project builds &lt;strong&gt;until TF-M&lt;/strong&gt;, but after merging AWS configs, the build fails with a &lt;strong&gt;FLASH overflow inside TF-M&lt;/strong&gt;[/quote]
&lt;p&gt;How did you resolve this initial error?&lt;br /&gt;&lt;br /&gt;Can you provide details about your main application? What is your final goal after integrating AWS IoT functionality?&lt;br /&gt;&lt;br /&gt;Do you get any output after resetting the board? Do you have any log that you can share?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FLASH overflow when merging AWS IoT MQTT sample into existing project (TF-M overflow issue)</title><link>https://devzone.nordicsemi.com/thread/554630?ContentTypeID=1</link><pubDate>Tue, 18 Nov 2025 06:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c950380-4e28-489f-ade1-c4d12a983cc4</guid><dc:creator>Milan Pipaliya</dc:creator><description>&lt;p&gt;after updating my&amp;nbsp;&lt;br /&gt;&lt;br /&gt;pm_static.yml my code successfully build and flash but not run other prj config, overlay as it is&lt;br /&gt;&lt;br /&gt;updated pm_static.yml&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;
EMPTY_0:
  address: 0xc000
  end_address: 0x10000
  placement:
    before:
      - mcuboot_pad
  region: flash_primary
  size: 0x4000

EMPTY_1:
  address: 0xfe000
  end_address: 0x100000
  placement:
    after:
      - nvs_storage
  region: flash_primary
  size: 0x2000

EMPTY_2:
  address: 0xf0000
  end_address: 0xf8000
  placement:
    after:
      - mcuboot_secondary
  region: flash_primary
  size: 0x8000

app:
  address: 0x20000
  end_address: 0x80000
  region: flash_primary
  size: 0x60000

mcuboot:
  address: 0x0
  end_address: 0xc000
  placement:
    align:
      end: 0x1000
    before:
      - mcuboot_primary
  region: flash_primary
  size: 0xc000

mcuboot_pad:
  address: 0x10000
  end_address: 0x10200
  placement:
    align:
      start: 0x8000
    before:
      - mcuboot_primary_app
  region: flash_primary
  size: 0x200

mcuboot_primary:
  address: 0x10000
  end_address: 0x80000
  orig_span: &amp;amp;id001
    - mcuboot_pad
    - app
    - tfm
  region: flash_primary
  sharers: 0x1
  size: 0x70000
  span: *id001

mcuboot_primary_app:
  address: 0x10200
  end_address: 0x80000
  orig_span: &amp;amp;id002
    - app
    - tfm
  region: flash_primary
  size: 0x6fe00
  span: *id002

mcuboot_secondary:
  address: 0x80000
  end_address: 0xf0000
  placement:
    after:
      - mcuboot_primary
    align:
      start: 0x8000
  region: flash_primary
  share_size:
    - mcuboot_primary
  size: 0x70000

mcuboot_sram:
  address: 0x20000000
  end_address: 0x20008000
  orig_span: &amp;amp;id003
    - tfm_sram
  region: sram_primary
  size: 0x8000
  span: *id003

nonsecure_storage:
  address: 0xf8000
  end_address: 0xfe000
  orig_span: &amp;amp;id004
    - nvs_storage
  region: flash_primary
  size: 0x6000
  span: *id004

nrf_modem_lib_ctrl:
  address: 0x20008000
  end_address: 0x200084e8
  inside:
    - sram_nonsecure
  placement:
    after:
      - tfm_sram
      - start
  region: sram_primary
  size: 0x4e8

nrf_modem_lib_rx:
  address: 0x2000a568
  end_address: 0x2000c568
  inside:
    - sram_nonsecure
  placement:
    after:
      - nrf_modem_lib_tx
  region: sram_primary
  size: 0x2000

nrf_modem_lib_sram:
  address: 0x20008000
  end_address: 0x2000c568
  orig_span: &amp;amp;id005
    - nrf_modem_lib_ctrl
    - nrf_modem_lib_tx
    - nrf_modem_lib_rx
  region: sram_primary
  size: 0x4568
  span: *id005

nrf_modem_lib_tx:
  address: 0x200084e8
  end_address: 0x2000a568
  inside:
    - sram_nonsecure
  placement:
    after:
      - nrf_modem_lib_ctrl
  region: sram_primary
  size: 0x2080

nvs_storage:
  address: 0xf8000
  end_address: 0xfe000
  inside:
    - nonsecure_storage
  placement:
    align:
      start: 0x8000
    before:
      - end
  region: flash_primary
  size: 0x6000

otp:
  address: 0xff8108
  end_address: 0xff83fc
  region: otp
  size: 0x2f4

sram_nonsecure:
  address: 0x20008000
  end_address: 0x20040000
  orig_span: &amp;amp;id006
    - sram_primary
    - nrf_modem_lib_ctrl
    - nrf_modem_lib_tx
    - nrf_modem_lib_rx
  region: sram_primary
  size: 0x38000
  span: *id006

sram_primary:
  address: 0x2000c568
  end_address: 0x20040000
  region: sram_primary
  size: 0x33a98

sram_secure:
  address: 0x20000000
  end_address: 0x20008000
  orig_span: &amp;amp;id007
    - tfm_sram
  region: sram_primary
  size: 0x8000
  span: *id007

tfm:
  address: 0x10200
  end_address: 0x20000
  inside:
    - mcuboot_primary_app
  placement:
    before:
      - app
  region: flash_primary
  size: 0xfe00

tfm_nonsecure:
  address: 0x20000
  end_address: 0x80000
  orig_span: &amp;amp;id008
    - app
  region: flash_primary
  size: 0x60000
  span: *id008

tfm_secure:
  address: 0x10000
  end_address: 0x20000
  orig_span: &amp;amp;id009
    - mcuboot_pad
    - tfm
  region: flash_primary
  size: 0x10000
  span: *id009

tfm_sram:
  address: 0x20000000
  end_address: 0x20008000
  inside:
    - sram_secure
  placement:
    after:
      - start
  region: sram_primary
  size: 0x8000&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;our proj also use dfu for ota thats why we use child image but we dont change but we give only for source mcuboot.conf&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#Enable logging for MCUboot
CONFIG_LOG=y
CONFIG_MCUBOOT_LOG_LEVEL_WRN=y ## after dfu done change this in warning.

#Enable Serial Recovery over UART
CONFIG_MCUBOOT_SERIAL=y
CONFIG_BOOT_SERIAL_UART=y

# Disable console UART, since Serial Recovery uses UART
CONFIG_UART_CONSOLE=n

CONFIG_DISABLE_FLASH_PATCH=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;so guide us any changes we do here or any other place please guide us for&lt;br /&gt;&lt;br /&gt;&lt;span&gt;after updating my&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;pm_static.yml my code successfully build and flash but not run&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>