<?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>Fail to write data form nrf52840 to nor flash w25q128jv</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122504/fail-to-write-data-form-nrf52840-to-nor-flash-w25q128jv</link><description>i am writing data from wav file to w25q128jv and i got error -22 at some offset while writing. i tried many config but it seems the problem is not solved, does anyone have any idea for my case, thank you very much 
 overlay : 
 
 config in code : 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Jul 2025 07:43:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122504/fail-to-write-data-form-nrf52840-to-nor-flash-w25q128jv" /><item><title>RE: Fail to write data form nrf52840 to nor flash w25q128jv</title><link>https://devzone.nordicsemi.com/thread/541274?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2025 07:43:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f00d560c-098e-4fb0-a6a7-665467639256</guid><dc:creator>LeDucTai</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;Thanks for your reminder&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to write data form nrf52840 to nor flash w25q128jv</title><link>https://devzone.nordicsemi.com/thread/540970?ContentTypeID=1</link><pubDate>Tue, 01 Jul 2025 07:17:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f072fab-9fdc-4f78-a68d-82a0afd359ea</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;I believe Hung addressed your issue here?&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/122601/can-only-mount-and-write-in-the-address-range-from-0x00---0x0200000-2mb-on-w25q128jv"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/122601/can-only-mount-and-write-in-the-address-range-from-0x00---0x0200000-2mb-on-w25q128jv&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is this correct? Can we close this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to write data form nrf52840 to nor flash w25q128jv</title><link>https://devzone.nordicsemi.com/thread/540558?ContentTypeID=1</link><pubDate>Thu, 26 Jun 2025 09:17:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53066eb1-b13f-4991-bf72-786910abc5ae</guid><dc:creator>LeDucTai</dc:creator><description>&lt;p&gt;and again thank you for taking care of my problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to write data form nrf52840 to nor flash w25q128jv</title><link>https://devzone.nordicsemi.com/thread/540557?ContentTypeID=1</link><pubDate>Thu, 26 Jun 2025 09:16:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50ea66af-c431-4e04-b3ca-e068ab62cdae</guid><dc:creator>LeDucTai</dc:creator><description>&lt;p&gt;Hello Hakon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;this is my source :&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/l5_5F00_ex1.zip"&gt;devzone.nordicsemi.com/.../l5_5F00_ex1.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;sorry for this mess. i have some new clues, it seems i can only operate on the first 2mb of nor flash, my attempts to erase or mount are only allowed on the address areas of the first 2mb, i have read and written successfully on this 2mb before but at that time i was partitioning 16mb and i thought there was fragmentation in nor flash. now i partitioned 2mb and reading and writing on it seems fine no more -22 error, i am not sure this is the cause but if it is the cause is there any way i can have full access to the 16mb memory area of ​​w25q128jv. below is the datasheet of w25q128jv and i see &amp;quot;Memory Protection&amp;quot; in it.&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1750929356394v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.winbond.com/resource-files/W25Q128JV%20RevI%2008232021%20Plus.pdf"&gt;www.winbond.com/.../W25Q128JV RevI 08232021 Plus.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fail to write data form nrf52840 to nor flash w25q128jv</title><link>https://devzone.nordicsemi.com/thread/540555?ContentTypeID=1</link><pubDate>Thu, 26 Jun 2025 08:57:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:182b1611-b166-44df-b0cf-2eb8d3a10e12</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;do you mind sharing the full code here, so I can reproduce and debug this error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>