<?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>Error while testing spi_flash sample on nrf53 and nrf52840 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119095/error-while-testing-spi_flash-sample-on-nrf53-and-nrf52840-dk</link><description>Hi Team, 
 
 I am facing an issue while testing spi_flash sample while testing it on nrf5340 as well as nrf52840 DK. Attaching the code with the ticket. The sample throws below error. 
 
 
 
 
 Please have a look and let me know what&amp;#39;s the issue with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Feb 2025 07:26:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119095/error-while-testing-spi_flash-sample-on-nrf53-and-nrf52840-dk" /><item><title>RE: Error while testing spi_flash sample on nrf53 and nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/523813?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2025 07:26:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ac128c1-8180-4608-a0f2-bb594e7aaa46</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I&amp;#39;m using SDK v2.8.0 as you can see from the log I posted in my first answer. Also, if we are testing with the same hex file there is not really any reason to suspect the problem is with the configuration or build setup.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error while testing spi_flash sample on nrf53 and nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/523811?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2025 07:18:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d5568f6-7f3c-4cec-86f1-4ab764c43be3</guid><dc:creator>Vivek</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;No, we are not able to do that. The memory (device) is not ready, it says.&lt;br /&gt;Did you run your program using nrf SDK v2.8.0. We are using v2.8.0&lt;br /&gt;Is there any issue here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error while testing spi_flash sample on nrf53 and nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/523809?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2025 07:13:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7f8b6c0-fd8d-4b77-b703-55abe404b431</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It is surprising that my pre-compiled&amp;nbsp;hex file works on my DK but fails on yours&amp;nbsp;when you can erase the Macronix flash using nrfjprog without issues. This suggests that the connections and power&amp;nbsp;to the flash are ok.&lt;/p&gt;
&lt;p&gt;Are you also able to write and read from the external flash using nrfjprog?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog -f nrf52 --qspieraseall
# Write test word to Macronix flash
nrfjprog -f nrf52 --memwr 0x12000000 --val 0x123456
# Read back value to confirm it was stored correctly
nrfjprog -f nrf52 --memrd 0x12000000&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error while testing spi_flash sample on nrf53 and nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/523761?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2025 17:32:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d057505-ad13-4c95-9be5-1ac49db31803</guid><dc:creator>Vivek</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/119095/error-while-testing-spi_flash-sample-on-nrf53-and-nrf52840-dk/523716"]6318.merged.hex[/quote]
&lt;p&gt;we tried flashing this hex file as well as tried the two commands as mentioned but still the problem is not resolved.&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/119095/error-while-testing-spi_flash-sample-on-nrf53-and-nrf52840-dk/523716"]If this does not work either, try to erase the external flash with nrfjprog:[/quote]
&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/pastedimage1739986264937v3.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The error still persists. We are currently using NCS 2.8.0 so is there any issue with that?&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/pastedimage1739986277606v5.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Awaiting for the response.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error while testing spi_flash sample on nrf53 and nrf52840 DK</title><link>https://devzone.nordicsemi.com/thread/523716?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2025 13:26:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a62d7df-8650-4d26-88b2-5a73e031af24</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I built and ran your project on a nRF52840 DK, but was unable to reproduce the problem.&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/pastedimage1739971366681v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Please try to program the hex file below which is from my build and see if you can get the same result on your nRF52840 DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;HEX file&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6318.merged.hex"&gt;devzone.nordicsemi.com/.../6318.merged.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --program merged.hex --chiperase --verify --reset&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If this does not work either, try to erase the external flash with nrfjprog:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog -f nrf52 --qspieraseall
nrfjrog -r&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>