<?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>nrfjprog qspi erase/read failing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111023/nrfjprog-qspi-erase-read-failing</link><description>Hello, 
 I&amp;#39;m trying to erase/read an external flash ( MX25L6433F) connected to an nrf52840 using nrfjprog. I&amp;#39;ve created a .toml file for the configuration, see attached. The qspi pinout in the toml file is correct and I modified the custom instructions</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 May 2024 09:02:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111023/nrfjprog-qspi-erase-read-failing" /><item><title>RE: nrfjprog qspi erase/read failing</title><link>https://devzone.nordicsemi.com/thread/485333?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 09:02:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87cfbf4d-2255-43de-97e8-bd3ef0612fda</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="IanS"]&lt;p&gt;I looked into the QSPI lines using an oscilloscope and found that the CS line had a low slew rate&amp;nbsp;and couldn&amp;#39;t transition between hi/lo fast enough for &lt;span&gt;QSPI&lt;/span&gt;, even at 2MHz. SPI worked because there were large delays&amp;nbsp;around asserting/de-asserting the CS line. There must be some configuration for that.&lt;/p&gt;
&lt;p&gt;The low slew rate appears to be caused by an internal RC circuit for reset pin 0.18 on the module I&amp;#39;m using (BT840XE).&lt;/p&gt;[/quote]
&lt;p&gt;Good job!&lt;/p&gt;
[quote user="IanS"]&lt;p&gt;I swapped the CS line to another free pin and &lt;span&gt;QSPI&amp;nbsp;&lt;/span&gt;works fine, with nrfjprog as well. Although, for nrfjprog to work, I need to program the sample first. nrfjprog doesn&amp;#39;t allow me to read over qspi when the program is erased.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s unfortunate that nrfjprog would indicate it was reading the external memory and fill a file with bad data when it was actually not reading anything. Or it would hang and require the process to be killed manually on Windows.&lt;/p&gt;[/quote]
&lt;p&gt;Thanks for the report on this!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog qspi erase/read failing</title><link>https://devzone.nordicsemi.com/thread/484847?ContentTypeID=1</link><pubDate>Fri, 17 May 2024 21:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a56b47a0-32b2-4617-8d45-060deda07d2f</guid><dc:creator>Ian</dc:creator><description>&lt;p&gt;I looked into the QSPI lines using an oscilloscope and found that the CS line had a low slew rate&amp;nbsp;and couldn&amp;#39;t transition between hi/lo fast enough for &lt;span&gt;QSPI&lt;/span&gt;, even at 2MHz. SPI worked because there were large delays&amp;nbsp;around asserting/de-asserting the CS line. There must be some configuration for that.&lt;/p&gt;
&lt;p&gt;The low slew rate appears to be caused by an internal RC circuit for reset pin 0.18 on the module I&amp;#39;m using (BT840XE).&lt;/p&gt;
&lt;p&gt;I swapped the CS line to another free pin and &lt;span&gt;QSPI&amp;nbsp;&lt;/span&gt;works fine, with nrfjprog as well. Although, for nrfjprog to work, I need to program the sample first. nrfjprog doesn&amp;#39;t allow me to read over qspi when the program is erased.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s unfortunate that nrfjprog would indicate it was reading the external memory and fill a file with bad data when it was actually not reading anything. Or it would hang and require the process to be killed manually on Windows.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog qspi erase/read failing</title><link>https://devzone.nordicsemi.com/thread/483023?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 11:58:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09be4147-ee43-45ad-b349-9672105f54ee</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="IanS"]Shouldn&amp;#39;t nrfjprog be able to read/erase the qspi regardless of the ncs sdk version?[/quote]
&lt;p&gt;Agreed. I just like to always ask.&lt;/p&gt;
[quote user="IanS"]When running the sample, it prints &amp;quot;device not ready&amp;quot; in main.c. It looks like this is due to a timeout at the end of nrfx_qspi_init.[/quote]
&lt;p&gt;It could look like you do not get a connection to the QSPI at all, then.&lt;/p&gt;
&lt;p&gt;Connect an oscillosocpe or logic analyzer to the QSPI lines and see if you can see any communication here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog qspi erase/read failing</title><link>https://devzone.nordicsemi.com/thread/482877?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 22:54:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3600258a-c3d7-454a-ad54-decb95b6b996</guid><dc:creator>Ian</dc:creator><description>&lt;p&gt;NCS 1.9.2&lt;/p&gt;
&lt;p&gt;Although, when I&amp;#39;m trying to use nrfjprog, the device is erased. Shouldn&amp;#39;t nrfjprog be able to read/erase the qspi regardless of the ncs sdk version?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is a custom board,&amp;nbsp;so I added a basic.dts for the it. I copied the qspi dts config from nrf52840dk_nrf52840.dts and only changed the pinout.&lt;/p&gt;
&lt;p&gt;When running the sample, it prints &amp;quot;device not ready&amp;quot; in main.c. It looks like this is due to a timeout at the end of nrfx_qspi_init.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog qspi erase/read failing</title><link>https://devzone.nordicsemi.com/thread/482764?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 10:27:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:417d894b-c5d7-4897-87a7-454f95828334</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which version of the SDK do you use?&lt;/p&gt;
&lt;p&gt;Try the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/drivers/jesd216/README.html"&gt;JESD216&lt;/a&gt; sample. Does that work?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>