<?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>DFU with static pm_static.yml</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101338/dfu-with-static-pm_static-yml</link><description>I have pm_static.yml with: 
 
 and it works but when I try to enable DFU with: 
 
 I get 
 zephyr\zephyr_pre0.elf section `rodata&amp;#39; will not fit in region `FLASH&amp;#39; arm-zephyr-eabi/bin/ld.exe: region `FLASH&amp;#39; overflowed by 5962 bytes 
 I know its an issue</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Jun 2023 11:11:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101338/dfu-with-static-pm_static-yml" /><item><title>RE: DFU with static pm_static.yml</title><link>https://devzone.nordicsemi.com/thread/433912?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 11:11:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21d7c151-8b8b-442a-9391-2c829e2a24dd</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;See &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp/mcuboot_smp_uart_feat_external_flash"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp/mcuboot_smp_uart_feat_external_flash&lt;/a&gt; for how to configure external flash.&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><item><title>RE: DFU with static pm_static.yml</title><link>https://devzone.nordicsemi.com/thread/433887?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 09:29:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0828bd39-ef9c-455e-a4dd-38caeaf3709a</guid><dc:creator>IvanR</dc:creator><description>&lt;p&gt;just noticed this warning:&lt;/p&gt;
&lt;p&gt;I: Starting bootloader&lt;br /&gt;W: Failed reading sectors; BOOT_MAX_IMG_SECTORS=256 - too small?&lt;br /&gt;W: Cannot upgrade: not a compatible amount of sectors&lt;br /&gt;I: Bootloader chainload address offset: 0x10000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU with static pm_static.yml</title><link>https://devzone.nordicsemi.com/thread/433868?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 08:28:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:095d212f-65fd-4fe9-86e7-79c402b1d055</guid><dc:creator>IvanR</dc:creator><description>&lt;p&gt;Thank you, excellent support.&lt;/p&gt;
&lt;p&gt;Got it to work. Well, managed to compile without error, not tested the DFU but keeping my hope up!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU with static pm_static.yml</title><link>https://devzone.nordicsemi.com/thread/433858?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 07:58:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfdb5b56-eeef-4137-bde3-e80ee9a626af</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="IvanR"]&lt;p&gt;I cant find in Kconfig&amp;nbsp;PM_PARTITION_SIZE_MCUBOOT.&lt;/p&gt;
&lt;p&gt;If I explicitly add it to my Kconfig file it does not effect the size.&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;You must &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples#how-to-configure-the-bootloader"&gt;configure this for the mcuboot child image&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/blob/17d4eb86e0e18032f80712ab1e0be64132852fc2/bootloader_samples/smp/mcuboot_smp_uart_feat_external_flash/child_image/mcuboot.conf#L5"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/blob/17d4eb86e0e18032f80712ab1e0be64132852fc2/bootloader_samples/smp/mcuboot_smp_uart_feat_external_flash/child_image/mcuboot.conf#L5&lt;/a&gt; for an example on how to do this&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><item><title>RE: DFU with static pm_static.yml</title><link>https://devzone.nordicsemi.com/thread/433849?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 07:37:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d66b9286-f70b-4e28-ba04-8321eda40d58</guid><dc:creator>IvanR</dc:creator><description>&lt;p&gt;Thanks, found west and partition printout.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  external_flash (0x8f4000 - 9168kB):
+------------------------------------------------+
| 0x0: mcuboot_secondary (0xf4000 - 976kB)       |
| 0xf4000: littlefs_storage (0x800000 - 8192kB)  |
| 0x8f4000: external_flash (-0xf4000 - -999424B) |
+------------------------------------------------+

  flash_primary (0x100000 - 1024kB):
+-------------------------------------------------+
| 0x0: mcuboot (0xc000 - 48kB)                    |
+---0xc000: mcuboot_primary (0xf4000 - 976kB)-----+
| 0xc000: mcuboot_pad (0x200 - 512B)              |
+---0xc200: mcuboot_primary_app (0xf3e00 - 975kB)-+
| 0xc200: app (0xf3e00 - 975kB)                   |
+-------------------------------------------------+

  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_rpmsg (0x37800 - 222kB)     |
+--------------------------------------------+

 CPUNET sram_primary (0x10000 - 64kB):
+-------------------------------------------+
| 0x21000000: sram_primary (0x10000 - 64kB) |
+-------------------------------------------+
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I cant find in Kconfig&amp;nbsp;PM_PARTITION_SIZE_MCUBOOT.&lt;/p&gt;
&lt;p&gt;If I explicitly add it to my Kconfig file it does not effect the size.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU with static pm_static.yml</title><link>https://devzone.nordicsemi.com/thread/433839?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 06:59:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f787bf43-ff00-4b15-9d1a-66f55068e6ea</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="IvanR"]west: unknown command &amp;quot;build&amp;quot;; do you need to run this inside a workspace?[/quote]
&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/pastedimage1688108244005v2.png" alt=" " /&gt;&lt;/p&gt;
[quote user="IvanR"]And I tried to search for documentation on&amp;nbsp;&lt;span&gt;CONFIG_PM_PARTITION_SIZE_MCUBOOT but there is none?&lt;/span&gt;[/quote]
&lt;p&gt;Since MCUboot is technically an application and not part of the build system, the Kconfig search does not list this. It is weird.&lt;br /&gt;However, you can see it defined here: &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/0af5b7870b495d26c2c89337fd3c2b3178b57185/modules/mcuboot/boot/zephyr/Kconfig#L21"&gt;https://github.com/nrfconnect/sdk-nrf/blob/0af5b7870b495d26c2c89337fd3c2b3178b57185/modules/mcuboot/boot/zephyr/Kconfig#L21&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Configure this not for the application but for the MCUboot child image.&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><item><title>RE: DFU with static pm_static.yml</title><link>https://devzone.nordicsemi.com/thread/433824?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 05:16:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:208fba78-5e63-4563-a1f0-f8fcb256ffc6</guid><dc:creator>IvanR</dc:creator><description>&lt;p&gt;&amp;gt; west build -t partition_manager_report&lt;br /&gt;usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] &amp;lt;command&amp;gt; ...&lt;br /&gt;west: unknown command &amp;quot;build&amp;quot;; do you need to run this inside a workspace?&lt;/p&gt;
&lt;p&gt;And I tried to search for documentation on&amp;nbsp;&lt;span&gt;CONFIG_PM_PARTITION_SIZE_MCUBOOT but there is none?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU with static pm_static.yml</title><link>https://devzone.nordicsemi.com/thread/433702?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 13:04:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83e0aa45-22e0-4b0b-b79d-4b46fe71df18</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;From your log, it looks like your mcuboot partition is too small.&lt;/p&gt;
&lt;p&gt;Can you do &amp;quot;west build -t partition_manager_report&amp;quot; to list your partitions?&lt;/p&gt;
&lt;p&gt;Do you see the same issues if you dedicate less space to littlefs?&lt;/p&gt;
&lt;p&gt;Try to increase MCUboot size with CONFIG_PM_PARTITION_SIZE_MCUBOOT&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><item><title>RE: DFU with static pm_static.yml</title><link>https://devzone.nordicsemi.com/thread/433692?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 12:41:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1159bf7-1620-4c6e-9c62-f9278e822a29</guid><dc:creator>IvanR</dc:creator><description>&lt;p&gt;&lt;span&gt;Im using nRF Connect SDK 2.3.0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;/delete-node/ &amp;amp;storage_partition;

/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
	};

	fstab {
		compatible = &amp;quot;zephyr,fstab&amp;quot;;
		lfs1: lfs1 {
			compatible = &amp;quot;zephyr,fstab,littlefs&amp;quot;;
			mount-point = &amp;quot;/lfs1&amp;quot;;
			partition = &amp;lt;&amp;amp;lfs1_part&amp;gt;;
			automount;
			read-size = &amp;lt;16&amp;gt;;
			prog-size = &amp;lt;16&amp;gt;;
			cache-size = &amp;lt;64&amp;gt;;
			lookahead-size = &amp;lt;32&amp;gt;;
			block-cycles = &amp;lt;512&amp;gt;;
		};
	};
};

&amp;amp;mx25r64 {
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		lfs1_part: partition@0 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x00000000 0x00800000&amp;gt;;
		};
	};
};
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;c:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: zephyr\zephyr_pre0.elf section `rodata&amp;#39; will not fit in region `FLASH&amp;#39;&lt;br /&gt;c:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: region `FLASH&amp;#39; overflowed by 5962 bytes&lt;br /&gt;collect2.exe: error: ld returned 1 exit status&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;[284/300] Generating ../../zephyr/net_core_app_update.bin&lt;br /&gt;sign the payload&lt;br /&gt;[285/300] Generating ../../zephyr/net_core_app_signed.hex&lt;br /&gt;sign the payload&lt;br /&gt;[286/300] Generating ../../zephyr/net_core_app_test_update.hex&lt;br /&gt;sign the payload&lt;br /&gt;[287/300] Generating ../../zephyr/net_core_app_moved_test_update.hex&lt;br /&gt;FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf &lt;br /&gt;cmd.exe /C &amp;quot;cd /D C:\Users\iv\Desktop\Projects\Programing\nRF\st_ble_sensor\build\mcuboot &amp;amp;&amp;amp; C:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe --build . --&amp;quot;&lt;br /&gt;[289/300] Linking C executable zephyr\zephyr.elf&lt;br /&gt;Memory region Used Size Region Size %age Used&lt;br /&gt; FLASH: 248116 B 998912 B 24.84%&lt;br /&gt; RAM: 59980 B 440 KB 13.31%&lt;br /&gt; IDT_LIST: 0 GB 2 KB 0.00%&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;c:\ncs\toolchains\v2.3.0\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;c:\Users\iv\Desktop\Projects\Programing\nRF\st_ble_sensor\build&amp;#39;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU with static pm_static.yml</title><link>https://devzone.nordicsemi.com/thread/433687?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 12:31:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a90b9e6-b61d-475d-a758-3b1709ee350c</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Which version of the nRF Connect SDK do you use?&lt;/p&gt;
&lt;p&gt;Do you have any warnings in your log? (evt upload the full log in a code box)&lt;/p&gt;
&lt;p&gt;Have you enabled external flash for the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#external-flash-memory-partitions"&gt;Partition Manager&lt;/a&gt;?&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><item><title>RE: DFU with static pm_static.yml</title><link>https://devzone.nordicsemi.com/thread/433680?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 12:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:450a581d-9a3e-4c22-8b46-a03907f63c7c</guid><dc:creator>IvanR</dc:creator><description>&lt;p&gt;Im using nRF Connect SDK 2.3.0&lt;/p&gt;
&lt;p&gt;Ive removed pm_static.yml and enabled&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PM_PARTITION_SIZE_LITTLEFS&lt;/span&gt;&lt;span&gt;=0x8000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;and it compiles ok, but as soon as I enable&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#Enable mcumgr.
CONFIG_MCUMGR=y

# Enable most core commands.
CONFIG_MCUMGR_CMD_IMG_MGMT=y
CONFIG_MCUMGR_CMD_OS_MGMT=y

# Ensure an MCUboot-compatible binary is generated.
CONFIG_BOOTLOADER_MCUBOOT=y
# Allow for large Bluetooth data packets.
CONFIG_BT_L2CAP_TX_MTU=252
CONFIG_BT_BUF_ACL_RX_SIZE=256

# Enable the Bluetooth (unauthenticated) and shell mcumgr transports.
CONFIG_MCUMGR_SMP_BT=y
CONFIG_MCUMGR_SMP_BT_AUTHEN=n
&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I get &amp;gt; ld.exe: region `FLASH&amp;#39; overflowed by 5962 bytes&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU with static pm_static.yml</title><link>https://devzone.nordicsemi.com/thread/433646?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 10:53:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c48907d-a16f-4b66-86ba-51f823e92d46</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Which version of the nRF Connect SDK do you use?&lt;/p&gt;
&lt;p&gt;Try to use &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_PM_PARTITION_SIZE_LITTLEFS"&gt;CONFIG_PM_PARTITION_SIZE_LITTLEFS&lt;/a&gt; and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL"&gt;CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL&lt;/a&gt; instead of pm_static.&lt;br /&gt;Then if you want to make a static configuration after that, you can use build/parititions.yml to learn from.&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>