<?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>Basic GPIO on NRF52840 Development Kit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85892/basic-gpio-on-nrf52840-development-kit</link><description>Hi, 
 I&amp;#39;m trying to wrap my head around doing some basic GPIO reading, writing etc. and hopefully some interrupts. Apologies if these are basic questions - I&amp;#39;ve only really had experience within the Arduino framework before this. 
 I&amp;#39;ve got a NRF52840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Mar 2022 15:21:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85892/basic-gpio-on-nrf52840-development-kit" /><item><title>RE: Basic GPIO on NRF52840 Development Kit</title><link>https://devzone.nordicsemi.com/thread/359856?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 15:21:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:985dc138-d962-4bf9-85ef-6a93cddaa9be</guid><dc:creator>Neb01</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;yes, I got a voltage and two blinking LEDs.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll mark this as Answered now - thanks for all the help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Basic GPIO on NRF52840 Development Kit</title><link>https://devzone.nordicsemi.com/thread/359832?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 13:56:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f67a3fb-fdce-4542-96b3-5ec751fba468</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Benjamin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did it work ? Do you see any voltage on the pin ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think it&amp;#39;s an issue with the warnings from VS Code. What&amp;#39;s important is if the log in the compiler terminal show any error or warning.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Basic GPIO on NRF52840 Development Kit</title><link>https://devzone.nordicsemi.com/thread/359776?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 11:45:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b73f3424-3408-43c4-89b5-52c724d01807</guid><dc:creator>Neb01</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve managed to get it compiling now - I believe the error was that I had underscores in my alias names, which seems to stop the compiler from being able to find any header files? Not sure why that is, but seemed consistent.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attached the program I ended up with:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/blinky_5F00_ext_5F00_led.zip"&gt;devzone.nordicsemi.com/.../blinky_5F00_ext_5F00_led.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There are still warnings when it compiles, but I&amp;#39;m guessing these are all fine?:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1648122184468v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Basic GPIO on NRF52840 Development Kit</title><link>https://devzone.nordicsemi.com/thread/359316?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 09:55:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c84c23c-b6bb-46ec-9c61-b98339800b85</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Benjamin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You are right. I was just focusing on creating one extra LED and not the 2nd one (led1).&amp;nbsp;&lt;br /&gt;Could you try to compile it for nRF52832dk to see if you get any error ?&amp;nbsp;&lt;br /&gt;I believe you just need to change the name of the .overlay file to nrf52840dk_nrf52840.overlay and it should work.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Basic GPIO on NRF52840 Development Kit</title><link>https://devzone.nordicsemi.com/thread/359219?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 17:33:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77fbf2d7-69f3-4253-ab02-19445e9cde78</guid><dc:creator>Neb01</dc:creator><description>&lt;p&gt;Thanks, I&amp;#39;ve read through those documentation pages you linked and they were very helpful.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With regards to the blinky_custom example you linked, I&amp;#39;m getting some errors when trying to run it.&lt;/p&gt;
&lt;p&gt;This error happens when first building the file:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1647882882474v1.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1647882917783v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Trying to build the file similarly gives some errors:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1647883067151v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Looking through the code, my guess of some possible errors are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;in line 52 of the main.c, it should be &amp;#39;dev2&amp;#39; not &amp;#39;dev&amp;#39; inside gpio_pin_configure()&lt;/li&gt;
&lt;li&gt;in line 8 of the .overlay file, it should be &amp;#39;myled1 : led_1&amp;#39; instead of &amp;#39;myled0led1 : led_1&amp;#39;&lt;/li&gt;
&lt;li&gt;in line 17 of the .overlay file, it should be &amp;#39;myled1 = &amp;amp;myled1&amp;#39; instead of &amp;#39;myled1 = &amp;amp;myled0&amp;#39;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;- though it is entirely possible I&amp;#39;m misunderstanding the code layout.&lt;/p&gt;
&lt;p&gt;I also noticed the .overlay was labelled as &amp;#39;nrf52dk_nrf52832.overlay&amp;#39; which I assume should be changed to &amp;#39;nrf52840dk_nrf52840.overlay&amp;#39; for my specific board? I think that was at least part of the problem as the .overlay is now showing up in the device tree interface&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Basic GPIO on NRF52840 Development Kit</title><link>https://devzone.nordicsemi.com/thread/358811?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2022 10:00:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f6b57d4-0200-437e-8b76-49cd8065d793</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Benjamin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nRF Connect SDK is our new platform and it&amp;#39;s the platform that we will&amp;nbsp;continue develop in the future. The nRF5 SDK is our legacy SDK and we stopped development on this SDK (We still support it and still provide bug fixes).&amp;nbsp;&lt;br /&gt;nRF Connect SDK has a quite steep learning curve that could be a challenge for many, including me who works at Nordic.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;For your need I would suggest to have a look at the device tree documentation &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/zephyr/guides/dts/intro.html"&gt;here&lt;/a&gt;. And we have a guide &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/peripherals/posts/adding-a-peripheral-to-an-ncs-zephyr-project"&gt;here &lt;/a&gt;that could be very useful for you.&lt;/p&gt;
&lt;p&gt;If you simply want to add an LED to your nRF5DK you can simply add an overlay file to the board to add new LED. If you are going to make your own board, you may better create a new device tree file for your board (dts).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I attached here a&amp;nbsp;modified version of the blinky example that I added a new 2 LEDs into the board on pin P0.11 and P0.12&amp;nbsp;. Please take a look at the .overlay file inside boards folder.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1258.blinky_5F00_custom.zip"&gt;devzone.nordicsemi.com/.../1258.blinky_5F00_custom.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>