<?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>Direct XIP + External QSPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113634/direct-xip-external-qspi</link><description>NCS v2.6.0, NRF5340dk 
 
 I&amp;#39;m trying to configure a project that uses mcuboot with direct XIP with the external QSPI flash. I&amp;#39;ve been looking at examples in 
 ncs/v2.6.0/nrf/tests/modules/mcuboot/external_flash ncs/v2.6.0/nrf/tests/modules/mcuboot/direct_xip</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Aug 2024 14:19:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113634/direct-xip-external-qspi" /><item><title>RE: Direct XIP + External QSPI</title><link>https://devzone.nordicsemi.com/thread/498321?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 14:19:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d1e9a14-c128-4bf2-8dc2-a8f3c1d176ef</guid><dc:creator>Roedy</dc:creator><description>&lt;p&gt;Yes, It worked perfectly!&amp;nbsp; When I corrupted the primary image, mcuboot only finds the secondary and boots into it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct XIP + External QSPI</title><link>https://devzone.nordicsemi.com/thread/498240?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 10:35:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76abd1fd-d37e-43be-ad00-0ff1ffb00d79</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;MCUboot does not have any logic to detect failing images and swapping, I think.&lt;/p&gt;
&lt;p&gt;I did not think Direct-xip had this feature either, but I am unsure about this I must admit.&lt;/p&gt;
&lt;p&gt;Did you test the corrupting of primary slot for Direct-XIP?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct XIP + External QSPI</title><link>https://devzone.nordicsemi.com/thread/498085?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 13:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9428e477-cd7d-4547-a12f-9a245b970c8b</guid><dc:creator>Roedy</dc:creator><description>&lt;p&gt;It&amp;#39;s been a while, but if I remember correctly, I programmed the primary and secondary slots and then used nrfjprog to corrupt the primary slot. Instead of swapping, MCUBOOT just said that there were no valid images.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I think this was back in ncs 2.1.0, so things may have changed since then?&amp;nbsp; Or maybe there was an mcuboot kconfig that I missed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct XIP + External QSPI</title><link>https://devzone.nordicsemi.com/thread/497958?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 08:08:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e1daec6-46a7-4098-89a7-f4e3a38ea573</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Roedy"] We&amp;#39;re using XIP because we want our application to have a backup slot that can be run if the primary slot is corrupted.[/quote]
&lt;p&gt;Cant you just swap in this case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct XIP + External QSPI</title><link>https://devzone.nordicsemi.com/thread/497957?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 08:07:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f7945b6-7b78-4070-a773-cd3728e58f67</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Roedy"]I think it&amp;#39;s worth asking the question: is this even possible?[/quote]
&lt;p&gt;No, you cannot run the entire secondary slot from external memory.&lt;/p&gt;
&lt;p&gt;Some amount of code must run in internal flash, such as code in interrupt contexts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct XIP + External QSPI</title><link>https://devzone.nordicsemi.com/thread/497041?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 18:14:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea0d21de-1369-45ad-964f-acec44ba182a</guid><dc:creator>Roedy</dc:creator><description>&lt;p&gt;I think it&amp;#39;s worth asking the question: is this even possible?&amp;nbsp; The example and documentation&amp;nbsp;&lt;a id="" href="https://docs.nordicsemi.com/bundle/ncs-2.6.0/page/nrf/device_guides/working_with_nrf/nrf53/qspi_xip_guide.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.0/page/nrf/device_guides/working_with_nrf/nrf53/qspi_xip_guide.html&lt;/a&gt;&amp;nbsp;seems to suggest that external XIP is for relocating *some* of the code into external flash.&lt;br /&gt;&lt;br /&gt;I want&amp;nbsp;the *entire* secondary slot XIP from external memory. Our system has some unique constraints.&amp;nbsp; We&amp;#39;re using XIP because we want our application to have a backup slot that can be run if the primary slot is corrupted.&amp;nbsp; Using just the primary flash, this works as expected but we&amp;#39;re running out of space, which is why we want the secondary slot in external.&lt;br /&gt;&lt;br /&gt;In addition, we have some product requirements that would make it very tough for us to break the application up into internal/external portions of a single slot as demonstrated in the extxip_smp_svr example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct XIP + External QSPI</title><link>https://devzone.nordicsemi.com/thread/497005?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 14:24:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7a3915e-b2e3-4932-8a1c-67baa36b91ab</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Roedy,&lt;/p&gt;
&lt;p&gt;Thanks for checking with us about this issue. Just let you know I am looking at this case now.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will give it a try later to see if I can repeat this issue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>