<?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>Winbond Flash W25Q32JV/W25Q16JV with nrf52833 DK .</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93465/winbond-flash-w25q32jv-w25q16jv-with-nrf52833-dk</link><description>HI , I am having difficulty in interfacing the flash with my DK board 
 1) The spi flash sample is getting stuck at flash erase function without any error responses 
 2) I have used SPI interfacing with other devices and it is working . 
 3) Flash Board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Nov 2022 13:20:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93465/winbond-flash-w25q32jv-w25q16jv-with-nrf52833-dk" /><item><title>RE: Winbond Flash W25Q32JV/W25Q16JV with nrf52833 DK .</title><link>https://devzone.nordicsemi.com/thread/396424?ContentTypeID=1</link><pubDate>Fri, 18 Nov 2022 13:20:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f14424ab-0d0c-4cb6-ba81-414137130a5d</guid><dc:creator>Manas_punjabi</dc:creator><description>&lt;p&gt;Hi, ok I will try out the suggested steps, I will get back to you after trying.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Winbond Flash W25Q32JV/W25Q16JV with nrf52833 DK .</title><link>https://devzone.nordicsemi.com/thread/396375?ContentTypeID=1</link><pubDate>Fri, 18 Nov 2022 10:23:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4c03cc9-2120-4f75-ab39-a97757f5c14d</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;#39;&amp;#39;I have been able to get some response from the flash (not correct)&amp;#39;&amp;#39; - could you please elaborate this a bit? what type of response?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You have not sent the device tree file from build. You can find this in build folder after flashing the sample. sample\.....\build\zephyr.dts.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. &amp;#39;&amp;#39;how can I change the spi modes i.e. - CPOL &amp;amp;CPHA&amp;#39;&amp;#39;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You can add/remove the&amp;nbsp;SPI_MODE_CPOL and SPI_MODE_CPHA option in spi_cfg&lt;/p&gt;
&lt;p&gt;static const struct spi_config spi_cfg = {&lt;br /&gt; . operation = SPI_WORD_SET(8) | SPI_TRANSFER_MSB,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;.....&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. &amp;#39;&amp;#39;how can I use spi without including a CS pin configuration, I am using a gpio as cs pin.&amp;#39;&amp;#39;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You can set the .cs element NULL in the struct (static const struct spi_config spi_cfg).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, I got opinion from team that you should try to use spi_nor driver instead of working with the SPI driver directly. There is a reference sample here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/drivers/spi_flash/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/drivers/spi_flash/README.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Winbond Flash W25Q32JV/W25Q16JV with nrf52833 DK .</title><link>https://devzone.nordicsemi.com/thread/395690?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2022 07:55:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c0c36c6-e18f-4625-8e58-5b61f0abd9c9</guid><dc:creator>Manas_punjabi</dc:creator><description>&lt;p&gt;Hi , so I have been able to get some response from the flash (not correct),&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I wanna know , how can I change the spi modes&lt;/p&gt;
&lt;p&gt;i.e. - CPOL &amp;amp;CPHA&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2nd&amp;nbsp;&lt;/p&gt;
&lt;p&gt;how can i use spi without including a CS pin configuration, I am using a gpio as cs pin.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Winbond Flash W25Q32JV/W25Q16JV with nrf52833 DK .</title><link>https://devzone.nordicsemi.com/thread/394475?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 14:50:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cc46620-911c-4474-b6c8-a0a1ee1c5b63</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Yes. So, you can send the device tree from build output to us so that we can check and also code snippet where these pin configurations are shown.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Winbond Flash W25Q32JV/W25Q16JV with nrf52833 DK .</title><link>https://devzone.nordicsemi.com/thread/394401?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 12:15:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48056088-6b54-483f-874f-c3b3f9f5521f</guid><dc:creator>Manas_punjabi</dc:creator><description>&lt;p&gt;Hi , Yes you assumed correctly .I had disabled other peripherals for this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Winbond Flash W25Q32JV/W25Q16JV with nrf52833 DK .</title><link>https://devzone.nordicsemi.com/thread/394395?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 11:54:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbf5274f-fcb1-4b10-a1d1-4beab08c26ed</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here is in your dts fiile, we can see for example, the default pins for SPI3&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;amp;spi1 {&lt;br /&gt; compatible = &amp;quot;nordic,nrf-spi&amp;quot;;&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;br /&gt; //pinctrl-0 = &amp;lt;&amp;amp;spi1_default&amp;gt;;&lt;br /&gt; //pinctrl-1 = &amp;lt;&amp;amp;spi1_sleep&amp;gt;;&lt;br /&gt; cs-gpios = &amp;lt;&amp;amp;gpio0 20 GPIO_ACTIVE_LOW&amp;gt;; /* D10 */&lt;br /&gt; &lt;strong&gt;pinctrl-0 = &amp;lt;&amp;amp;spi3_default&amp;gt;;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; pinctrl-1 = &amp;lt;&amp;amp;spi3_sleep&amp;gt;;&lt;/strong&gt;&lt;br /&gt; pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;&lt;br /&gt; label = &amp;quot;SPI_1&amp;quot;;&lt;br /&gt;};&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;should be 21 for MOSI, 22 for MISO and 23 for SCK. However, it cannot&amp;nbsp;be assured only looking&amp;nbsp;at this file. So, we would need to look into the device&amp;nbsp;tree from build output to see what is assigned to what.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Winbond Flash W25Q32JV/W25Q16JV with nrf52833 DK .</title><link>https://devzone.nordicsemi.com/thread/393775?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 06:21:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1508cfcd-7bd1-4aaf-9060-2e6e9923b25f</guid><dc:creator>Manas_punjabi</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2019 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/dts-v1/;
#include &amp;lt;nordic/nrf52833_qiaa.dtsi&amp;gt;
#include &amp;quot;nrf52833dk_nrf52833-pinctrl.dtsi&amp;quot;

/ {
	model = &amp;quot;Nordic nRF52833 DK NRF52833&amp;quot;;
	compatible = &amp;quot;nordic,nrf52833-dk-nrf52833&amp;quot;;

	chosen {
		zephyr,console = &amp;amp;uart0;
		zephyr,shell-uart = &amp;amp;uart0;
		zephyr,uart-mcumgr = &amp;amp;uart0;
		zephyr,bt-mon-uart = &amp;amp;uart0;
		zephyr,bt-c2h-uart = &amp;amp;uart0;
		zephyr,sram = &amp;amp;sram0;
		zephyr,flash = &amp;amp;flash0;
		zephyr,code-partition = &amp;amp;slot0_partition;
	};

	leds {
		compatible = &amp;quot;gpio-leds&amp;quot;;
		led0: led_0 {
			gpios = &amp;lt;&amp;amp;gpio0 13 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;Green LED 0&amp;quot;;
		};
		led1: led_1 {
			gpios = &amp;lt;&amp;amp;gpio0 14 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;Green LED 1&amp;quot;;
		};
		led2: led_2 {
			gpios = &amp;lt;&amp;amp;gpio0 15 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;Green LED 2&amp;quot;;
		};
		led3: led_3 {
			gpios = &amp;lt;&amp;amp;gpio0 16 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;Green LED 3&amp;quot;;
		};
	};

	pwmleds {
		compatible = &amp;quot;pwm-leds&amp;quot;;
		pwm_led0: pwm_led_0 {
			pwms = &amp;lt;&amp;amp;pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED&amp;gt;;
		};
	};

	buttons {
		compatible = &amp;quot;gpio-keys&amp;quot;;
		button0: button_0 {
			gpios = &amp;lt;&amp;amp;gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Push button switch 0&amp;quot;;
		};
		button1: button_1 {
			gpios = &amp;lt;&amp;amp;gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Push button switch 1&amp;quot;;
		};
		button2: button_2 {
			gpios = &amp;lt;&amp;amp;gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Push button switch 2&amp;quot;;
		};
		button3: button_3 {
			gpios = &amp;lt;&amp;amp;gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Push button switch 3&amp;quot;;
		};
	};

	arduino_header: connector {
		compatible = &amp;quot;arduino-header-r3&amp;quot;;
		#gpio-cells = &amp;lt;2&amp;gt;;
		gpio-map-mask = &amp;lt;0xffffffff 0xffffffc0&amp;gt;;
		gpio-map-pass-thru = &amp;lt;0 0x3f&amp;gt;;
		gpio-map = &amp;lt;0 0 &amp;amp;gpio0 3 0&amp;gt;,	/* A0 */
			   &amp;lt;1 0 &amp;amp;gpio0 4 0&amp;gt;,	/* A1 */
			   &amp;lt;2 0 &amp;amp;gpio0 28 0&amp;gt;,	/* A2 */
			   &amp;lt;3 0 &amp;amp;gpio0 29 0&amp;gt;,	/* A3 */
			   &amp;lt;4 0 &amp;amp;gpio0 30 0&amp;gt;,	/* A4 */
			   &amp;lt;5 0 &amp;amp;gpio0 31 0&amp;gt;,	/* A5 */
			   &amp;lt;6 0 &amp;amp;gpio1 1 0&amp;gt;,	/* D0 */
			   &amp;lt;7 0 &amp;amp;gpio1 2 0&amp;gt;,	/* D1 */
			   &amp;lt;8 0 &amp;amp;gpio1 3 0&amp;gt;,	/* D2 */
			   &amp;lt;9 0 &amp;amp;gpio1 4 0&amp;gt;,	/* D3 */
			   &amp;lt;10 0 &amp;amp;gpio1 5 0&amp;gt;,	/* D4 */
			   &amp;lt;11 0 &amp;amp;gpio1 6 0&amp;gt;,	/* D5 */
			   &amp;lt;12 0 &amp;amp;gpio1 7 0&amp;gt;,	/* D6 */
			   &amp;lt;13 0 &amp;amp;gpio1 8 0&amp;gt;,	/* D7 */
			   &amp;lt;14 0 &amp;amp;gpio0 17 0&amp;gt;,	/* D8 */
			   &amp;lt;15 0 &amp;amp;gpio0 19 0&amp;gt;,	/* D9 */
			   &amp;lt;16 0 &amp;amp;gpio0 20 0&amp;gt;,	/* D10 */
			   &amp;lt;17 0 &amp;amp;gpio0 21 0&amp;gt;,	/* D11 */
			   &amp;lt;18 0 &amp;amp;gpio0 22 0&amp;gt;,	/* D12 */
			   &amp;lt;19 0 &amp;amp;gpio0 23 0&amp;gt;,	/* D13 */
			   &amp;lt;20 0 &amp;amp;gpio0 26 0&amp;gt;,	/* D14 */
			   &amp;lt;21 0 &amp;amp;gpio0 27 0&amp;gt;;	/* D15 */
	};

	/* These aliases are provided for compatibility with samples */
	aliases {
		led0 = &amp;amp;led0;
		led1 = &amp;amp;led1;
		//led2 = &amp;amp;led2;
		led3 = &amp;amp;led3;
		pwm-led0 = &amp;amp;pwm_led0;
		sw0 = &amp;amp;button0;
		sw1 = &amp;amp;button1;
		sw2 = &amp;amp;button2;
		sw3 = &amp;amp;button3;
		bootloader-led0 = &amp;amp;led0;
	};
};

&amp;amp;adc {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpiote {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpio0 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpio1 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;uart0 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

arduino_serial: &amp;amp;uart1 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

arduino_i2c: &amp;amp;i2c0 {
	compatible = &amp;quot;nordic,nrf-twi&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;i2c0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;i2c0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;i2c1 {
	compatible = &amp;quot;nordic,nrf-twi&amp;quot;;
	/* Cannot be used together with spi1. */
	/* status = &amp;quot;okay&amp;quot;; */
	pinctrl-0 = &amp;lt;&amp;amp;i2c1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;i2c1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;pwm0 {
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;pwm0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pwm0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;spi0 {
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	/* Cannot be used together with i2c0. */
	/* status = &amp;quot;okay&amp;quot;; */
	pinctrl-0 = &amp;lt;&amp;amp;spi0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;spi1 {
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	//pinctrl-0 = &amp;lt;&amp;amp;spi1_default&amp;gt;;
	//pinctrl-1 = &amp;lt;&amp;amp;spi1_sleep&amp;gt;;
	cs-gpios = &amp;lt;&amp;amp;gpio0  20 GPIO_ACTIVE_LOW&amp;gt;; /* D10 */
	pinctrl-0 = &amp;lt;&amp;amp;spi3_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi3_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	label = &amp;quot;SPI_1&amp;quot;;
};

// arduino_spi: &amp;amp;spi3 {
// 	status = &amp;quot;okay&amp;quot;;
// 	cs-gpios = &amp;lt;&amp;amp;gpio0  20 GPIO_ACTIVE_LOW&amp;gt;; /* D10 */
// 	pinctrl-0 = &amp;lt;&amp;amp;spi3_default&amp;gt;;
// 	pinctrl-1 = &amp;lt;&amp;amp;spi3_sleep&amp;gt;;
// 	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
// };

&amp;amp;flash0 {

	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		boot_partition: partition@0 {
			label = &amp;quot;mcuboot&amp;quot;;
			reg = &amp;lt;0x000000000 0xC000&amp;gt;;
		};
		slot0_partition: partition@c000 {
			label = &amp;quot;image-0&amp;quot;;
			reg = &amp;lt;0x0000C000 0x32000&amp;gt;;
		};
		slot1_partition: partition@3e000 {
			label = &amp;quot;image-1&amp;quot;;
			reg = &amp;lt;0x0003E000 0x32000&amp;gt;;
		};
		scratch_partition: partition@70000 {
			label = &amp;quot;image-scratch&amp;quot;;
			reg = &amp;lt;0x00070000 0xA000&amp;gt;;
		};
		storage_partition: partition@7a000 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x0007A000 0x00006000&amp;gt;;
		};
	};
};

zephyr_udc0: &amp;amp;usbd {
	compatible = &amp;quot;nordic,nrf-usbd&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;this is it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Winbond Flash W25Q32JV/W25Q16JV with nrf52833 DK .</title><link>https://devzone.nordicsemi.com/thread/393731?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 15:32:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7df3f42c-a889-4239-82ee-e6b2b200de40</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you please share your &lt;strong&gt;overlay file&lt;/strong&gt;&amp;nbsp;as we need to check if there are any pins used as overlapping? SPI shares registers and other resources with other peripherals that have the same ID as the SPI. It is mandatory to disable all peripherals that have the same ID as the SPI before the SPI can be configured and used. So, it has to be&amp;nbsp;&lt;span&gt;made sure that you are not using the pins for other peripherals.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi Afroza Sultana&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>