<?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>Read data directly from external nor flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118384/read-data-directly-from-external-nor-flash</link><description>Hello, 
 I&amp;#39;m using the following setup: 
 
 nRF Connect SDK v2.9.0 
 B0 , upgradable secure MCUBoot, and application 
 Statically defined partitions in the partition manager 
 
 I have an external NOR flash of 4MB. 
 I&amp;#39;m storing a large amount of data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Feb 2025 16:00:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118384/read-data-directly-from-external-nor-flash" /><item><title>RE: Read data directly from external nor flash</title><link>https://devzone.nordicsemi.com/thread/521373?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 16:00:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93e132f2-e64c-4e3b-a439-ac50caa46e21</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sorry for the misleading. The&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/nrfx-apis-latest/page/group_nrf_qspi_hal.html" rel="noopener noreferrer" target="_blank"&gt;QSPI HAL&lt;/a&gt;&amp;nbsp;only supports nRF5340. As I said previously,&amp;nbsp;&lt;span&gt;there is no support for XiP for the nRF52840 in the nRF Connect SDK.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read data directly from external nor flash</title><link>https://devzone.nordicsemi.com/thread/521006?ContentTypeID=1</link><pubDate>Sun, 02 Feb 2025 18:32:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d6a3c5c-a1fe-4d82-bdaa-2406cc6218c8</guid><dc:creator>Eyal_Gal</dc:creator><description>&lt;p&gt;checking the product spec on your site of nrf52840 + the nrf52840.h from the old sdk (mbk) + the&amp;nbsp;NRF_QSPI_Type type taken from the nrf52840.h file in the nrf dir in nrf connect it seems there is no XIPEN register, only XIPOFFSET, am i to understand that it is always active ? if not i need an example on how to activate it in nrf52840 as even the product spec doesn&amp;#39;t explains it. again i do not fear for race condition cause i read specific areas into ram and use them later on from there and next time is 24 hours later...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read data directly from external nor flash</title><link>https://devzone.nordicsemi.com/thread/520269?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 20:24:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b8c0ff1-4cf9-4148-968d-173533e7f2e6</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;While it is possible to set up the XIP window using registers directly with&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;the&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/nrfx-apis-latest/page/group_nrf_qspi_hal.html" rel="noopener noreferrer" target="_blank"&gt;QSPI HAL&lt;/a&gt;, you must be extremely cautious about the limitations imposed by Errata &lt;a href="https://docs.nordicsemi.com/bundle/errata_nRF52840_Rev1/page/ERR/nRF52840/Rev1/latest/anomaly_840_216.html"&gt;[216] QSPI: Race condition occurs in XIP&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read data directly from external nor flash</title><link>https://devzone.nordicsemi.com/thread/520224?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 15:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2a97d8e-1039-4c43-b6cb-6108919a1373</guid><dc:creator>Eyal_Gal</dc:creator><description>&lt;p&gt;Thanks for the reply Ammanda.&lt;/p&gt;
&lt;p&gt;So the only option is to set the &amp;quot;XIP&amp;quot; window ourselves using the registers directly ?&amp;nbsp;&lt;br /&gt;our needs are very basic and i think are ok with the limiatation : read only code, we use the&amp;nbsp;QSPI wire api to write the data and use XIP only to read the data &amp;quot;as if&amp;quot; it was from RAM.&lt;br /&gt;I believe it&amp;#39;s in the bounds of the ERRATAs.&lt;br /&gt;&lt;br /&gt;which files (nrf\nrfx files) should we include&amp;#39; i don&amp;#39;t belive any of them in the nrf-connect don&amp;#39;t have ref to the registers, it&amp;#39;s a bit strange that we&amp;#39;ll have to write the the structs and pointers ourselves (though we can according to the product spec).&lt;br /&gt;&lt;br /&gt;Or if it&amp;#39;s not in the SDK, where was this code in nrf-sdk , maybe we can copy form there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read data directly from external nor flash</title><link>https://devzone.nordicsemi.com/thread/520221?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 15:24:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d389d6ff-b61d-4bf4-850b-b6dcc9292b48</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The nRF52840 has hardware support for XiP, but due to&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/errata_nRF52840_Rev3/page/ERR/nRF52840/Rev3/latest/anomaly_840_215.html"&gt;Errata 215&lt;/a&gt;&amp;nbsp;and &lt;a href="https://docs.nordicsemi.com/bundle/errata_nRF52840_Rev3/page/ERR/nRF52840/Rev3/latest/anomaly_840_216.html"&gt;216&lt;/a&gt;, the support is&amp;nbsp;&lt;span&gt;&lt;/span&gt;severely limited for the nRF52840 w.r.t XiP. In nRF Connect SDK there is no support for XiP for the nRF52840.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read data directly from external nor flash</title><link>https://devzone.nordicsemi.com/thread/520207?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 14:42:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e745710-145e-4f98-ba67-8897b172e032</guid><dc:creator>Eyal_Gal</dc:creator><description>&lt;p&gt;Hi Amanda.&lt;/p&gt;
&lt;p&gt;The post is irrelevant as it speaks of cache for XIP.&lt;br /&gt;We are not talking about that, the request is simple:&lt;br /&gt;An example of zephyr app (for nrf52840-dk) that uses XIP preferable the last 1 mb of the flash for reading (not executing anything of the external flash, just reading data). for now assume we don&amp;#39;t care how the data got there, we don&amp;#39;t need to flash it with nrfjprog and .hex file.&lt;/p&gt;
&lt;p&gt;There are such examples for nrf53840 but not for nrf52840. For the very least a ref to the product spec and registers or driver you have (if you have) cause we were unable to find that data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read data directly from external nor flash</title><link>https://devzone.nordicsemi.com/thread/520190?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 13:57:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2aec499-06f8-4291-bbc4-e28302294a38</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Check&amp;nbsp;out&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/111462/inner-workings-of-xip?ReplySortBy=CreatedDate&amp;amp;ReplySortOrder=Ascending"&gt;this post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>