<?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>nrf5340 - FLASH overflow issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114601/nrf5340---flash-overflow-issue</link><description>Still working on nRF5340 with external QSPI NOR Flash model EN25QH64 (building environment: NCS 2.6.1, Zephyr 3.5.99). I use it for slot-1 partition during DFU. At build time the linker reports a FLASH region overflow by 15120 bytes 
 
 I&amp;#39;m not sure this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Oct 2024 14:34:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114601/nrf5340---flash-overflow-issue" /><item><title>RE: nrf5340 - FLASH overflow issue</title><link>https://devzone.nordicsemi.com/thread/507792?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 14:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ef1784f-242a-4c1d-be91-89586f185fe8</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;No problem, thank you Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 - FLASH overflow issue</title><link>https://devzone.nordicsemi.com/thread/507781?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 14:03:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64a8636e-6b70-4d81-afca-5cbb2e04ab3d</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the lack of response.&lt;/p&gt;
&lt;p&gt;I see that you&amp;#39;re getting help with this issue in your latest reply. I will have a look at the discussion and discuss it with the engineer handling that request.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 - FLASH overflow issue</title><link>https://devzone.nordicsemi.com/thread/506974?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2024 15:15:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df0a3762-ebf9-4ecb-a965-be9815cbe6a5</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;Following your advices I was able to move the mcuboot_secondary into external_flash.&lt;br /&gt;This required to fix pm_partition.yml and child_image/mcuboot.overlay.&lt;/p&gt;
&lt;p&gt;Here the mparts output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  external_flash (0x900000 - 9216kB): 
+------------------------------------------------+
| 0x0: mcuboot_secondary (0xe0000 - 896kB)       |
| 0x0: test (0x2000 - 8kB)                       |
| 0x2000: data (0xfe000 - 1016kB)                |
| 0xe0000: mcuboot_secondary_1 (0x40000 - 256kB) |
| 0x120000: external_flash (0x6e0000 - 7040kB)   |
| 0x900000: littlefs_storage (0x0 - 0B)          |
+------------------------------------------------+

  flash_primary (0x100000 - 1024kB): 
+--------------------------------------------------+
| 0x0: mcuboot (0x10000 - 64kB)                    |
+---0x10000: mcuboot_primary (0xe0000 - 896kB)-----+
| 0x10000: mcuboot_pad (0x200 - 512B)              |
+---0x10200: mcuboot_primary_app (0xdfe00 - 895kB)-+
| 0x10200: app (0xabe00 - 687kB)                   |
| 0xbc000: netcore_dfu (0x40000 - 256kB)           |
| 0xfc000: settings_storage (0x2000 - 8kB)         |
| 0xfe000: cosmed_pad (0x1000 - 4kB)               |
| 0xff000: cosmed_env (0x1000 - 4kB)               |
+--------------------------------------------------+

  otp (0x2fc - 764B): 
+------------------------------+
| 0xff8100: otp (0x2fc - 764B) |
+------------------------------+

  sram_primary (0x80000 - 512kB): 
+-----------------------------------------------+
| 0x20000000: pcd_sram (0x2000 - 8kB)           |
| 0x20002000: sram_primary (0x6e000 - 440kB)    |
| 0x20070000: rpmsg_nrf53_sram (0x10000 - 64kB) |
+-----------------------------------------------+

 CPUNET flash_primary (0x40000 - 256kB): 
+--------------------------------------------+
+---0x1000000: b0n_container (0x8800 - 34kB)-+
| 0x1000000: b0n (0x8580 - 33kB)             |
| 0x1008580: provision (0x280 - 640B)        |
+---0x1008800: app (0x37800 - 222kB)---------+
| 0x1008800: hci_ipc (0x37800 - 222kB)       |
+--------------------------------------------+

 CPUNET sram_primary (0x10000 - 64kB): 
+-------------------------------------------+
| 0x21000000: sram_primary (0x10000 - 64kB) |
+-------------------------------------------+&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;A new problem arises when I enable the secure boot option.&lt;br /&gt;If I set the prj.conf option CONFIG_SECURE_BOOT=y, the build gets done, but the J-Link flashing process won&amp;#39;t work.&lt;br /&gt;The board remains completely silent.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the mparts output:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; &lt;pre class="ui-code" data-mode="text"&gt;
  external_flash (0x900000 - 9216kB): 
+------------------------------------------------+
| 0x0: mcuboot_secondary (0xe0000 - 896kB)       |
| 0x0: test (0x2000 - 8kB)                       |
| 0x2000: data (0xfe000 - 1016kB)                |
| 0xe0000: mcuboot_secondary_1 (0x40000 - 256kB) |
| 0x120000: external_flash (0x6e0000 - 7040kB)   |
| 0x900000: littlefs_storage (0x0 - 0B)          |
+------------------------------------------------+

  flash_primary (0x100000 - 1024kB): 
+--------------------------------------------------+
| 0x0: mcuboot (0x10000 - 64kB)                    |
+---0x10000: mcuboot_primary (0xe0000 - 896kB)-----+
| 0x10000: mcuboot_pad (0x200 - 512B)              |
+---0x10200: mcuboot_primary_app (0xdfe00 - 895kB)-+
+---0x10200: b0_container (0x8000 - 32kB)----------+
| 0x10200: b0 (0x8000 - 32kB)                      |
+---0x18200: app_image (0x51f00 - 327kB)-----------+
+---0x18200: s0 (0x51f00 - 327kB)------------------+
+---0x18200: s0_image (0x51f00 - 327kB)------------+
| 0x18200: app (0x51f00 - 327kB)                   |
+---0x6a100: s1 (0x51f00 - 327kB)------------------+
| 0x6a100: s1_image (0x51f00 - 327kB)              |
+--------------------------------------------------+
| 0xbc000: netcore_dfu (0x40000 - 256kB)           |
| 0xfc000: settings_storage (0x2000 - 8kB)         |
| 0xfe000: cosmed_pad (0x1000 - 4kB)               |
| 0xff000: cosmed_env (0x1000 - 4kB)               |
+--------------------------------------------------+

  otp (0x2fc - 764B): 
+------------------------------------+
| 0xff8100: provision (0x280 - 640B) |
| 0xff8380: otp (0x7c - 124B)        |
+------------------------------------+

  sram_primary (0x80000 - 512kB): 
+-----------------------------------------------+
| 0x20000000: pcd_sram (0x2000 - 8kB)           |
| 0x20002000: sram_primary (0x6e000 - 440kB)    |
| 0x20070000: rpmsg_nrf53_sram (0x10000 - 64kB) |
+-----------------------------------------------+

 CPUNET flash_primary (0x40000 - 256kB): 
+--------------------------------------------+
+---0x1000000: b0n_container (0x8800 - 34kB)-+
| 0x1000000: b0n (0x8580 - 33kB)             |
| 0x1008580: provision (0x280 - 640B)        |
+---0x1008800: app (0x37800 - 222kB)---------+
| 0x1008800: hci_ipc (0x37800 - 222kB)       |
+--------------------------------------------+

 CPUNET sram_primary (0x10000 - 64kB): 
+-------------------------------------------+
| 0x21000000: sram_primary (0x10000 - 64kB) |
+-------------------------------------------+&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Can you&amp;nbsp;help please ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 - FLASH overflow issue</title><link>https://devzone.nordicsemi.com/thread/501940?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2024 12:54:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0862a76-6c47-4eb5-838a-bec38870f9ef</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;It looks like both your application slots (mcuboot_primary_app and mcuboot_secondary) are located in the internal flash, i.e: &lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mcuboot_primary:
  address: 0x10000
  end_address: 0x64000
  orig_span: &amp;amp;id001
  - app
  - mcuboot_pad
  region: flash_primary
  sharers: 0x1
  size: 0x54000
  span: *id001
mcuboot_primary_app:
  address: 0x10200
  end_address: 0x64000
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size: 0x53e00
  span: *id002
mcuboot_secondary:
  address: 0x64000
  end_address: 0xb8000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x4000
    align_next: 0x4000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x54000&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I assume that you would like to have the secondary slot on the external flash? If so, could you have a look at&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-2-dfu-over-usb-adding-external-flash/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-2-dfu-over-usb-adding-external-flash/&lt;/a&gt;&amp;nbsp;to see if you&amp;#39;re able to spot a configuration that you&amp;#39;re missing?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 - FLASH overflow issue</title><link>https://devzone.nordicsemi.com/thread/501921?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2024 12:14:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1664c62f-d955-42ac-89ea-9da74606506e</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;here you are Andreas&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;EMPTY_0:
  address: 0xb8000
  end_address: 0xbc000
  placement:
    after:
    - mcuboot_secondary
  region: flash_primary
  size: 0x4000
app:
  address: 0x10200
  end_address: 0x64000
  region: flash_primary
  size: 0x53e00
cosmed_env:
  address: 0xff000
  end_address: 0x100000
  placement:
    after:
    - settings_storage
  region: flash_primary
  size: 0x1000
cosmed_pad:
  address: 0xfe000
  end_address: 0xff000
  placement:
    after:
    - settings_storage
  region: flash_primary
  size: 0x1000
data:
  address: 0x0
  end_address: 0x100000
  region: external_flash
  size: 0x100000
external_flash:
  address: 0x100000
  end_address: 0x100000
  region: external_flash
  size: 0x0
mcuboot:
  address: 0x0
  end_address: 0x10000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0x10000
mcuboot_pad:
  address: 0x10000
  end_address: 0x10200
  placement:
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0x10000
  end_address: 0x64000
  orig_span: &amp;amp;id001
  - app
  - mcuboot_pad
  region: flash_primary
  sharers: 0x1
  size: 0x54000
  span: *id001
mcuboot_primary_app:
  address: 0x10200
  end_address: 0x64000
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size: 0x53e00
  span: *id002
mcuboot_secondary:
  address: 0x64000
  end_address: 0xb8000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x4000
    align_next: 0x4000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x54000
netcore_dfu:
  address: 0xbc000
  end_address: 0xfc000
  placement:
    before:
    - settings_storage
  region: flash_primary
  size: 0x40000
otp:
  address: 0xff8100
  end_address: 0xff83fc
  region: otp
  size: 0x2fc
pcd_sram:
  address: 0x20000000
  end_address: 0x20002000
  placement:
    after:
    - start
  region: sram_primary
  size: 0x2000
rpmsg_nrf53_sram:
  address: 0x20070000
  end_address: 0x20080000
  placement:
    before:
    - end
  region: sram_primary
  size: 0x10000
settings_storage:
  address: 0xfc000
  end_address: 0xfe000
  region: flash_primary
  size: 0x2000
sram_primary:
  address: 0x20002000
  end_address: 0x20070000
  region: sram_primary
  size: 0x6e000&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 - FLASH overflow issue</title><link>https://devzone.nordicsemi.com/thread/501899?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2024 11:38:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba67893e-d067-4cf4-a7d5-825c24b171f9</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you also share your partition map?&lt;/p&gt;
&lt;p&gt;You can either upload the generated map in build/partitions.yml, enter &amp;quot;ninja partition_manager_report&amp;quot; in command line or use the built in &amp;quot;memory report&amp;quot; action in VS Code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>