<?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 on nRF Connect SDK by Random Flash Write</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103456/dfu-on-nrf-connect-sdk-by-random-flash-write</link><description>I would like to use the DFU from the nrf connect sdk. After researching the API, I found out that dfu_target_write() can only write to FLASH in sequential format? In our project, we want to randomly write DFU images to FLASH in order to transfer them</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Sep 2023 06:58:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103456/dfu-on-nrf-connect-sdk-by-random-flash-write" /><item><title>RE: DFU on nRF Connect SDK by Random Flash Write</title><link>https://devzone.nordicsemi.com/thread/444834?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 06:58:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:177fecb2-8083-4190-8d7a-a7c122170d20</guid><dc:creator>loquat</dc:creator><description>&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I see.&lt;/span&gt;&lt;/span&gt;&lt;span class="jCAhz"&gt;&lt;span class="ryNqvb"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I will try.&lt;/span&gt;&lt;/span&gt;&lt;span class="jCAhz"&gt;&lt;span class="ryNqvb"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Thank you&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nRF Connect SDK by Random Flash Write</title><link>https://devzone.nordicsemi.com/thread/444833?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 06:53:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcb0814e-2492-4f2d-bba4-7006b0ba93c6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You can read about the DFU target library here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/libraries/dfu/dfu_target.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/libraries/dfu/dfu_target.html&lt;/a&gt;. But for your case, I think it&amp;nbsp;would be easiest to start&amp;nbsp;with the smp_srv sample (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#smp-svr-sample"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#smp-svr-sample&lt;/a&gt;) and see how&amp;nbsp;it uses mcuboot.c and flash_img.c to place&amp;nbsp;the update binary in slot 1.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nRF Connect SDK by Random Flash Write</title><link>https://devzone.nordicsemi.com/thread/444750?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 14:16:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25b8d597-d8be-4e9b-99c1-eac2fd249467</guid><dc:creator>loquat</dc:creator><description>&lt;p&gt;I believe the dfu_target_xxx API does a lot more than writing the image to FLASH.&lt;br /&gt;It may be possible to write a DFU image to FLASH using the FLASH API, but I don&amp;#39;t know the process to prepare the DFU.&lt;br /&gt;&lt;br /&gt;By the way, we have independently incorporated and operated the same functionality into the nRF5 SDK.&lt;br /&gt;We want to use this functionality that we implemented in the nRF5 SDK in the nRF Connect SDK as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on nRF Connect SDK by Random Flash Write</title><link>https://devzone.nordicsemi.com/thread/444702?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 11:45:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b134b880-21be-43e0-b57b-6a59c9e2f053</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It should be fine to not store the data sequentially as long as it all gets stored in the end. But&amp;nbsp;you will&amp;nbsp;probably need to use the regular&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/zephyr/hardware/peripherals/flash.html"&gt;flash API&lt;/a&gt;, and not the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/zephyr/services/storage/stream/stream_flash.html#stream-flash"&gt;Stream Flash&lt;/a&gt;&amp;nbsp;API used by&amp;nbsp;&lt;span&gt;dfu_target_write().&amp;nbsp;There aren&amp;#39;t any DFU examples that&amp;nbsp;do&amp;nbsp;non-sequential writes as far as I can tell.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>