<?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>Including Wiznet5500 files on the NRF52840DK using VSCode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82637/including-wiznet5500-files-on-the-nrf52840dk-using-vscode</link><description>Hello, 
 
 I am currently integrating the Wiznet5500 drivers into a VSCode project, but I am stuck on where to include these custom modules. 
 In the previous version in SES (Segger Embedded Studio) these files could be included in the Options --&amp;gt; Preprocesssor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Jan 2022 16:48:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82637/including-wiznet5500-files-on-the-nrf52840dk-using-vscode" /><item><title>RE: Including Wiznet5500 files on the NRF52840DK using VSCode</title><link>https://devzone.nordicsemi.com/thread/347650?ContentTypeID=1</link><pubDate>Thu, 13 Jan 2022 16:48:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56493222-6eb0-4184-8341-7f1cf9a9eb04</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Sebastian,&lt;/p&gt;
&lt;p&gt;You could try including &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.7.0-ncs1/tests/drivers/build_all/ethernet/prj.conf#L15"&gt;CONFIG_ETH_W5500=y&lt;/a&gt;&amp;nbsp;in your prj.conf. This will include &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.7.0-ncs1/drivers/ethernet/CMakeLists.txt#L24"&gt;the source file&lt;/a&gt;&lt;span&gt;. And you will also have to add the header in your main.c file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Priyanka&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Including Wiznet5500 files on the NRF52840DK using VSCode</title><link>https://devzone.nordicsemi.com/thread/347575?ContentTypeID=1</link><pubDate>Thu, 13 Jan 2022 12:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1335bb6f-20f1-4af7-b3d0-a554cf3be4b4</guid><dc:creator>Sebastiaan</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;As far as I understood from the ticket, the W5500 is a Zephyr driver (and not an external one, so no extra CMakeList arguments are required). So as I have already done I need to set the configurations in my prj.conf file as the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SPI=y
CONFIG_NETWORKING=y
CONFIG_NET_L2_ETHERNET=y
CONFIG_ETH_W5500=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And add an overlay in nrf52840dk_nrf52840.overlay for the spi3 driver matching the pins as following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi3 {
	sck-pin = 47;
	miso-pin = 46;
	mosi-pin = 45;
	cs-gpios = &amp;amp;gpio1 12 GPIO_ACTIVE_LOW;
	status = &amp;quot;okay&amp;quot;;
	w5500: w5500@0 {
					compatible = &amp;quot;wiznet,w5500&amp;quot;;
					label = &amp;quot;w5500&amp;quot;;
					reg = 0;
					spi-max-frequency = 1000000;
					int-gpios = &amp;amp;gpio0 20 GPIO_ACTIVE_LOW;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I can see in the compilation that the w5500 driver is being built.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[190/223] Building C object zephyr/drivers/ethernet/CMakeFiles/drivers__ethernet.dir/eth_w5500.c.obj&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The ticket mentioned does however not describe on how to access the driver functions itself.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Sebastiaan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Including Wiznet5500 files on the NRF52840DK using VSCode</title><link>https://devzone.nordicsemi.com/thread/347425?ContentTypeID=1</link><pubDate>Wed, 12 Jan 2022 14:56:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b8b1de5-ebbc-47e1-aae0-96145a1e033f</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Sebastian,&lt;/p&gt;
&lt;p&gt;Kindly take a look at&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/80747/adding-in-drivers-into-zephyr"&gt; this ticket.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Including Wiznet5500 files on the NRF52840DK using VSCode</title><link>https://devzone.nordicsemi.com/thread/347369?ContentTypeID=1</link><pubDate>Wed, 12 Jan 2022 12:32:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd5c78cc-60f3-477f-a3b3-1fdfa7271782</guid><dc:creator>Sebastiaan</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This has indeed fixed the kernel panic. I am currently trying to initiate the w5500 using the zephyr drivers but I am lost in how to include the eth_w5500 file.&lt;/p&gt;
&lt;p&gt;I also included the uart driver and this driver shows up (which is under drivers/uart.h) and is able to send and receive data via interrupt.&lt;/p&gt;
&lt;p&gt;The ethernet driver is under drivers/ethernet/eth_w5500.c and does not show up and it is configured in the device tree aswell.&lt;/p&gt;
&lt;p&gt;Hopefully it is clear what I am trying to explain.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Sebastiaan&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Including Wiznet5500 files on the NRF52840DK using VSCode</title><link>https://devzone.nordicsemi.com/thread/344838?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2021 16:40:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:629e29ef-eead-4de1-9dc3-828391f54b59</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Sebastian,&lt;/p&gt;
&lt;p&gt;First of all, what is the status of your gpio1? Is the status = &amp;quot;okay&amp;quot;? Then, if this is okay, could you try with any of the following:&lt;/p&gt;
&lt;p&gt;In case you wish to use the P1.12, you could try ,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;cs-gpios = &amp;lt;&amp;amp;gpio1 12&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;GPIO_ACTIVE_LOW&amp;gt;; &lt;/strong&gt;or,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;cs-gpios = &amp;lt;&amp;amp;gpio0 43&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;GPIO_ACTIVE_LOW&amp;gt;;&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In case you wish to use the P1.13, you could try ,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;cs-gpios = &amp;lt;&amp;amp;gpio1 13&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;GPIO_ACTIVE_LOW&amp;gt;;&amp;nbsp;&lt;/strong&gt;&amp;nbsp;or,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;cs-gpios = &amp;lt;&amp;amp;gpio0 44&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;GPIO_ACTIVE_LOW&amp;gt;;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As you mentioned about the range , it is a range of 0-31 (a total of 32). So I guess you could try any of these configuration.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Priyanka&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Including Wiznet5500 files on the NRF52840DK using VSCode</title><link>https://devzone.nordicsemi.com/thread/344762?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2021 10:07:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37546438-7f4e-4834-8a65-d3bdf69899d4</guid><dc:creator>Sebastiaan</dc:creator><description>&lt;p&gt;Hello Priyanka,&lt;/p&gt;
&lt;p&gt;The issue is caused by the following line:&lt;/p&gt;
&lt;p&gt;cs-gpios = &amp;lt;&amp;amp;gpio0 44 GPIO_ACTIVE_LOW&amp;gt;;&lt;/p&gt;
&lt;p&gt;My initial thought was that it has to do with the gpio0 being limited to the 0-32 range and the pin number 44, so I changed it to gpio1 but the issue is still there. However, there is no issue with&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;lt;&amp;amp;&lt;/span&gt;&lt;span&gt;gpio0&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;21&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;GPIO_ACTIVE_LOW&lt;/span&gt;&lt;span&gt;&amp;gt; (no kernel panics), but as mentioned before pin 44 is required&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;Any ideas?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Sebastiaan&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Including Wiznet5500 files on the NRF52840DK using VSCode</title><link>https://devzone.nordicsemi.com/thread/344674?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 16:50:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:282e9130-f5b6-4bce-b906-0f9499e1f86b</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems like the assert &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/include/drivers/gpio.h#:~:text=flags%20%26%3D%20~GPIO_OUTPUT_INIT_LOGICAL%3B-,(void)cfg%3B,%22Unsupported%20pin%22)%3B,-if%20((flags%20%26%20GPIO_ACTIVE_LOW"&gt; _ASSERT(..)&lt;/a&gt; is triggered. You could try to &lt;a href="https://devzone.nordicsemi.com/nordic/b/archives/posts/nrf-connect-sdk-tutorial---part-3-temporary#h131sk0f71xdy1hliuda1vq9p8n11weqgr"&gt;set a breakpoint &lt;/a&gt;on this assert and try following the pin assignment back to the call stack to see the problem.&lt;/p&gt;
&lt;p&gt;Also, which version of nRF Connect SDK are you using? I would recommend&amp;nbsp;using the latest version. (v1.8.0).&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Including Wiznet5500 files on the NRF52840DK using VSCode</title><link>https://devzone.nordicsemi.com/thread/344553?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 10:36:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be0208e3-d78a-4d70-aded-f1795db3a3ed</guid><dc:creator>Sebastiaan</dc:creator><description>&lt;p&gt;Hi Priyanka,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;No worries.&lt;/p&gt;
&lt;p&gt;I however came across some issues when flashing the included files to the NRF52840DK.&lt;/p&gt;
&lt;p&gt;I configured the SPI and W5500 according to my needed pinout (i left out the &amp;lt;&amp;gt; due to the code block)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi3 {
	sck-pin = 47;
	miso-pin = 46;
	mosi-pin = 45;
	cs-gpios = &amp;amp;gpio0 44 GPIO_ACTIVE_LOW;
	status = &amp;quot;okay&amp;quot;;
	w5500: w5500@0 {
					compatible = &amp;quot;wiznet,w5500&amp;quot;;
					label = &amp;quot;w5500&amp;quot;;
					reg = 0;
					spi-max-frequency = 1000000;
					int-gpios = &amp;amp;gpio0 20 GPIO_ACTIVE_LOW;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, when flashing this I noticed the following output on the terminal:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;11:05:13.235 -&amp;gt; E: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
11:05:13.235 -&amp;gt; E: Current thread: 0x200022f0 (main)
11:05:13.235 -&amp;gt; E: Resetting system
I: nRF5 802154 radio initialized
11:05:13.492 -&amp;gt; ASSERTION FAIL @ WEST_TOPDIR/zephyr/include/drivers/gpio.h:752
11:05:13.526 -&amp;gt; E: r0/a1:  0x00000004  r1/a2:  0x000002f0  r2/a3:  0x00000000
11:05:13.526 -&amp;gt; E: r3/a4:  0x2000dc1d r12/ip:  0x00000000 r14/lr:  0x0000bd2b
11:05:13.526 -&amp;gt; E:  xpsr:  0x61000000
11:05:13.526 -&amp;gt; E: s[ 0]:  0x00000000  s[ 1]:  0x00000000  s[ 2]:  0x00000000  s[ 3]:  0x00000000
11:05:13.526 -&amp;gt; E: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0x00000000  s[ 7]:  0x00000000
11:05:13.562 -&amp;gt; E: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000
11:05:13.562 -&amp;gt; E: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000
11:05:13.562 -&amp;gt; E: fpscr:  0x00053388
11:05:13.562 -&amp;gt; E: Faulting instruction address (r15/pc): 0x000486d2
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do you know what could be the cause of this?&lt;/p&gt;
&lt;p&gt;With kind regards,&lt;/p&gt;
&lt;p&gt;Sebastiaan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Including Wiznet5500 files on the NRF52840DK using VSCode</title><link>https://devzone.nordicsemi.com/thread/344530?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 09:37:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e67bc1b7-6330-461b-ba05-83ddb41e09f3</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Sebastian,&lt;/p&gt;
&lt;p&gt;Unfortunately there are no examples of this at the moment.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Including Wiznet5500 files on the NRF52840DK using VSCode</title><link>https://devzone.nordicsemi.com/thread/344523?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 09:25:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d9896da-2a61-419e-b26e-12ea5d179a65</guid><dc:creator>Sebastiaan</dc:creator><description>&lt;p&gt;Hi Priyanka.&lt;/p&gt;
&lt;p&gt;Thanks for linking the ticket, compilation is now succesful!&lt;/p&gt;
&lt;p&gt;Are there any guidelines or examples on how to implement the W5500 driver? For example a simple network configuration with pinging, ...&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Sebastiaan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Including Wiznet5500 files on the NRF52840DK using VSCode</title><link>https://devzone.nordicsemi.com/thread/344510?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 08:33:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5859211-547d-49e8-bd5b-3f30608a29bb</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Sebastian,&lt;/p&gt;
&lt;p&gt;I guess &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/80747/adding-in-drivers-into-zephyr/334549#334549"&gt;this ticket&lt;/a&gt; would help you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Including Wiznet5500 files on the NRF52840DK using VSCode</title><link>https://devzone.nordicsemi.com/thread/344401?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 14:24:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efca16eb-e1f6-4fbf-9314-b2f5ff9bc666</guid><dc:creator>Sebastiaan</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;Thanks for the reply. I am currently trying to implement the w5500 driver as per your suggestion.&lt;/p&gt;
&lt;p&gt;Is it correct then I only have to include &amp;quot;&lt;span&gt;CONFIG_ETH_W5500&lt;/span&gt;&lt;span&gt;=y&amp;quot; to my prj.conf file to include the library?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, are there any example projects which use this library?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks in advance,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sebastiaan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Including Wiznet5500 files on the NRF52840DK using VSCode</title><link>https://devzone.nordicsemi.com/thread/343105?ContentTypeID=1</link><pubDate>Mon, 13 Dec 2021 10:07:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e2332f9-6288-4626-b7e0-3f22d18612e6</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Sebastiaan,&lt;/p&gt;
&lt;p&gt;You should follow the standard west module procedure as &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/west/manifest.html"&gt;described here&lt;/a&gt;, in order to do this.&lt;/p&gt;
&lt;p&gt;The extension will pick up this as soon as west registers it.&lt;/p&gt;
&lt;p&gt;P.S There should also be a Wiznet5500 driver already included in Zephyr as &amp;quot;w5500&amp;quot;.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>