<?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 DFU with external flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108342/nrf5340-dfu-with-external-flash</link><description>Hi all, 
 I am working on the nrf5340 with the ncs v2.5.0. I want to to be able to update the device with BLE and through WiFI (like the aws-iot example). 
 To fit all this I use also an external flash (the mx25r64) which need to work as XIP. 
 
 So I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Apr 2024 12:02:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108342/nrf5340-dfu-with-external-flash" /><item><title>RE: nrf5340 DFU with external flash</title><link>https://devzone.nordicsemi.com/thread/476552?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 12:02:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9900cd1d-7c0f-42b2-a17f-e0e2452200b1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Sylvain,&lt;/p&gt;
&lt;p&gt;If you are using QSPI for the nRF7002, then you need to use SPI for the external flash. The SPIM interfaces do not support XiP. The example I referenced earlier is using the SPI NOR driver with BLE FOTA enabled.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 DFU with external flash</title><link>https://devzone.nordicsemi.com/thread/476451?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 07:51:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bac12fcb-3fb6-4ecd-93e9-9162765fc5ed</guid><dc:creator>sguitton01</dc:creator><description>&lt;p&gt;I am using QSPI for the nrf700x&lt;br /&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/pastedimage1712044010531v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Actually the goal here is to be able to make DFU through wi-fi and BLE on the same device. This is why I started from the aws_iot example which include&amp;nbsp;FOTA and I am trying to add BLE DFU on top of that. Though for now I am stuck, any idea on how to do it?&lt;br /&gt;&lt;br /&gt;Thank you,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Sylvain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 DFU with external flash</title><link>https://devzone.nordicsemi.com/thread/476445?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 07:26:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b700e176-55a8-49d2-aa06-f44455c8abe8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Sylvain,&lt;/p&gt;
&lt;p&gt;Are you using the QSPI or SPI to&amp;nbsp;communicate with the 7002?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 DFU with external flash</title><link>https://devzone.nordicsemi.com/thread/476442?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 07:20:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdd29db6-9859-43fe-9eb0-9a1a5bb666fe</guid><dc:creator>sguitton01</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Sorry for the late reply.&lt;br /&gt;So I see that the MCUmgr module absolutely needs the QSPI (do you know why?).&lt;br /&gt;Do you have ant example or another way to make a DFU through BLE without the MCUmgr module using DFUTarget instead?&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;&lt;br /&gt;Sylvain&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 DFU with external flash</title><link>https://devzone.nordicsemi.com/thread/470823?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 16:30:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25f791c9-b99b-481d-b3f9-f94ecc1d0d3c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes. I&amp;#39;m not saying you can&amp;#39;t use the nRF7002 and external Flash simultaneously. I&amp;#39;m saying you should not use the same QSPI/SPI instance for both.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 DFU with external flash</title><link>https://devzone.nordicsemi.com/thread/470821?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 16:25:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ffeaf58-9980-49f7-bae7-414b94d438ee</guid><dc:creator>sguitton01</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;In the aws iot they are using the both nrf700x and external flash no?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 DFU with external flash</title><link>https://devzone.nordicsemi.com/thread/470791?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 14:45:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cefecca-11c7-498c-a3e7-52f0e11d8a33</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;If you are using the QSPI to communicate with the nRF7002, you need to use the SPI to interface with the external flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 DFU with external flash</title><link>https://devzone.nordicsemi.com/thread/470764?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 13:47:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df05b8e8-86b1-4d43-ae39-839ed4cc8f09</guid><dc:creator>sguitton01</dc:creator><description>&lt;p&gt;No a way to use the external flash and the nrf700x simultaneously&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 DFU with external flash</title><link>https://devzone.nordicsemi.com/thread/470762?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 13:45:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66d5d51f-c979-4543-a0c2-7fdc8eaece0a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Sylvain,&lt;/p&gt;
[quote userid="26916" url="~/f/nordic-q-a/108342/nrf5340-dfu-with-external-flash/470667"]As soon as I set&amp;nbsp; &lt;span&gt;CONFIG_SPI_NOR&lt;/span&gt;&lt;span&gt;=n&amp;nbsp;&amp;nbsp;&lt;/span&gt;I get a RAM overflow.[/quote]
&lt;p&gt;Did you mean to say that you get RAM overflow when you set CONFIG_SPI_NOR to &amp;#39;y&amp;#39;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 DFU with external flash</title><link>https://devzone.nordicsemi.com/thread/470760?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 13:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9f7d8bd-33de-43ec-876c-e68e037b3c2f</guid><dc:creator>sguitton01</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Is there some other driver option?&lt;br /&gt;&lt;br /&gt;Sylvain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 DFU with external flash</title><link>https://devzone.nordicsemi.com/thread/470684?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 11:14:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c68f104-2424-4065-b159-86ff52ea60fb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Sylvain,&lt;/p&gt;
&lt;p&gt;What driver are you going to use if you are not going to use&amp;nbsp;&lt;span&gt;CONFIG_SPI_NOR? As mentioned, the QSPI is connected to the 7002 IC.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 DFU with external flash</title><link>https://devzone.nordicsemi.com/thread/470667?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 10:23:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce205493-56eb-4c6c-bcc3-491689ede1a8</guid><dc:creator>sguitton01</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;&lt;br /&gt;How can I use the mx25r64 without the SPI_NOR driver?&lt;br /&gt;As soon as I set&amp;nbsp; &lt;span&gt;CONFIG_SPI_NOR&lt;/span&gt;&lt;span&gt;=n&amp;nbsp;&amp;nbsp;&lt;/span&gt;I get a RAM overflow.&lt;br /&gt;&lt;br /&gt;Sylvain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 DFU with external flash</title><link>https://devzone.nordicsemi.com/thread/470660?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 10:09:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ae1e661-7c81-49f1-9ed6-1634b5634f96</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Sylvain,&lt;/p&gt;
&lt;p&gt;The project included in my other post is demonstrating DFU over BLE, so it doesn&amp;#39;t include Wifi. However, It shows how you can configure the application to support DFU and how to place the secondary mcuboot slot in external flash. So the remaining part is to enable DFU over the WIFI.&lt;/p&gt;
[quote userid="26916" url="~/f/nordic-q-a/108342/nrf5340-dfu-with-external-flash/470656"]So if i want to use the nrf700x + a flash, the nrf700x should use the&amp;nbsp; QSPI and the Flash the classic SPI?[/quote]
&lt;p&gt;At least on the DK since the nRF53 QSPI pins are routed to the nRF7002 on this board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 DFU with external flash</title><link>https://devzone.nordicsemi.com/thread/470656?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 09:56:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:979a2469-07c4-4a9a-90de-21562271ed49</guid><dc:creator>sguitton01</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I am able to build the project you sent though the nrf7002 chip is not&amp;nbsp;used in the project is it?&lt;br /&gt;&lt;br /&gt;So if i want to use the nrf700x + a flash, the nrf700x should use the&amp;nbsp; QSPI and the Flash the classic SPI?&lt;br /&gt;&lt;br /&gt;Sylvain&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 DFU with external flash</title><link>https://devzone.nordicsemi.com/thread/469254?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2024 13:34:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3a3c97c-c3e5-409b-9f12-eaf36865be40</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Sylvain,&lt;/p&gt;
&lt;p&gt;Please try the sample I included in this post:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/108203/issues-with-building-mcuboot-for-nrf7002dk-using-ncs-v2-5-2"&gt;Issues with Building MCUboot for nRF7002DK Using NCS V2.5.2&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/p&gt;
[quote user=""]C:/ncs/v2.5.0/zephyr/drivers/flash/nrf_qspi_nor.c:69:2: error: #error &amp;quot;No size specified. &amp;#39;size&amp;#39; or &amp;#39;size-in-bytes&amp;#39; must be set&amp;quot;&lt;br /&gt; 69 | #error &amp;quot;No size specified. &amp;#39;size&amp;#39; or &amp;#39;size-in-bytes&amp;#39; must be set&amp;quot;[/quote]
&lt;p&gt;The QSPI nor driver should not be enabled as the QSPI is used to interface the nRF7002 chip.&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>