<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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/write external flash(GD25Q16E) fail with QSPI</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88824/read-write-external-flash-gd25q16e-fail-with-qspi</link><description>Hi Nordic, 
 I am working with nRF52840, sdk17.1.0 and got a pcb with external flash with GD25Q16E. 
 Pins usage are: SCLK: P0.25, CS:P1.00, SIO0:P0.21, SIO1:P0.15, SIO2:P0.22, SIO3:P0.19 
 First I have modified the pins and used the example on sdk\examples</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Tue, 14 Jun 2022 12:29:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88824/read-write-external-flash-gd25q16e-fail-with-qspi" /><item><title>RE: read/write external flash(GD25Q16E) fail with QSPI</title><link>https://test-devzone.nordicsemi.com/thread/372381?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 12:29:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcf6060f-4372-45d2-a791-17e7ec9f20de</guid><dc:creator>user2111</dc:creator><description>&lt;p&gt;Can you try to do a restart of your computer, and don&amp;#39;t start up any other program on your pc, but only try to run the nrfjprog command? Are you sure you have connected both gnd, vdd, swdio and swdclk.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read/write external flash(GD25Q16E) fail with QSPI</title><link>https://test-devzone.nordicsemi.com/thread/372341?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 10:24:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:459de04b-55b6-4f88-9e9d-c8e1f2fa5d2d</guid><dc:creator>user116085</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;update first:&lt;/p&gt;
&lt;p&gt;C:\Users\Gavin&amp;gt;nrfjprog --version&lt;br /&gt;nrfjprog version: 10.15.2 external&lt;br /&gt;JLinkARM.dll version: 7.58b&lt;/p&gt;
&lt;p&gt;C:\Users\Gavin&amp;gt;nrfjprog --memrd 0&lt;br /&gt;ERROR: Unable to connect to a debugger.&lt;br /&gt;ERROR: JLinkARM DLL reported an error. Try again. If error condition&lt;br /&gt;ERROR: persists, run the same command again with argument --log, contact Nordic&lt;br /&gt;ERROR: Semiconductor and provide the generated log.log file to them.&lt;br /&gt;NOTE: For additional output, try running again with logging enabled (--log).&lt;br /&gt;NOTE: Any generated log error messages will be displayed.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;#39;nrfjprog&amp;nbsp;--qspieraseall&amp;#39; and &amp;#39;nrfjprog --readqspi filename&amp;#39; both fail.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Although this problem(&lt;span&gt;Unable to connect to a debugger&lt;/span&gt;) occurs, Jlink is workable in&amp;nbsp;SEGGER IDE.&lt;/p&gt;
&lt;p&gt;Is it weired?&amp;nbsp; &amp;nbsp; what is the different&amp;nbsp; between jlink and nrfprog?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Gavin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read/write external flash(GD25Q16E) fail with QSPI</title><link>https://test-devzone.nordicsemi.com/thread/372282?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 06:55:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:530cc29a-4d37-4060-a990-bde9d7cd6ef9</guid><dc:creator>user2111</dc:creator><description>&lt;p&gt;That error sounds like a more generic error with the connection between jlink and nRF52. Does any other nrfjprog command work? E.g. how about just reading internal flash of the nRF52 using&amp;nbsp;&lt;span&gt;nrfjprog --memrd&amp;nbsp;0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What does it say if you call nrfjprog --version&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you are able to read using nrfjprog --memrd 0, then it sounds to be a error of the qspi interface yes. Though you can run the qspi commands on an DK for comparison also.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Though you have not told me if the&amp;nbsp;&amp;#39;nrfjprog&amp;nbsp;--qspieraseall&amp;#39; and &amp;#39;nrfjprog --readqspi filename&amp;#39; did succeed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read/write external flash(GD25Q16E) fail with QSPI</title><link>https://test-devzone.nordicsemi.com/thread/372241?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 01:16:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc67a7b6-c44a-46f7-8bf3-258ba7ac7a30</guid><dc:creator>user116085</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;I tested on our pcb and got these log.&lt;/p&gt;
&lt;p&gt;C:\Users\Gavin&amp;gt;nrfjprog --memrd 0x12000000&lt;br /&gt;ERROR: Unable to connect to a debugger.&lt;br /&gt;ERROR: JLinkARM DLL reported an error. Try again. If error condition&lt;br /&gt;ERROR: persists, run the same command again with argument --log, contact Nordic&lt;br /&gt;ERROR: Semiconductor and provide the generated log.log file to them.&lt;br /&gt;NOTE: For additional output, try running again with logging enabled (--log).&lt;br /&gt;NOTE: Any generated log error messages will be displayed.&lt;/p&gt;
&lt;p&gt;Does it mean QSPI interface not correct?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Gavin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read/write external flash(GD25Q16E) fail with QSPI</title><link>https://test-devzone.nordicsemi.com/thread/372091?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 10:50:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:771d9d6b-bb34-4ea0-800c-604fd8407fe6</guid><dc:creator>user2111</dc:creator><description>&lt;p&gt;Looks like it:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://test-devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0003.pastedimage1655117429609v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The QSPI flash will be mapped from memory location starting from 0x12000000.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read/write external flash(GD25Q16E) fail with QSPI</title><link>https://test-devzone.nordicsemi.com/thread/371997?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 02:12:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24e2b075-3727-4218-adce-bf1a454b3df6</guid><dc:creator>user116085</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Could you also provide writing cmd?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regard,&lt;/p&gt;
&lt;p&gt;Gavin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read/write external flash(GD25Q16E) fail with QSPI</title><link>https://test-devzone.nordicsemi.com/thread/371864?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 11:43:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:582d5ef6-acd1-4978-a44c-6d1fa81fbd07</guid><dc:creator>user2111</dc:creator><description>&lt;p&gt;I suggest you play around and test a bit with nrfjprog command line to interface your qspi flash first to ensure that it&amp;#39;s electrically correct before you start with the code development.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For instance you can find there is both an &amp;#39;nrfjprog&amp;nbsp;--qspieraseall&amp;#39; and &amp;#39;nrfjprog --readqspi filename&amp;#39; that can be used. Note however that you may need to adjust&amp;nbsp;&lt;em&gt;C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\share\QspiDefault.ini&lt;/em&gt; file in a text editor to fit with your hardware layout.&lt;/p&gt;
&lt;p&gt;For instance in the .ini file I suggest you try with&amp;nbsp;Frequency = M2&lt;/p&gt;
&lt;p&gt;Remember to take a copy of the .ini file.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read/write external flash(GD25Q16E) fail with QSPI</title><link>https://test-devzone.nordicsemi.com/thread/371760?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 05:15:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99b878a0-e957-4b08-845b-135e7d375d17</guid><dc:creator>user116085</dc:creator><description>&lt;p&gt;Hi Nordic,&lt;/p&gt;
&lt;p&gt;I found nrfjprog can be used to read/write external &lt;span&gt;MX25R6435F&amp;nbsp;&lt;/span&gt;QSPI flash.&lt;/p&gt;
&lt;p&gt;Is it also workable for&amp;nbsp;&lt;span&gt;GD25Q16E?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Does&amp;nbsp;the nrfjprog use page program(cmd: 0x02) to write data ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regard,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Gavin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>