<?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>QSPI for nrf5340-DK, examples and API functions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74744/qspi-for-nrf5340-dk-examples-and-api-functions</link><description>I am working with the module nrf5340-DK. I am searching for an example to use the QSPI with the onboard external memory, could you share an example? and the other question is where is the API I must use to control the QSPI.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Jul 2024 07:48:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74744/qspi-for-nrf5340-dk-examples-and-api-functions" /><item><title>RE: QSPI for nrf5340-DK, examples and API functions</title><link>https://devzone.nordicsemi.com/thread/492180?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2024 07:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82f84373-a800-4ec0-9e54-c0d55efb2972</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I recommend that you create a new ticket for your issue, as this thread is quite old. Please include all your details in the new ticket, including the SDK version, complete logs, and overlay file.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI for nrf5340-DK, examples and API functions</title><link>https://devzone.nordicsemi.com/thread/308677?ContentTypeID=1</link><pubDate>Fri, 07 May 2021 09:16:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94f21c04-bccd-4d2a-9d3f-3dc2bc9fb646</guid><dc:creator>Simon</dc:creator><description>[quote user="MarcosDNordic"]In this link, we have also a link&amp;nbsp;to a library&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/4ce908a2342494c19df09f347ce79ab81b415185/drivers/flash/nrf_qspi_nor.c"&gt;Here&lt;/a&gt;&amp;nbsp;but when I try to search this library in the zephyr folder I do not find it.[/quote]
&lt;p&gt;&amp;nbsp;What version of NCS do you have? I have NCS v1.5.0 and I found it here:&amp;nbsp;C:\Users\&amp;lt;user name&amp;gt;\ncs\v1.5.0\zephyr\drivers\flash\nrf_qspi_nor.c.&amp;nbsp;&lt;/p&gt;
[quote user="MarcosDNordic"]Could you help us with one example for nrf5340 where only read and write some bytes, we can continue after that[/quote]
&lt;p&gt;I think the sample &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v2.4.99-ncs2/samples/drivers/spi_flash"&gt;C:\Users\&amp;lt;user name&amp;gt;\ncs\v1.5.0\zephyr\samples\drivers\spi_flash\src\main.c&lt;/a&gt;&amp;nbsp;is a perfect fit. It does not use a file system, just pure flash write and read calls.&lt;/p&gt;
&lt;p&gt;If the board nrf5340dk_nrf5340_cpuapp is used, the configurations in&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.99-ncs2/samples/drivers/spi_flash/boards/nrf5340dk_nrf5340_cpuapp.conf"&gt;zephyr\samples\drivers\spi_flash\boards\nrf5340dk_nrf5340_cpuapp.conf&lt;/a&gt;&amp;nbsp;will get automatically applied, which will make the driver nrf_qspi_nor.c get used under the hood. E.g. when &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.99-ncs2/samples/drivers/spi_flash/src/main.c#L87"&gt;flash_read()&lt;/a&gt; is called, the function &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.99-ncs2/drivers/flash/nrf_qspi_nor.c#L753"&gt;qspi_nor_read()&lt;/a&gt; will get called under the hood. You don&amp;#39;t need to worry about configuring the hardware, since qspi and the onboard flash is already set by default in the board file:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.99-ncs2/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dts#L107-L133"&gt;zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dts&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI for nrf5340-DK, examples and API functions</title><link>https://devzone.nordicsemi.com/thread/308623?ContentTypeID=1</link><pubDate>Thu, 06 May 2021 20:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e13fbc29-ecd8-4dd0-bf9c-e8a2e85db3d1</guid><dc:creator>MarcosDNordic</dc:creator><description>&lt;p&gt;I have checked the link.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; This link has&amp;nbsp;filesystem options, we are searching for something more simple. In this link, we have also a link&amp;nbsp;to a library&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/4ce908a2342494c19df09f347ce79ab81b415185/drivers/flash/nrf_qspi_nor.c"&gt;Here&lt;/a&gt;&amp;nbsp;but when I try to search this library in the zephyr folder I do not find it.&lt;/p&gt;
&lt;p&gt;Could you help us with one example for nrf5340 where only read and write some bytes, we can continue after that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI for nrf5340-DK, examples and API functions</title><link>https://devzone.nordicsemi.com/thread/308401?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 15:51:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d75b7d5d-7602-4117-a022-4801c7592048</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I think this ticket should be relevant:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/72045/flash-filing-system-for-nrf-connect-sdk"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/72045/flash-filing-system-for-nrf-connect-sdk&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please ask if you have any more questions&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>