<?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>Unable to flash new firmware with DFU because of &amp;#39;invalid address&amp;#39;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112294/unable-to-flash-new-firmware-with-dfu-because-of-invalid-address</link><description>Hello, I am reaching out to you because I am trying to implement a DFU OTA in my project in order to be able to update my firmware with Bluetooth. I have been spending some time on it as the implementation is not an easy task. For a long time, I wasn</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jun 2024 07:22:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112294/unable-to-flash-new-firmware-with-dfu-because-of-invalid-address" /><item><title>RE: Unable to flash new firmware with DFU because of 'invalid address'</title><link>https://devzone.nordicsemi.com/thread/490489?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 07:22:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65342d72-8414-47d3-81db-ca430f525754</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you already integrated the flash in your application, and is it working? The SDK is currently only supporting QSPI/SPI NOR FLASH, not NAND. There is a PR upstream which aims to add support for NAND, but it has not been merged yet:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/50690"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/50690&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Instructions on how to place the mcuboot secondary slot in an external flash partition can be found in the documentation here:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/nrf/config_and_build/bootloaders/bootloader_external_flash.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/nrf/config_and_build/bootloaders/bootloader_external_flash.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But this has only been tested with NOR flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash new firmware with DFU because of 'invalid address'</title><link>https://devzone.nordicsemi.com/thread/490403?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 15:55:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ee0e578-f3be-49fd-81c2-fd10e987969d</guid><dc:creator>BENBF</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for your time and the information. After checking the size of our firmware, we realized we were indeed trying to put an application that was too large onto the card. As you recommended, we will try using an external flash for our DFU. Our flash is a NAND Flash (ref: W25N02KVZEIR). Can we use it for the DFU?&lt;br /&gt;&lt;br /&gt; Thank you very much for your time and have a great day.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash new firmware with DFU because of 'invalid address'</title><link>https://devzone.nordicsemi.com/thread/490244?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 11:27:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1efda5f6-6284-4e07-bf04-70bbeee5fd4c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I missed this earlier when looking at your memory report, but I see now that you&amp;#39;ve changed&amp;nbsp;redefined &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/ce7ed18989e0c03ab06102da3c321247f775337e/arch/Kconfig#L101"&gt;CONFIG_FLASH_SIZE&lt;/a&gt;&amp;nbsp;value in your prj.conf. This symbol defines the amount of the flash available&amp;nbsp;to the&amp;nbsp;appcore, which is 1024kB, and should not be changed. Given the size of your application, you will need to include an external SPI flash on your board to support DFU.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash new firmware with DFU because of 'invalid address'</title><link>https://devzone.nordicsemi.com/thread/490214?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 09:52:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f659a1a-11b6-4f73-9f97-6e2d016d9abb</guid><dc:creator>BENBF</dc:creator><description>&lt;p&gt;No worries ! Our SDK version is the v2.6.1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash new firmware with DFU because of 'invalid address'</title><link>https://devzone.nordicsemi.com/thread/490200?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 09:21:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45ec518c-9b2b-4ac9-a0ae-79739bc3b1c9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry, I forgot to ask which SDK version you were on. I want to make sure we&amp;#39;re debugging the same version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash new firmware with DFU because of 'invalid address'</title><link>https://devzone.nordicsemi.com/thread/490007?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 14:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bb3ae3f-3603-4c39-a31b-5de0f1d4cc34</guid><dc:creator>BENBF</dc:creator><description>&lt;p&gt;Of course! Here is a minimal version of our project you can run on an nRF7002-DK Nordic devboard. Please don&amp;#39;t hesitate to reach out if you need more information. Thank you very much, and have a great day.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/bugHunt-_2800_1_2900_.zip"&gt;devzone.nordicsemi.com/.../bugHunt-_2800_1_2900_.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash new firmware with DFU because of 'invalid address'</title><link>https://devzone.nordicsemi.com/thread/490001?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 13:59:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b22748fd-323f-4aaa-b982-1c1a72893779</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The memory layout appears to be correct. Would you be able to share a minimal version of your project here or in a private ticket so I could try to debug this on a development board?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash new firmware with DFU because of 'invalid address'</title><link>https://devzone.nordicsemi.com/thread/489738?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 12:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ef86140-de41-4d1f-be28-b748e3aee7cb</guid><dc:creator>BENBF</dc:creator><description>&lt;p&gt;Also, if it can help, i noticed that if i try flashing with the app the same app as the one curently on the card, the app will tell me it has been &lt;span&gt;successful&lt;/span&gt; and the board will show me this error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; [00:03:34.919,891] &amp;lt;err&amp;gt; flash_nrf: invalid address: 0x001bbff0:16
00&amp;gt; [00:03:34.919,891] &amp;lt;inf&amp;gt; mcuboot_util: Secondary image of image pair (0.) is unreachable. Treat it as empty
00&amp;gt; [00:03:34.919,891] &amp;lt;inf&amp;gt; mcuboot_util: Image index: 0, Swap type: none&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;it s still an error, but a shorter one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash new firmware with DFU because of 'invalid address'</title><link>https://devzone.nordicsemi.com/thread/489736?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 12:22:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3496b19a-2ef9-4e75-b855-87e79d24dfa6</guid><dc:creator>BENBF</dc:creator><description>&lt;p&gt;Thank you for the quick response, here is the report:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;  flash_primary (0x1c0000 - 1792kB): 
+--------------------------------------------------+
| 0x0: mcuboot (0x32000 - 200kB)                   |
| 0x32000: EMPTY_0 (0x2000 - 8kB)                  |
+---0x34000: mcuboot_primary (0xc4000 - 784kB)-----+
| 0x34000: mcuboot_pad (0x200 - 512B)              |
+---0x34200: mcuboot_primary_app (0xc3e00 - 783kB)-+
| 0x34200: app (0xc3e00 - 783kB)                   |
+--------------------------------------------------+
| 0xf8000: mcuboot_secondary (0xc4000 - 784kB)     |
| 0x1bc000: EMPTY_1 (0x4000 - 16kB)                |
+--------------------------------------------------+

  otp (0x2fc - 764B): 
+------------------------------+
| 0xff8100: otp (0x2fc - 764B) |
+------------------------------+

  sram_primary (0x80000 - 512kB): 
+-----------------------------------------------+
| 0x20000000: sram_primary (0x70000 - 448kB)    |
| 0x20070000: rpmsg_nrf53_sram (0x10000 - 64kB) |
+-----------------------------------------------+

 CPUNET flash_primary (0x40000 - 256kB): 
+--------------------------------------+
+---0x1000000: app (0x40000 - 256kB)---+
| 0x1000000: hci_ipc (0x40000 - 256kB) |
+--------------------------------------+

 CPUNET sram_primary (0x10000 - 64kB): 
+-------------------------------------------+
| 0x21000000: sram_primary (0x10000 - 64kB) |
+-------------------------------------------+&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I hope it helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash new firmware with DFU because of 'invalid address'</title><link>https://devzone.nordicsemi.com/thread/489730?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 12:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04ad8920-afbe-4f18-81cb-1447d8cb6c9c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The write address&amp;nbsp;shown in the debug log is well above the valid address range for the internal flash. Could you create a memory report of the flash layout and post it here? You can do this using the memory report button in vs code, or with the following command from the terminal&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;$ west build -t partition_manager_report&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>