<?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>Setting write latch of MT25Q SPI flash?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67047/setting-write-latch-of-mt25q-spi-flash</link><description>Any idea why I need to send write enable twice, without reading the status in between, to get the write latch set? 
 
 
 It doesn&amp;#39;t work this way, but if I change &amp;quot;#if 0&amp;quot; to &amp;quot;#if 1&amp;quot;, it works. 
 And if I uncomment the &amp;quot;// read_status_blocking();&amp;quot;, it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Oct 2020 15:32:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67047/setting-write-latch-of-mt25q-spi-flash" /><item><title>RE: Setting write latch of MT25Q SPI flash?</title><link>https://devzone.nordicsemi.com/thread/275168?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 15:32:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:001a6d9c-7f3b-41ac-9116-78bc2f5e2b9f</guid><dc:creator>turboscrew</dc:creator><description>&lt;p&gt;As you can see, everything about the transfers are globals.&lt;/p&gt;
&lt;p&gt;Anyway, you might want to bring that to the developers, but I got this problem solved, so this issue can be closed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting write latch of MT25Q SPI flash?</title><link>https://devzone.nordicsemi.com/thread/275166?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 15:30:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:322d31a9-f361-4702-80ed-7f59b86f8be5</guid><dc:creator>turboscrew</dc:creator><description>&lt;p&gt;Unfortunately, I don&amp;#39;t have the time. I have to get this demo working, and the deadline is approaching.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting write latch of MT25Q SPI flash?</title><link>https://devzone.nordicsemi.com/thread/275154?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 14:45:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f3e59c6-5cf2-49e8-8d9d-f3c7b69fd191</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I don&amp;#39;t have a good explanation to the inconsistency, it may be a variable that is not persistent (maybe optimized away if not static, while still pointed to in memory by the spi manager), I suggest to try the spi driver directly (&lt;span&gt;\examples\peripheral\spi) instead of the spi manager.&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: Setting write latch of MT25Q SPI flash?</title><link>https://devzone.nordicsemi.com/thread/275109?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 13:12:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5df6d8d7-9509-425e-8766-444e704d2e86</guid><dc:creator>turboscrew</dc:creator><description>&lt;p&gt;Extra. It seems like it comes from receive buffer size 1. Then again, why is it there in the first time, but not in the second time? And some chips send the current status as response to the command byte. Catching that should also be achievable?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting write latch of MT25Q SPI flash?</title><link>https://devzone.nordicsemi.com/thread/275097?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 12:57:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c05a348-e389-4ee9-ae90-c7b361b5e324</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Can you use the spi driver directly instead of the spi manager? You may refer to&amp;nbsp;\examples\peripheral\spi for example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding the ???, is that byte wrong (should not be FF) or is it an extra byte that should not be there (wrong length of transfer).&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: Setting write latch of MT25Q SPI flash?</title><link>https://devzone.nordicsemi.com/thread/275082?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 12:34:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f9f3a19-a94b-407d-87bf-4c76fe7717fd</guid><dc:creator>turboscrew</dc:creator><description>&lt;p&gt;Now I saw something:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/SPI_5F00_flash.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;MOSI 66, MISO FF // reset enable&lt;/p&gt;
&lt;p&gt;MOSI FF, MISO FF // ???&lt;/p&gt;
&lt;p&gt;MOSI 99, MISO FF // reset memory&lt;/p&gt;
&lt;p&gt;MOSI 05, MISO FF // read status&lt;/p&gt;
&lt;p&gt;MOSI FF, MISO 02 // status value&lt;/p&gt;
&lt;p&gt;MOSI 70, MISO FF // read flag status&lt;/p&gt;
&lt;p&gt;MOSI FF, MISO 80 // flag status value&lt;/p&gt;
&lt;p&gt;MOSI 06, MISO FF // write enable&lt;/p&gt;
&lt;p&gt;MOSI FF, MISO FF // ???&lt;/p&gt;
&lt;p&gt;MOSI 06, MISO FF // write enable&lt;/p&gt;
&lt;p&gt;MOSI 05, MISO FF // read status&lt;/p&gt;
&lt;p&gt;MOSI FF, MISO 02 // status value&lt;/p&gt;
&lt;p&gt;MOSI 70, MISO FF // read flag status&lt;/p&gt;
&lt;p&gt;MOSI FF, MISO 80 // flag status value&lt;/p&gt;
&lt;p&gt;Looks like the extra MOSI FF, MISO FF causes the problem.&lt;/p&gt;
&lt;p&gt;Where does that extra FF-write come from? And why it&amp;#39;s there sometimes, but not always?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting write latch of MT25Q SPI flash?</title><link>https://devzone.nordicsemi.com/thread/274659?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 13:01:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e3001ad-a15e-4db9-8380-8ce56fa9f720</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I suggest to wait for the logic analyzer and compare with and without the #if statement.&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: Setting write latch of MT25Q SPI flash?</title><link>https://devzone.nordicsemi.com/thread/274612?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 11:56:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8dd8e6a-5922-4198-85a4-d5a4c72c1eb3</guid><dc:creator>turboscrew</dc:creator><description>&lt;p&gt;Checked the extflash_transact_done reset and added som more just in case.&lt;/p&gt;
&lt;p&gt;No change.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting write latch of MT25Q SPI flash?</title><link>https://devzone.nordicsemi.com/thread/274582?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 11:25:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cda5c6f-3202-4f74-9738-c6659b84842a</guid><dc:creator>turboscrew</dc:creator><description>&lt;p&gt;I agree, but I can&amp;#39;t get any until, maybe, Thursday.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting write latch of MT25Q SPI flash?</title><link>https://devzone.nordicsemi.com/thread/274580?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 11:23:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a438c60e-850c-4daf-94c1-abf72102167e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;To debug I think getting a logic analyzer (e.g. &lt;a href="https://www.saleae.com/"&gt;https://www.saleae.com/&lt;/a&gt;) trace would be very useful.&lt;/p&gt;
&lt;p&gt;Maybe double check that&amp;nbsp;extflash_transact_done is reset before each transfer.&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: Setting write latch of MT25Q SPI flash?</title><link>https://devzone.nordicsemi.com/thread/274568?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 10:48:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38f4aad5-89e2-450b-82bc-15544d71683e</guid><dc:creator>turboscrew</dc:creator><description>&lt;p&gt;And reading the chip ID bytes (20 bytes) hasn&amp;#39;t caused any problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>