<?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>QSPI writes of &amp;lt;4 bytes fail</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62283/qspi-writes-of-4-bytes-fail</link><description>Hello: 
 
 I am using the QSPI example on the NRF52840 dev board with the objective of implementing SPIFFS. After a lot of tinkering I believe this is not possible due to the fact that the QSPI seems to fail for reads/writes of less than 4 bytes. I found</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Jun 2020 14:45:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62283/qspi-writes-of-4-bytes-fail" /><item><title>RE: QSPI writes of &lt;4 bytes fail</title><link>https://devzone.nordicsemi.com/thread/254079?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2020 14:45:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7470059c-1f3b-414e-9db8-885cefb6764a</guid><dc:creator>Eduardo Garcia</dc:creator><description>&lt;p&gt;Thank you, understood. I will implement with SPI. It would be a significant modification to the library to adapt for word use. Thanks again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI writes of &lt;4 bytes fail</title><link>https://devzone.nordicsemi.com/thread/253820?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2020 13:36:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e5f3519-bb0e-488c-bd4e-59bc899724dd</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Indeed, the QSPI is only able to read and write full words I.E. in multiples of 4 bytes. This is because the QSPI peripherals READ and WRITE SRC registers have to point to a word-aligned address and only works in 32-bit words, I.E. ending with 0x0, 0x4, 0x8, or 0xC. Please see &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fqspi.html&amp;amp;c&amp;amp;anchor=register.WRITE.SRC"&gt;the documentation&lt;/a&gt; for more information. I know this isn&amp;#39;t much of a further explanation, but the fact is that the HW peripheral is not able to end at any other values.&lt;/p&gt;
&lt;p&gt;I think you will have to go for using normal SPI unless you&amp;#39;re able to edit all messages to end with one of the mentioned values (you might be able to add empty bytes of data at the end of each transmission to make this happen).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>