<?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>Interfacing FAT file system into WinbondW25Q02 using SPI-nor driver</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114612/interfacing-fat-file-system-into-winbondw25q02-using-spi-nor-driver</link><description>Greetings, 
 I have been trying to integrate file system into Winbond W25Q02 NOR storage, Initially I tested the hardware by interfacing SPI communication between nrf 5340 and winbond and I was able to read JEDEC id, write characters into various pages</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Oct 2024 18:42:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114612/interfacing-fat-file-system-into-winbondw25q02-using-spi-nor-driver" /><item><title>RE: Interfacing FAT file system into WinbondW25Q02 using SPI-nor driver</title><link>https://devzone.nordicsemi.com/thread/506372?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2024 18:42:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22cb6d1e-8c30-42da-a877-c88186586e69</guid><dc:creator>Barsa</dc:creator><description>&lt;p&gt;Hi Ahaug,&lt;/p&gt;
&lt;p&gt;No I still haven&amp;#39;t figured out the solution.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Barsha&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing FAT file system into WinbondW25Q02 using SPI-nor driver</title><link>https://devzone.nordicsemi.com/thread/506029?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 08:23:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9da2c057-097c-432d-a53a-7443a1c37907</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Barsa"] I am using&amp;nbsp;JLink Edu V10.10[/quote]
&lt;p&gt;I was referring to the Segger J-link installation from this step:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/installation/install_ncs.html#install_prerequisites"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/installation/install_ncs.html#install_prerequisites&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Barsa"]it gives me built error.[/quote]
&lt;p&gt;I&amp;#39;ve been out of office the past 3 weeks. Could you state if you&amp;#39;ve resolved this issue in the other cases you&amp;#39;ve opened since this reply?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andras&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing FAT file system into WinbondW25Q02 using SPI-nor driver</title><link>https://devzone.nordicsemi.com/thread/503837?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 21:45:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f04d35e4-2595-489f-b708-8c41ce41c76e</guid><dc:creator>Barsa</dc:creator><description>&lt;p&gt;hinAhaug,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried using different USB the problem still persists. I am using&amp;nbsp;JLink Edu V10.10. Since the USB wasn&amp;#39;t working, I tried using Bluetooth to read my stored data, but I realized that we use&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DISK_DRIVER_FLASH&lt;/span&gt;&lt;span&gt;=y to mount our storage and when I try to add CONFIG_BT=y in my prj.config, it gives me built error. I guess those two config doesn&amp;#39;t go along with each other.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;so I am kind off stuck here. I can&amp;#39;t use USB, neither bluetooth.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;your help would be highly appreciated.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing FAT file system into WinbondW25Q02 using SPI-nor driver</title><link>https://devzone.nordicsemi.com/thread/502552?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 06:42:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6597a761-708b-42f9-89ee-0eee6ded6d03</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Barsa"]&lt;p&gt;&lt;strong&gt;About the size of my storage:&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;size&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt; &lt;/span&gt;&lt;span&gt;268435456&lt;/span&gt;&lt;span&gt; &amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;this is 256Mega Byte (2 giga bit converted into bytes)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;Perfect, I agree.&amp;nbsp;&lt;/p&gt;
[quote user="Barsa"]. But I have been using the usb mass example which is using mx25r64 storage[/quote]
&lt;p&gt;Ah, that explains why there&amp;#39;s a NAND partition listed in the dts. I&amp;#39;ll have a closer look into that sample myself.&lt;/p&gt;
[quote user="Barsa"]&lt;strong&gt;When I increase stack size:&amp;nbsp;&lt;/strong&gt;I do not get the stack overflow error but i still get this:[/quote]
&lt;p&gt;Great, then we only have to see why it&amp;#39;s not recognized. First we need to verify that it&amp;#39;s not because of your other hardware or lacking software setup&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;J-link firmware version or USB cable:
&lt;ol&gt;
&lt;li&gt;Have you checked with different USB cables? Micro usb&amp;#39;s are cheap and tend to break making them effectively only usable for charging and not data transfer which may lead to &amp;quot;USB device not recognized&amp;quot;.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Your J-Link version may be incorrect. Which version of Segger-JLink are you&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Do you see the same warning when testing other samples, or is it just the mas storage sample?&lt;/li&gt;
&lt;li&gt;This discussion is not directly relevant, but posting it here since it&amp;#39;s a good discussion regarding the sample you&amp;#39;re using:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/98797/mass-example-with-external-flash-not-working-with-config_bootloader_mcuboot-y"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/98797/mass-example-with-external-flash-not-working-with-config_bootloader_mcuboot-y&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing FAT file system into WinbondW25Q02 using SPI-nor driver</title><link>https://devzone.nordicsemi.com/thread/502497?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2024 13:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b39a15bf-b977-4fe4-ae3b-88b58494b8e6</guid><dc:creator>Barsa</dc:creator><description>&lt;p&gt;Hi AHaug,&lt;/p&gt;
&lt;p&gt;This is the storage that I am using:&lt;br /&gt;&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/storage.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;About the size of my storage:&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;size&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt; &lt;/span&gt;&lt;span&gt;268435456&lt;/span&gt;&lt;span&gt; &amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;this is 256Mega Byte (2 giga bit converted into bytes)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;You mentioned error about flash disk:&lt;/strong&gt;&amp;nbsp;I know winbond is a NOR flash memory. But I have been using the usb mass example which is using mx25r64 storage: (which is also a serial NOR), so I took the same overlay that has been used on the sample code. Here is the overlay for mass sample:&lt;/div&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2020 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/delete-node/ &amp;amp;storage_partition;

&amp;amp;mx25r64 {
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		storage_partition: partition@0 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x00000000 0x00020000&amp;gt;;
		};
	};
};

/ {
	msc_disk0 {
		compatible = &amp;quot;zephyr,flash-disk&amp;quot;;
		partition = &amp;lt;&amp;amp;storage_partition&amp;gt;;
		disk-name = &amp;quot;NAND&amp;quot;;
		cache-size = &amp;lt;4096&amp;gt;;
	};
};
&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;So I am a little confused here as they are using NAND as a label in their overlay. do I need to make any changes for serial NOR?&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;When I increase stack size:&amp;nbsp;&lt;/strong&gt;I do not get the stack overflow error but i still get this:&lt;/div&gt;
&lt;div&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/pastedimage1726234428879v1.png" alt=" " /&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing FAT file system into WinbondW25Q02 using SPI-nor driver</title><link>https://devzone.nordicsemi.com/thread/502441?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2024 08:13:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b087ca5-e9d0-474e-87ae-4b8beb649a97</guid><dc:creator>AHaug</dc:creator><description>[quote user="Barsa"]&lt;p&gt; However I used this&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NFCT_PINS_AS_GPIOS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;That&amp;#39;s also a valid solution! :)&amp;nbsp;&lt;/p&gt;
[quote user="Barsa"]Could you help me with this?[/quote]
&lt;p&gt;I&amp;#39;ll have a look. Could you verify if this is the device you&amp;#39;re trying to set up?&amp;nbsp;&lt;a href="https://www.winbond.com/hq/product/code-storage-flash-memory/serial-nor-flash/?__locale=en&amp;amp;partNo=W25Q02NW_DTR"&gt;https://www.winbond.com/hq/product/code-storage-flash-memory/serial-nor-flash/?__locale=en&amp;amp;partNo=W25Q02NW_DTR&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Discussing this out loud with you: The&amp;nbsp;&lt;em&gt;size&lt;/em&gt;&amp;nbsp;parameter in your spi instance is given in bytes represented as &lt;em&gt;int&amp;nbsp;&lt;/em&gt;and the Winbounds size is 2 Gigabits. Have you validated that you&amp;#39;ve entered the correct size?&lt;/p&gt;
&lt;p&gt;Moving on to fault: I see the error is on &amp;quot;flashdisk&amp;quot;: Is this corresponding to the msc_disc0 nand disc-name that you&amp;#39;ve created in the partition? I&amp;#39;m curious to where the NAND-partition comes in on the SPI-nor type winbound device. Could you expand on this?&lt;/p&gt;
[quote user="Barsa"]I am not able to see my storage as a USB device in my PC after i plug it in, I get this error and it reboots[/quote]
&lt;p&gt;You&amp;#39;ll get the stack overflow errors whenever your stack sizes are too small (which I assume you also find obvious, but stating it nonetheless), but finding out which stack that&amp;#39;s too small might vary from fault to fault. In this case I believe it is your main stack that might bee too small, which you set to 2k in your prj.conf i.e CONFIG_MAIN_STACK_SIZE=2048. Try to set it to 4k or 8k and see if this removes the stack overflow issue,&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing FAT file system into WinbondW25Q02 using SPI-nor driver</title><link>https://devzone.nordicsemi.com/thread/502405?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2024 00:55:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa8cf638-d4bc-4eeb-a0e5-d8b01990f617</guid><dc:creator>Barsa</dc:creator><description>&lt;p&gt;Hi AHaug,&lt;/p&gt;
&lt;p&gt;That was helpful thank you very much. However I used this&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NFCT_PINS_AS_GPIOS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; in my prj config and now I am able to mount file system using same pin configurations since I have already given my PCB for printing using those pins.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Also, although I am able to mount the file system when I use partition size below 30 mB, it mounts but once I try to go beyond that it shows mount error. Could you help me with this?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Here is my overlay&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2020 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */
// / {
// 	aliases {
// 		spi-flash0 = &amp;amp;winbond;
// 	};
// };
/* Disable conflicting buttons and UART */
&amp;amp;button2 {
	status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;button3 {
	status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;gpio_fwd {
	status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;pinctrl {
		spi_master_default: spi_master_default {
				group1 {
						psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 2)&amp;gt;,
										&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 9)&amp;gt;,
										&amp;lt;NRF_PSEL(SPIM_MISO, 0, 3)&amp;gt;;
				};
		};

		spi_master_sleep: spi_master_sleep {
				group1 {
						psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 2)&amp;gt;,
										&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 9)&amp;gt;,
										&amp;lt;NRF_PSEL(SPIM_MISO, 0, 3)&amp;gt;;
						low-power-enable;
				};
		};
};

&amp;amp;spi4 {
		compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
		pinctrl-0 = &amp;lt;&amp;amp;spi_master_default&amp;gt;;
		pinctrl-1 = &amp;lt;&amp;amp;spi_master_sleep&amp;gt;;
		pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
		cs-gpios = &amp;lt;&amp;amp;gpio0 11 GPIO_ACTIVE_LOW&amp;gt;;	
		status = &amp;quot;okay&amp;quot;;
		winbond:winbondw25q02@0 {
			compatible = &amp;quot;jedec,spi-nor&amp;quot;;
			reg = &amp;lt;0&amp;gt;;
	//      irq-gpios = &amp;lt;&amp;amp;gpio0 21 0&amp;gt;;
			spi-max-frequency = &amp;lt;32000000&amp;gt;;
			//label = &amp;quot;WINBOND&amp;quot;;
			jedec-id = [ ef 70 22 ];
			size = &amp;lt; 268435456 &amp;gt;;
			has-dpd;
			sfdp-bfp = [
		 		e5 20 f1 ff  ff ff ff 03  44 eb 08 6b  08 3b 04 bb
		 		ee ff ff ff  ff ff 00 ff  ff ff 00 ff  0c 20 0f 52
		 		10 d8 00 ff  23 72 f5 00  82 ed 04 cc  44 83 68 44
		 		30 b0 30 b0  f7 c4 d5 5c  00 be 29 ff  f0 d0 ff ff
		 	];
			 t-enter-dpd = &amp;lt;10000&amp;gt;;
			 t-exit-dpd = &amp;lt;35000&amp;gt;;
			 
		};
};

/delete-node/ &amp;amp;storage_partition;

&amp;amp;winbond {
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		storage_partition: partition@0 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x00000000 0x08000000&amp;gt;;  // 128 MB
		};
	};
};

/ {
	msc_disk0 {
		compatible = &amp;quot;zephyr,flash-disk&amp;quot;;
		partition = &amp;lt;&amp;amp;storage_partition&amp;gt;;
		disk-name = &amp;quot;NAND&amp;quot;;
		cache-size = &amp;lt;4096&amp;gt;;
	};
};


&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Here is the error I am getting&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.273,406] &amp;lt;err&amp;gt; usb_msc: Storage init ERROR !!!! - Aborting USB init
Area 0 at 0x0 on winbondw25q02@0 for 134217728 bytes
[00:00:00.273,498] &amp;lt;inf&amp;gt; flashdisk: Initialize device NAND
[00:00:00.273,529] &amp;lt;inf&amp;gt; flashdisk: offset 0, sector size 512, page size 4096, volume size 134217728
[00:00:00.286,987] &amp;lt;err&amp;gt; flashdisk: Error -22 getting page info at offset 2000000
[00:00:00.286,987] &amp;lt;err&amp;gt; fs: fs mount error (-5)
[00:00:00.287,017] &amp;lt;err&amp;gt; main: Failed to mount filesystem
[00:00:00.287,078] &amp;lt;inf&amp;gt; main: The device is put in USB mass storage mode.

&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I tried partition size of 128mega byte here.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Also,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I am not able to see my storage as a USB device in my PC after i plug it in, I get this error and it reboots&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.256,744] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x200053f8 - rx_bufs 0x20005400 - 1
[00:00:00.256,805] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len 0x2000543f/1
--- 2 messages dropped ---
[00:00:00.256,835] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:00.256,835] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len (nil)/0
[00:00:00.256,866] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
[00:00:00.256,866] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x200053f8 - rx_bufs 0x20005400 - 1
--- 15 messages dropped ---
[00:00:00.274,444] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len 0x20000ca4/512
[00:00:00.274,719] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:00.274,749] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len (nil)/0
[00:00:00.274,780] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
Mount /NAND:: 0
[00:00:00.324,951] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x20005220 - rx_bufs 0x20005228 - 1
[00:00:00.324,981] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x20005230 (2), current_rx 0x20005230 (2), tx buf/len 0x20005218/4, rx buf/len 0x20005218/4
[00:00:00.325,012] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len 0x20000ca4/512
[00:00:00.325,012] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len 0x20000ca4/512
[00:00:00.325,317] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:00.325,317] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len (nil)/0
[00:00:00.325,347] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
/NAND:: bsize = 512 ; frsize = 512 ; blocks = 216 ; bfree = 216
/NAND: opendir: 0
[00:00:00.325,897] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x20005138 - rx_bufs 0x20005140 - 1
[00:00:00.325,927] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x20005148 (2), current_rx 0x20005148 (2), tx buf/len 0x20005130/4, rx buf/len 0x20005130/4
[00:00:00.325,958] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len 0x20000ca4/512
[00:00:00.325,958] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len 0x20000ca4/512
[00:00:00.326,263] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:00.326,263] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len (nil)/0
[00:00:00.326,293] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
End of files
[00:00:00.326,416] &amp;lt;inf&amp;gt; main: The device is put in USB mass storage mode.

[00:01:45.822,265] &amp;lt;err&amp;gt; os: ***** USAGE FAULT *****
[00:01:45.822,296] &amp;lt;err&amp;gt; os:   Stack overflow (context area not valid)
[00:01:45.822,326] &amp;lt;err&amp;gt; os: r0/a1:  0x20003e20  r1/a2:  0x00000018  r2/a3:  0x00000000
[00:01:45.822,326] &amp;lt;err&amp;gt; os: r3/a4:  0x20003ddc r12/ip:  0x00000000 r14/lr:  0x00001f09
[00:01:45.822,326] &amp;lt;err&amp;gt; os:  xpsr:  0x61000200
[00:01:45.822,357] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00000974
[00:01:45.822,387] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0
[00:01:45.822,418] &amp;lt;err&amp;gt; os: Current thread: 0x20000960 (unknown)
&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing FAT file system into WinbondW25Q02 using SPI-nor driver</title><link>https://devzone.nordicsemi.com/thread/501909?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2024 11:54:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2e5fca9-3243-447e-88b1-3aeae0e7d121</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi Barsha,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The suggestion still stands. The 5340SoC uses P0.02 and P0.03 for the NFC pins.&lt;/p&gt;
&lt;p&gt;Let me know if you see the same thing when changing the GPIO&amp;#39;s and we&amp;#39;ll continue from there :)&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing FAT file system into WinbondW25Q02 using SPI-nor driver</title><link>https://devzone.nordicsemi.com/thread/501903?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2024 11:49:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a56d1ae-7389-4af5-ab9b-f1301486bd95</guid><dc:creator>Barsa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Actually I am using Fanstel BT 40F which has nrf 5340 soc. I have tested that those two pins works fine as a GPIO. Like I mentioned above, I have done basic reading, writing and erasing using spi communication with this storage on those pins. It is the file system inplementation that I am not able to do.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Barsha&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing FAT file system into WinbondW25Q02 using SPI-nor driver</title><link>https://devzone.nordicsemi.com/thread/501897?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2024 11:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f085303-1749-4c93-93f6-e9ebe5ce1ef5</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The pins you&amp;#39;ve selected (P0.02 and P0.03) are among the few GPIOs are reserved for NFC. If you consult with the pin assignment in the product specification you can see which pins you can use for general purpose input that you can select yourself and which are reserved for others:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/pin.html"&gt;https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/pin.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Try with for instance P0.07 and P0.08 instead (or any other available that you want to use)&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>