<?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>how to connect an external led on nrf5340 pdk?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77609/how-to-connect-an-external-led-on-nrf5340-pdk</link><description>Hello, 
 I want to connect an external led to the nrf5340 pdk to perform the same function as the blinky example. 
 I connected this led to D0 (PIN P1.00), but I don&amp;#39;t know if this is correct. 
 If this is feasible, I would like to know how to configurer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Jul 2021 14:15:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77609/how-to-connect-an-external-led-on-nrf5340-pdk" /><item><title>RE: how to connect an external led on nrf5340 pdk?</title><link>https://devzone.nordicsemi.com/thread/320945?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 14:15:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0205ea4d-5b7b-442c-8ec0-0ef7033e75cc</guid><dc:creator>milor</dc:creator><description>&lt;p&gt;Thank you for your help, I solved the problem. I defined a LED4 in the location of PIN0.26 in the file devicetree_unfixed.h, and then the LED externe lights up after the execution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to connect an external led on nrf5340 pdk?</title><link>https://devzone.nordicsemi.com/thread/320931?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 13:38:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1b05bbb-5ff2-4c54-b0e4-ded83da48bcd</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Can you upload the code as a zipped file, so I can see what you&amp;#39;ve done?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to connect an external led on nrf5340 pdk?</title><link>https://devzone.nordicsemi.com/thread/320925?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 13:23:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e1801ca-4e83-4087-ad84-0131381a590c</guid><dc:creator>milor</dc:creator><description>&lt;p&gt;Hello, I don&amp;#39;t have the nRF5340 DK. So I tried to&amp;nbsp;change&amp;nbsp;LED3 to Led external, by the same code with you, but when I compile, there is an error:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1715.error.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Do you know how to solve it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to connect an external led on nrf5340 pdk?</title><link>https://devzone.nordicsemi.com/thread/320701?ContentTypeID=1</link><pubDate>Mon, 19 Jul 2021 13:03:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5647c3ba-17d4-4f88-a55c-45e3d406f580</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;First, I would recommend you to use the nRF5340 &lt;strong&gt;DK&lt;/strong&gt;&amp;nbsp;instead of the nRF5340 &lt;strong&gt;PDK&lt;/strong&gt;. Read more about this here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/74463/nrf5340-pdk-to-ncs-1-5-x-compatibility"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/74463/nrf5340-pdk-to-ncs-1-5-x-compatibility&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Do the following to add a new LED to the blinky example:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/compare/v2.6.0-rc1-ncs1...simon-iversen:blinky_external_led"&gt;https://github.com/nrfconnect/sdk-zephyr/compare/v2.6.0-rc1-ncs1...simon-iversen:blinky_external_led&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This sample is just a generic sample demonstrating how to add an extra led to a sample, in your case remove &lt;a href="https://github.com/nrfconnect/sdk-zephyr/compare/v2.6.0-rc1-ncs1...simon-iversen:blinky_external_led#diff-6103b3408d36107d11ccb670ee9c88083e23a03e40581ab5054e9c6af463b936R3-R6"&gt;led3&lt;/a&gt;&amp;nbsp;and change the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/compare/v2.6.0-rc1-ncs1...simon-iversen:blinky_external_led#diff-6103b3408d36107d11ccb670ee9c88083e23a03e40581ab5054e9c6af463b936R8"&gt;gpios line&lt;/a&gt;&amp;nbsp;to:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;gpios = &amp;lt;&amp;amp;gpio1 0 GPIO_ACTIVE_LOW&amp;gt;; &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you use the pdk, name the overlay file nrf5340&lt;strong&gt;pdk&lt;/strong&gt;_nrf5340_cpuapp.overlay instead.&lt;/p&gt;
&lt;p&gt;On the nrf5340dk,&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.6.0-rc1-ncs1/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dts#L200"&gt;&lt;span&gt;P1.00 is used by uart1&lt;/span&gt;&lt;/a&gt;.&amp;nbsp;So you should check if this is the case for the pdk as well. If so, you should use another pin for uart1, use another pin for the external led, or disable uart1 in the overlay file.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>