<?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>Help with SPI Flash sample and Info</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91000/help-with-spi-flash-sample-and-info</link><description>Hi 
 
 I would like to include some flash in my project to store sensor readings. Please can you assist me with the SPI Flash sample and with some general questions on SPI flash chip compatibility. 
 
 I have a nRF52840 DK and I am using Zephyr Version</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Aug 2022 08:36:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91000/help-with-spi-flash-sample-and-info" /><item><title>RE: Help with SPI Flash sample and Info</title><link>https://devzone.nordicsemi.com/thread/381922?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 08:36:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10935109-397a-4278-ac35-b04fd7639fb6</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Happy to help. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with SPI Flash sample and Info</title><link>https://devzone.nordicsemi.com/thread/381822?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 14:54:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f8f155f-a16f-480a-b51e-d2747b7f0de1</guid><dc:creator>Gary T</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Amanda.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have found the issue preventing this from working on my PC.&lt;/p&gt;
&lt;p&gt;In VS Code when I created the build configuration there is a &amp;quot;configuration&amp;quot; setting that needs to be set to prj.conf.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&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/pastedimage1660661437414v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am sure this has automatically been set for all the other projects and samples I have used so I didn&amp;#39;t think to check it. For some reason it wasn&amp;#39;t set correctly for me in this instance. Once I set it to prj.conf the code works correctly on my DK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks again for your help!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Gary&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with SPI Flash sample and Info</title><link>https://devzone.nordicsemi.com/thread/381812?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 13:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30ed5e44-5acb-46cb-a7be-02eca9d2a483</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can build your project without issue by adding the application to VScode.&amp;nbsp; Maybe you could try to add the project as the &lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/connect/create_app.html"&gt;doc&lt;/a&gt;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you still get the same error, please provide the completed log.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with SPI Flash sample and Info</title><link>https://devzone.nordicsemi.com/thread/381770?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 12:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9c37c8d-d7d0-444e-9ff3-a449dd7d06d3</guid><dc:creator>Gary T</dc:creator><description>&lt;p&gt;Hi Amanda&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your quick response and for the info you have provided. It is very helpful.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf_5F00_test_2D00_spi_5F00_flash2.zip"&gt;devzone.nordicsemi.com/.../nrf_5F00_test_2D00_spi_5F00_flash2.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With respect to question 1, yes, I am using the standard nRF52840DK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tested this again by creating a brand new project and importing the sample. It still doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I inspect the compile logs in more detail I see the following error which may explain why it isn&amp;#39;t working.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:61px;max-width:630px;" height="61" src="https://devzone.nordicsemi.com/resized-image/__size/1260x122/__key/communityserver-discussions-components-files/4/pastedimage1660651919875v1.png" width="630" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am not sure why it is giving this error. I haven&amp;#39;t changed anything in the settings.&lt;/p&gt;
&lt;p&gt;I have had other sample apps that required updating before they would work but in this case&amp;nbsp;I&amp;#39;m not sure what needs to change as there is very little in the project to start with.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have attached the project for your reference.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Gary&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with SPI Flash sample and Info</title><link>https://devzone.nordicsemi.com/thread/381744?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 11:22:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3067a1e7-e05c-47dc-b957-b3554f4d4ffa</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]1) Is there something in the settings I am missing to get this working?[/quote]
&lt;p&gt;Are you using nRF52840DK or the custom board? Without&amp;nbsp;modification, you should be able to run &lt;span&gt;zephyr/samples/drivers/spi_flash&lt;/span&gt;&amp;nbsp;&lt;span&gt;on nRF52840DK. Maybe try to run &lt;code&gt;nrfjprog --recover&lt;/code&gt; before running the test.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]I assume this is using a Nordic provided qspi-nor driver as the interface for this flash chip?[/quote]
&lt;p&gt;&lt;span&gt;Yes, see&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/4c5893f9683681bc7c63312a18a0f7af39a483ce/samples/drivers/spi_flash/boards/nrf52840dk_nrf52840.conf#L8"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/4c5893f9683681bc7c63312a18a0f7af39a483ce/samples/drivers/spi_flash/boards/nrf52840dk_nrf52840.conf#L8&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]I would like to include a 512kb SPI NOR chip on my device.[/quote]
&lt;p&gt;&lt;span&gt;JEDEC ID and&amp;nbsp;the size should be all that&amp;#39;s necessary to change in the overlay (.dts) file of your project.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]2) Is there any way to tell which specific manufacturers or chips the Nordic driver is compatible with that will help me with my selection or should all SPI NOR chips work with this driver?[/quote]
&lt;p&gt;Most SPI NOR flashes (that run on ~3V) should work as far as we know.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]3) Can the Nordic driver only handle Quad SPI chips or can it also work with Dual and Single SPI chips?[/quote]
&lt;p&gt;&lt;span&gt;Yes, it also works with dual and single SPI.&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]4) Is this a standard Zephyr driver for SPI-NOR? How does this this driver differ from the Nordic one?[/quote]
&lt;p&gt;&lt;span&gt;This is the Nordic driver used in the&amp;nbsp;zephyr/samples/drivers/spi_flash sample. See&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/4c5893f9683681bc7c63312a18a0f7af39a483ce/samples/drivers/spi_flash/boards/nrf52840dk_nrf52840.conf#L8"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/4c5893f9683681bc7c63312a18a0f7af39a483ce/samples/drivers/spi_flash/boards/nrf52840dk_nrf52840.conf#L8&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/42a1b2637a135036c5355473058cef3d2821af2c/samples/drivers/spi_flash/src/main.c#L18"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/42a1b2637a135036c5355473058cef3d2821af2c/samples/drivers/spi_flash/src/main.c#L18&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am not familiar with the Zephyr driver for SPI-NOR, so not able to point out the difference.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>