<?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, nRF7002, XIP, MCUboot, filesystem -&amp;gt; Any examples?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120448/nrf5340-nrf7002-xip-mcuboot-filesystem---any-examples</link><description>Hello, 
 
 I am attempting to configure the following setup to support (with an nRF5340 + nRF7002-EK)... 
 1. nRF7002 on SPI w/ TLS, STA, and FW patches offloaded to QSPI XIP 
 2. nRF5340 without any BLE support, empty netcore 
 3. LittleFS also on external</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Apr 2025 12:33:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120448/nrf5340-nrf7002-xip-mcuboot-filesystem---any-examples" /><item><title>RE: nRF5340, nRF7002, XIP, MCUboot, filesystem -&gt; Any examples?</title><link>https://devzone.nordicsemi.com/thread/531357?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 12:33:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a3dc833-3482-4bba-8960-f8819615c7a0</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="khelmutlord"]&lt;p&gt;I guess what I&amp;#39;m worried about w/ filesystem + XIP is the following situation (besides not knowing exactly how to tell the build system &amp;quot;hey this area is for nRF7002 firmware patch loading, this area is for XIP code, this is for littlefs&amp;quot;):&lt;/p&gt;
&lt;p&gt;- LittleFS requests an erase and yields&lt;/p&gt;
&lt;p&gt;- Another thread, something Wi-Fi related (if we have the libraries in XIP) at a higher priority tries to run XIP code while this erase is occurring&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Crash!&lt;/p&gt;[/quote]
&lt;p&gt;I see what you mean yea.&lt;/p&gt;
&lt;p&gt;From what I have heard, this can maybe be the case. The best is probably to do some testing and see what happens.&lt;/p&gt;
[quote user="khelmutlord"]I have seen some tickets w/ recommendations about what can/cannot be put into XIP but still feel uncertain about what is permitted, too.[/quote]
&lt;p&gt;One thing I have heard about here is current consumption: If you want to put the external flash into sleep while not running XIP code, you cannot run interrupt code from XIP. If you are alright by drawing a lot of current, you can keep XIP on always and this should not be an issue as I understand.&lt;/p&gt;
&lt;p&gt;This was maybe not the best answers, but are they enough for you?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340, nRF7002, XIP, MCUboot, filesystem -&gt; Any examples?</title><link>https://devzone.nordicsemi.com/thread/530876?ContentTypeID=1</link><pubDate>Mon, 07 Apr 2025 16:56:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03e65211-14df-4573-805e-25378cffeb59</guid><dc:creator>khelmutlord</dc:creator><description>&lt;p&gt;I guess what I&amp;#39;m worried about w/ filesystem + XIP is the following situation (besides not knowing exactly how to tell the build system &amp;quot;hey this area is for nRF7002 firmware patch loading, this area is for XIP code, this is for littlefs&amp;quot;):&lt;/p&gt;
&lt;p&gt;- LittleFS requests an erase and yields&lt;/p&gt;
&lt;p&gt;- Another thread, something Wi-Fi related (if we have the libraries in XIP) at a higher priority tries to run XIP code while this erase is occurring&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Crash!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have seen some tickets w/ recommendations about what can/cannot be put into XIP but still feel uncertain about what is permitted, too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340, nRF7002, XIP, MCUboot, filesystem -&gt; Any examples?</title><link>https://devzone.nordicsemi.com/thread/530790?ContentTypeID=1</link><pubDate>Mon, 07 Apr 2025 11:14:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32b6e6d1-089d-40e4-9123-460a0d653fba</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;How about this one:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/119975/failing-to-build-using-sysbuild-ncs2-9-0-with-mcuboot-for-dfu-enabled-for-app-cpu-net-wifi-fw"&gt;Failing to build using sysbuild/NCS2.9.0 with MCUboot for DFU enabled for app/CPU-NET/Wifi fw&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;I think that it is Wi-Fi + XIP + Application DFU. Is this helpful?&lt;/p&gt;
&lt;p&gt;And then I should probably try and answer your questions as well:&lt;/p&gt;
[quote user=""]Is there a simple way to ensure that XIP application code can operate concurrently with the file system?[/quote]
&lt;p&gt;From memory, I think I heard the XIP driver should be able to handle this. When you say &amp;quot;ensure&amp;quot;, do you mean &amp;quot;should it work?&amp;quot; or &amp;quot;It does mostly work, but I had some issues with it&amp;quot;?&lt;/p&gt;
[quote user=""] Is partition manager helping things here or can I use the static partitions in Zephyr?[/quote]
&lt;p&gt;See &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/8fa8f2c7c8b5cc2f80b4f90d50ffa3db77460c03/subsys/net/lib/nrf70_fw_ext/Kconfig#L60-L63"&gt;Here&lt;/a&gt;: &lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
config NRF_WIFI_FW_PATCH_DFU
	bool &amp;quot;Direct Firmware Update of nRF70 FW patch&amp;quot;
	depends on PARTITION_MANAGER_ENABLED
	depends on BOOTLOADER_MCUBOOT&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So you need the Partition Manager if you want Wi-Fi Patch DFU at least.&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: nRF5340, nRF7002, XIP, MCUboot, filesystem -&gt; Any examples?</title><link>https://devzone.nordicsemi.com/thread/530607?ContentTypeID=1</link><pubDate>Fri, 04 Apr 2025 12:01:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77a04fd3-5201-4f0e-9fa7-0e1d36d9d889</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Helmut,&lt;/p&gt;
&lt;p&gt;I got a colleague who I maaaaybe think has an example that can help here, but he is out of the office today.&lt;/p&gt;
&lt;p&gt;I will get back to you next week when I have talked to him.&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>