<?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>LittleFs mounting issue on external flash MT25QU128ABB8E12</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110063/littlefs-mounting-issue-on-external-flash-mt25qu128abb8e12</link><description>While I am able to properly read and write to the NOR flash with the flash API from zephyr, I am not able to mount the file system littlefs. The written bytes are read out and checked accordingly. To properly set up the overlay file, I used the JESD216</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Apr 2024 09:12:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110063/littlefs-mounting-issue-on-external-flash-mt25qu128abb8e12" /><item><title>RE: LittleFs mounting issue on external flash MT25QU128ABB8E12</title><link>https://devzone.nordicsemi.com/thread/478502?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 09:12:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdd2baa1-3869-4230-bb26-3b15b4f066ad</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Alright, let&amp;#39;s have a closer look at this then.&lt;/p&gt;
[quote user="Bucky2"] Although on the oscilloscope the bytes were correctly tranfered.[/quote]
&lt;p&gt;Could you send the graphs here so I can also have a look? I don&amp;#39;t expect to find anything more from them, but it is good to have all the info.&lt;/p&gt;
[quote user=""]W: WEST_TOPDIR/modules/fs/littlefs/lfs.c:2059: Superblock 0x0 has become unwritable[/quote]
&lt;p&gt;You say you use v2.5.1. But the Superblock warning is at 1897 in v2.5.1:&lt;/p&gt;
&lt;p&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/pastedimage1712912974348v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;That looks odd to me. What do you see for this?&lt;/p&gt;
&lt;p&gt;Could you log the arrays that goes into lfs_pair_cmp for both DK and your flash, so we can see how they differ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LittleFs mounting issue on external flash MT25QU128ABB8E12</title><link>https://devzone.nordicsemi.com/thread/478115?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 15:03:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07eeecd7-42de-44f8-979b-18931ef377a7</guid><dc:creator>Bucky2</dc:creator><description>&lt;p&gt;Thanks for the tip. I tried it out and sadly it does not work.&lt;br /&gt;But surely it was worth a try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LittleFs mounting issue on external flash MT25QU128ABB8E12</title><link>https://devzone.nordicsemi.com/thread/478084?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 13:31:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2404c5d-2bee-487b-996b-2a3d0044a438</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Does &amp;quot;nrfjprog -f NRF53 --qspieraseall&amp;quot; work for your external flash?&lt;/p&gt;
&lt;p&gt;I am asking because we have seen bugs before where this command can fix things, so it is an easy thing to try as a shot in the dark.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LittleFs mounting issue on external flash MT25QU128ABB8E12</title><link>https://devzone.nordicsemi.com/thread/477972?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 08:34:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb6fc4c2-f576-443d-8f15-3ac76c13b830</guid><dc:creator>Bucky2</dc:creator><description>&lt;p&gt;Thanks a lot for the fast response!&lt;br /&gt;It is true, that I can mount the file system if I change the configuration of the data lines.&lt;br /&gt;Actually, fastread and pp are the only configurations that work out. However, doesn&amp;#39;t this exctly get rid of the benefits of quad SPI? Since now we basically configure the QSPI as a &amp;quot;normal&amp;quot; SPI line. Is there any possibility to still mount the file system while maintaining the ability to use QSPI?&lt;br /&gt;&lt;br /&gt;When I used the flash API, I discovered, that &amp;quot;&lt;span&gt;read4io&amp;quot; and &amp;quot;pp4io&amp;quot; resulted in a misalignment in bytes. Although on the oscilloscope the bytes were correctly tranfered. Basically the read out bytes were shifted by two instances in the flash compared to where the written one were. By using &amp;quot;read4o&amp;quot;, I was able to get rid of this. Now I guess, there is some similar reason why the mounting of the file system doesn&amp;#39;t work. Any ideas here?&lt;br /&gt;&lt;br /&gt;Thanks a lot for the help!&lt;br /&gt;It would be great to use QSPI in the end.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LittleFs mounting issue on external flash MT25QU128ABB8E12</title><link>https://devzone.nordicsemi.com/thread/477883?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 17:20:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93cb5f9f-2a66-4243-b145-48ac11b53741</guid><dc:creator>aaminu</dc:creator><description>&lt;p&gt;Hello, I was in the same shoes just 30mins ago. I tried using the lowest data lines available for both reading and writing, and that cleared the mounting error:&lt;/p&gt;
&lt;div&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;code&gt;&lt;span&gt;readoc &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;fastread&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&lt;span&gt;writeoc &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;pp&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div&gt;Also check the size parameter in your partition definition because it seems your nor-flash is 128Mb.&lt;br /&gt;&lt;br /&gt;I plan on increasing the data-lines to see what sticks.&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>