<?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>Blinky LED fails to run on nRF5340 DK dev kit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123321/blinky-led-fails-to-run-on-nrf5340-dk-dev-kit</link><description>I am trying to assess the nRF5340 on its DK dev kit (PCA10095) and considered flashing a LED the simplest first step to check the development tools and the debugger. Despite the simplicity of the idea, I never see any LEDs flashing. 
 I used the NRFconnect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Jul 2025 07:36:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123321/blinky-led-fails-to-run-on-nrf5340-dk-dev-kit" /><item><title>RE: Blinky LED fails to run on nRF5340 DK dev kit</title><link>https://devzone.nordicsemi.com/thread/544173?ContentTypeID=1</link><pubDate>Thu, 31 Jul 2025 07:36:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7383cee-a22f-4762-b8e3-dc684d1cd417</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is it so that you built for&amp;nbsp;&lt;code&gt;nrf5340_audio_dk/nrf5340/cpuapp/ns&lt;/code&gt; but are testing on a nRF5340 DK? If so, this will not work as these are different boards which does not have LEDs on the same pins. Wiht the nRF52840 DK, you should build for&amp;nbsp;&lt;code&gt;nrf5340dk/nrf5340/cpuapp&amp;nbsp;&lt;/code&gt;(or &lt;code&gt;nrf5340dk/nrf5340/cpuapp/ns&lt;/code&gt; but I would avoid that for not for simplicity and to reduce build time as you probably do no need &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/security/tfm/index.html"&gt;TF-M&lt;/a&gt; at this stage).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blinky LED fails to run on nRF5340 DK dev kit</title><link>https://devzone.nordicsemi.com/thread/544108?ContentTypeID=1</link><pubDate>Wed, 30 Jul 2025 13:47:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6029cf0-3b34-4c91-a7db-2e78fc61df39</guid><dc:creator>astorm</dc:creator><description>&lt;p&gt;Hi Einar,&amp;nbsp; I will avoid testing any of the Zephyr sample code for the moment.&lt;/p&gt;
&lt;p&gt;As a sanity check I tried to repeat the blinky example described at&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-1-nrf-connect-sdk-introduction/topic/exercise-2-1/"&gt;Exercise 2 - Build and flash your first nRF Connect SDK application - Nordic Developer Academy&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and after creating a new application based on the nrf samples, I made a new build configuration following the instructions, targeted a &amp;quot;nrf5340_audio_dk/nrf5340/cpuapp/ns&amp;quot; and the build reported success after several minutes:&lt;/p&gt;
&lt;p&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/pastedimage1753875103887v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;I then tried flashing this back into the nRF5340 which also reported success&lt;/p&gt;
&lt;p&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/pastedimage1753875158147v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;The big problem is this time I dont see any LEDs actually flashing on the PCB.&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f615.svg" title="Confused"&gt;&amp;#x1f615;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Given I repeated the DevZone example this is worrying, so I thought maybe build a debug optimised version of this sample and step through the code with breakpoints to check the code is running on the target cpu. The build stage reports success and flashing also reported success:&lt;/p&gt;
&lt;p&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/pastedimage1753876551384v3.png" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&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/pastedimage1753876612968v4.png" /&gt;&lt;/p&gt;
&lt;p&gt;Attaching&amp;nbsp;the debugger to the target appears to be ok but still no evidence of LEDs flashing&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f615.svg" title="Confused"&gt;&amp;#x1f615;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It appears the code is doing nothing more than constantly calling&amp;nbsp;&lt;span&gt;k_cpu_idle&lt;/span&gt;&lt;span&gt;() from the source file&amp;nbsp;&lt;/span&gt;&amp;quot;c:\ncs\v3.0.2\zephyr\kernel\idle.c&amp;quot; with no evidence of any code that turns the LED on or off which explains why I dont see this.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Something is clearly fundamentally very wrong&amp;nbsp;&lt;img style="max-height:32px;max-width:32px;" alt="Confused" src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6758.1f615.svg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blinky LED fails to run on nRF5340 DK dev kit</title><link>https://devzone.nordicsemi.com/thread/544016?ContentTypeID=1</link><pubDate>Wed, 30 Jul 2025 07:10:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7528426-1333-466a-9e77-c1df7dc789a2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The samples under nrf are officially supported in the SDK. The sampls under zephyr come from vanilla Zephyr and often works, but are not officially supported in the nRF Connect SDK (they will often be usefull, but may not always work as they are not officially supported or tested during SDK releases). See &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples.html"&gt;Samples&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blinky LED fails to run on nRF5340 DK dev kit</title><link>https://devzone.nordicsemi.com/thread/543991?ContentTypeID=1</link><pubDate>Tue, 29 Jul 2025 16:03:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e52372a-9bb5-4685-824b-8d10566527f2</guid><dc:creator>astorm</dc:creator><description>&lt;p&gt;Update:&amp;nbsp; I have tried to recreate this issue and noticed there are two blinky examples on my HDD and the second demonstrates the failure above but the first does not and will flash a a real LED on the target Dev Kit.&lt;/p&gt;
&lt;p&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/pastedimage1753804912719v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Superficially this is problem solved, but it was a 50/50 chance I pick the working sample.&lt;/p&gt;
&lt;p&gt;I did successfully build and run the third sample seen above which uses a PWM pattern to flash the LED.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>