<?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>Use internal flash MCUboot and nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109273/use-internal-flash-mcuboot-and-nrf5340</link><description>I&amp;#39;m trying to setup so that I can do firmware update on nRF5340 using only the internal flash. Due to the many dependencies between different images I&amp;#39;m creating my custom board by using a copy of the thingy53 board, however on my board there is no external</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Oct 2024 12:44:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109273/use-internal-flash-mcuboot-and-nrf5340" /><item><title>RE: Use internal flash MCUboot and nRF5340</title><link>https://devzone.nordicsemi.com/thread/505887?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 12:44:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c1f965f-61ee-4fe7-88ca-b92ab422266b</guid><dc:creator>tomas_mjp</dc:creator><description>&lt;p&gt;I solved it by adding a custom &lt;strong&gt;pm_static.yml&lt;/strong&gt; file for the network core.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0x1008800
  end_address: 0x1020000
  orig_span: &amp;amp;id001
  - nodeNetworkCore
  region: flash_primary
  size: 0x17800
  span: *id001
b0n:
  address: 0x1000000
  end_address: 0x1008580
  placement:
    after:
    - start
  region: flash_primary
  size: 0x8580
b0n_container:
  address: 0x1000000
  end_address: 0x1008800
  orig_span: &amp;amp;id002
  - b0n
  - provision
  region: flash_primary
  size: 0x8800
  span: *id002
nodeNetworkCore:
  address: 0x1008800
  end_address: 0x1020000
  region: flash_primary
  size: 0x17800
provision:
  address: 0x1008580
  end_address: 0x1008800
  placement:
    after:
    - b0n
  region: flash_primary
  size: 0x280
sram_primary:
  address: 0x21000000
  end_address: 0x21010000
  region: sram_primary
  size: 0x10000&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use internal flash MCUboot and nRF5340</title><link>https://devzone.nordicsemi.com/thread/505789?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 19:40:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e70d476d-6a7b-459c-be42-7aa5ea579b4a</guid><dc:creator>tomas_mjp</dc:creator><description>&lt;p&gt;Thank you very much!&amp;nbsp;I&amp;#39;m able to update the appcore but netcore is giving me some troubles and I think it&amp;#39;s related to the netcore partitions size.&lt;/p&gt;
&lt;p&gt;Can you show me your &lt;strong&gt;pm_static.yml&lt;/strong&gt; file?&lt;/p&gt;
&lt;p&gt;This is mine,&amp;nbsp;I&amp;#39;m setting netcore partitions size of 128kB.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address:     0x00c200
  end_address: 0x074000
  region: flash_primary
  size:        0x067e00

mcuboot:
  address:     0x000000
  end_address: 0x00c000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size:        0x00c000

mcuboot_pad:
  address:     0x00c000
  end_address: 0x00c200
  placement:
    align:
      start:   0x004000
    before:
    - mcuboot_primary_app
  region: flash_primary
  size:        0x000200

mcuboot_primary:
  address:     0x00c000
  end_address: 0x074000
  orig_span: &amp;amp;id001
  - mcuboot_pad
  - app
  region: flash_primary
  sharers: 0x1
  size:        0x068000
  span: *id001

mcuboot_primary_app:
  address:     0x00c200
  end_address: 0x074000
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size:        0x067e00
  span: *id002

mcuboot_secondary:
  address:     0x074000
  end_address: 0x0dc000
  placement:
    after:
    - mcuboot_primary
    align:
      start:   0x004000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size:        0x068000

#NetCore partitions
# NetCore primary partition in AppCore RAM. Needed for DFU
mcuboot_primary_1:
  address: 0x0
  device: flash_ctrl
  end_address: 0x020000
  region: ram_flash
  size: 0x020000

# RAM allocation for NetCore primary partition. Used by MCUBoot. Needed for DFU
ram_flash:
  address: 0x20000
  end_address: 0x20000
  region: ram_flash
  size: 0x0

# NetCore secondary partition in internal flash. Needed for DFU
mcuboot_secondary_1:
  address:     0x0dc000
  end_address: 0x0fc000
  placement:
    after:
    - mcuboot_secondary
  region: flash_primary
  size:        0x020000

nvs_storage:
  address:     0x0fc000
  end_address: 0x100000
  placement:
    after:
    - mcuboot_secondary_1
  region: flash_primary
  size:        0x004000
  
otp:
  address: 0xff8100
  end_address: 0xff83fc
  region: otp
  size: 0x2fc

pcd_sram:
  address: 0x2006f000
  end_address: 0x20071000
  placement:
    before:
    - networkCore_sram
    - end
  region: sram_primary
  size: 0x2000
  
networkCore_sram:
  address: 0x20071000
  end_address: 0x20080000
  placement:
    before:
    - end
  region: sram_primary
  size: 0xF000
  
shared_sram:
  address: 0x20000000
  end_address: 0x20001000
  placement:
    before:
    - sram_primary
  region: sram_primary
  size: 0x1000

sram_primary:
  address: 0x20010000
  end_address: 0x2006f000
  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: Use internal flash MCUboot and nRF5340</title><link>https://devzone.nordicsemi.com/thread/504875?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2024 14:38:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c01abaab-c42f-47e7-8b9b-b365ed93d7d5</guid><dc:creator>Johan_c</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="diff"&gt;diff --git a/modules/mcuboot/boot/zephyr/Kconfig b/modules/mcuboot/boot/zephyr/Kconfig
index f59464b54..519ea2ddf 100644
--- a/modules/mcuboot/boot/zephyr/Kconfig
+++ b/modules/mcuboot/boot/zephyr/Kconfig
@@ -103,7 +103,7 @@ config BOOT_ERASE_PROGRESSIVELY
 
 config BOOT_IMAGE_ACCESS_HOOKS
        bool
-       default y if UPDATEABLE_IMAGE_NUMBER &amp;gt; 1 &amp;amp;&amp;amp; SOC_NRF5340_CPUAPP &amp;amp;&amp;amp; PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY
+       default y if UPDATEABLE_IMAGE_NUMBER &amp;gt; 1 &amp;amp;&amp;amp; SOC_NRF5340_CPUAPP
        depends on MCUBOOT
 
 config BOOT_IMAGE_ACCESS_HOOK_NRF5340
@@ -128,7 +128,6 @@ config NRF53_MULTI_IMAGE_UPDATE
        depends on FLASH_SIMULATOR
        depends on FLASH_SIMULATOR_DOUBLE_WRITES
        depends on !FLASH_SIMULATOR_STATS
-       depends on PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY
        depends on BOOT_UPGRADE_ONLY || USE_NRF53_MULTI_IMAGE_WITHOUT_UPGRADE_ONLY
        depends on $(dt_compat_enabled,$(DT_COMPAT_SIM_FLASH))
        select NRF53_MCUBOOT_PRIMARY_1_RAM_FLASH&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;together with a custom pm_static_*.yml file for my board. it was kind of painful to configure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use internal flash MCUboot and nRF5340</title><link>https://devzone.nordicsemi.com/thread/504870?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2024 14:30:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9111db35-7821-4234-ab15-1d201eb87760</guid><dc:creator>tomas_mjp</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;&amp;nbsp;I&amp;#39;ve applied this&amp;nbsp;patch for&amp;nbsp;mcuboot_secondary_1&amp;nbsp;internal flash partition and this (&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/90503/ncs-2-0-custom-child-image-mcuboot-build/498073"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/90503/ncs-2-0-custom-child-image-mcuboot-build/498073&lt;/a&gt;) patch to use multi-image DFU with custom child image.&lt;/p&gt;
&lt;p&gt;This is the error log I get:&amp;nbsp;&lt;a href="https://drive.google.com/file/d/12iGFO8_-eddMKNov1LSvMbGuPV_KAU2L/view?usp=sharing"&gt;https://drive.google.com/file/d/12iGFO8_-eddMKNov1LSvMbGuPV_KAU2L/view?usp=sharing&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I have another project where I use external flash and the configurations are quite similar but the compilation goes well with the same two patches.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;EDIT:&amp;nbsp;I was missing CONFIG_MCUBOOT_BOOTUTIL_LIB config, compilation is working ok now&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use internal flash MCUboot and nRF5340</title><link>https://devzone.nordicsemi.com/thread/504866?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2024 14:22:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23f9e5a0-2cb9-45ff-b548-2e3fd3aeb89f</guid><dc:creator>tomas_mjp</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/johan_5f00_c"&gt;Johan_c&lt;/a&gt;&amp;nbsp;do you remember&amp;nbsp;what changes did you made to get it working?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use internal flash MCUboot and nRF5340</title><link>https://devzone.nordicsemi.com/thread/473904?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 14:13:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc299fa9-3602-44c0-a462-de21bb57ffee</guid><dc:creator>Johan_c</dc:creator><description>&lt;p&gt;Thanks, I got it to build and work by removing the dependencies to&amp;nbsp;PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY. At first I tried to run my application in non secure mode but I ran into an issue where the secure/unsecure regions seems to have hardcoded sizes in tfm.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use internal flash MCUboot and nRF5340</title><link>https://devzone.nordicsemi.com/thread/473902?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 14:13:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7982d98-7ad5-452a-8c1b-19a2f3085f57</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Found it&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/10060"&gt;https://github.com/nrfconnect/sdk-nrf/pull/10060&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/pull/235"&gt;https://github.com/nrfconnect/sdk-mcuboot/pull/235&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use internal flash MCUboot and nRF5340</title><link>https://devzone.nordicsemi.com/thread/473897?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 14:00:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9b0f33e-bb06-4f63-b52d-f18879fa8f12</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I remember having looked at that before. However, I do not recall the outcome. I have reported this as a bug to our developers.&lt;/p&gt;
&lt;p&gt;In the meantime I suggest that you remove that dependency as a patch from sdk-nrf.&lt;br /&gt;Does that work for you?&lt;/p&gt;
[quote user=""]thingy53 board,[/quote]
&lt;p&gt;In general I would recommend that you base it on the nRF5340DK instead, as the Thingy can be a bit odd at times. In the end, the choice is yours.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>