<?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>Zephyr / LittleFS intermittent mount issue on power cycle.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115490/zephyr-littlefs-intermittent-mount-issue-on-power-cycle</link><description>I&amp;#39;m using nRF Connect SDK version 2.3.0 nrf52840, and external flash - W25Q256JVEIQ. I believe I&amp;#39;m running the chip at 80MHz (rated for 133), with the qspi chip and partition set up for 100% of the available memory in bits, and Bytes, respectively. I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Oct 2024 13:34:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115490/zephyr-littlefs-intermittent-mount-issue-on-power-cycle" /><item><title>RE: Zephyr / LittleFS intermittent mount issue on power cycle.</title><link>https://devzone.nordicsemi.com/thread/506537?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2024 13:34:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e537584f-3f38-45d1-9da2-4984b7e9be9b</guid><dc:creator>Ryan010</dc:creator><description>&lt;p&gt;An update:&lt;br /&gt;&lt;br /&gt;I am not certain that I have found the issue, but I did find some issues in my configuration, and application code that could have all contributed to this error.&lt;br /&gt;&lt;br /&gt;Firstly, I confirmed that the power on ramp rate of the chip was in the valid range. VCC ramps up in 0.6ms. (within 100ms limit)&lt;br /&gt;&lt;br /&gt;I then confirmed the delay to first read of the memory chip was OK - this is about 3ms (within the 20us limit of the external flash chip)&lt;br /&gt;&lt;br /&gt;Then, I looked at my QSPI signaling, and something looked off. - clock is blue.&lt;br /&gt;&lt;br /&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/pastedimage1729085334747v2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Turns out, I had forgotten to enable &amp;quot;high drive&amp;quot; for GPIO pins used for the QSPI interface in my custom board dtsi.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I included the nordic,drive-mode = &amp;lt;NRF_DRIVE_H0H1&amp;gt;; in the GPIO group, and the signaling looks great now, even with the added capacive load of my scope probe, measured after the series termination resistor.&lt;br /&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/pastedimage1729085444165v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;qspi_default: qspi_default {&lt;br /&gt; group1 {&lt;br /&gt; psels = &amp;lt;NRF_PSEL(QSPI_SCK, 0, 19)&amp;gt;,&lt;br /&gt; &amp;lt;NRF_PSEL(QSPI_IO0, 0, 22)&amp;gt;,&lt;br /&gt; &amp;lt;NRF_PSEL(QSPI_IO1, 0, 21)&amp;gt;,&lt;br /&gt; &amp;lt;NRF_PSEL(QSPI_IO2, 0, 23)&amp;gt;,&lt;br /&gt; &amp;lt;NRF_PSEL(QSPI_IO3, 0, 20)&amp;gt;,&lt;br /&gt; &amp;lt;NRF_PSEL(QSPI_CSN, 0, 17)&amp;gt;;&lt;/p&gt;
&lt;p&gt;nordic,drive-mode = &amp;lt;NRF_DRIVE_H0H1&amp;gt;;&lt;br /&gt; };&lt;br /&gt; };&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I caught another error - where the application code could trigger a write to the external memory while the power was failing:&lt;br /&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/pastedimage1729085583228v6.png" alt=" " /&gt;&lt;br /&gt;Thankfully, the nRF is in control of the power off sequence, so I have blocked writes after the power down is triggered, for longer than the time required for VCC to drop below 1.8V.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I will continue testing this, but it is highly unlikely that the error will persist with the above corrections.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr / LittleFS intermittent mount issue on power cycle.</title><link>https://devzone.nordicsemi.com/thread/506352?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2024 16:00:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b357cc26-e194-46e8-b98e-d65a535f2d98</guid><dc:creator>Ryan010</dc:creator><description>&lt;p&gt;That is a great catch. Thank you! I&amp;#39;ve adjusted the clock speed.&lt;br /&gt;&lt;br /&gt;I will test this, the intermittent nature may take some time to test well. I&amp;#39;ll note the rise time of the VDD pin as well - confirming it falls within the 100ms maximum.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ll test and update here as soon as I have something to report.&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;Ryan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr / LittleFS intermittent mount issue on power cycle.</title><link>https://devzone.nordicsemi.com/thread/506322?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2024 13:05:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d118d361-bc4e-4bd7-964c-01313bb809b8</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The first thing I noticed is that you say you are running the QSPI on 80MHz, but the QSPI on the nRF52840 only supports up to 32MHz. Can you please try to set it to 32MHz, and see if the behavior changes?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If that doesn&amp;#39;t help, is this something you are able to reproduce on the nRF52840DK with the external chip that is present there?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>