<?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>The green LED LD1 (LED1) will not light up when adapting ble_blinky_c for nRF52840 dongle.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76061/the-green-led-ld1-led1-will-not-light-up-when-adapting-ble_blinky_c-for-nrf52840-dongle</link><description>Sorry in advance for the length and possible irrelevance of some of what I have written here 
 
 So I am trying to figure out how the ble software works. I have the ble_app_blinky as server and which has a definition for working with pca10059 the board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Jun 2021 08:37:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76061/the-green-led-ld1-led1-will-not-light-up-when-adapting-ble_blinky_c-for-nrf52840-dongle" /><item><title>RE: The green LED LD1 (LED1) will not light up when adapting ble_blinky_c for nRF52840 dongle.</title><link>https://devzone.nordicsemi.com/thread/314628?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 08:37:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b0d5ddf-d793-4e7a-a027-8e06da184e8e</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;I am happy to help Gordon, I will consider the case resolved then.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The green LED LD1 (LED1) will not light up when adapting ble_blinky_c for nRF52840 dongle.</title><link>https://devzone.nordicsemi.com/thread/314463?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 12:36:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ead0817e-0a84-4138-a66e-5516d94ca05a</guid><dc:creator>gfmoore</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes I&amp;#39;ve read that article (many times) &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt; Always worth re-reading when you are starting out.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This can be closed as far as I&amp;#39;m concerned.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The green LED LD1 (LED1) will not light up when adapting ble_blinky_c for nRF52840 dongle.</title><link>https://devzone.nordicsemi.com/thread/314369?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 07:50:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df171b83-5431-496b-97a7-ad13cd8c01f2</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;My bad, green might be correct. My own dongle didn&amp;#39;t work, and I had to get someone else to test it for me ;)&lt;/p&gt;
&lt;p&gt;One of my colleagues wrote a blog explaining the main steps needed to convert a project for use with the PCA10059:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately it doesn&amp;#39;t mention the logging issue (since most examples don&amp;#39;t use UART logging by default), but I have mentioned this to him in case he wants to update the blog with this information later.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The green LED LD1 (LED1) will not light up when adapting ble_blinky_c for nRF52840 dongle.</title><link>https://devzone.nordicsemi.com/thread/314175?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 10:56:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:866b04c3-90d2-404d-8ba5-c40ed93924c7</guid><dc:creator>gfmoore</dc:creator><description>&lt;p&gt;Okay, now I can see the LED lit up green (yellow???).&lt;/p&gt;
&lt;p&gt;Also noted that going lower level I should use&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;nrf_gpio_pin_clear&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;NRF_GPIO_PIN_MAP&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;6&lt;/span&gt;&lt;span&gt;));&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;//set&amp;nbsp;low&amp;nbsp;to&amp;nbsp;light&amp;nbsp;led&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;just in case anyone else wants to do that sort of thing! ;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;However, though I understand your point about having a dk, [though I am currently unemployed and was just wanting to learn stuff (and I've now ordered a dk though I can't really/didn't want to afford it!)], many people will want to know how they convert the dk code into the dongle code. Was there some place I could have gone to find out that information? I certainly never expected that I would need to unset that flag!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks anyway.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The green LED LD1 (LED1) will not light up when adapting ble_blinky_c for nRF52840 dongle.</title><link>https://devzone.nordicsemi.com/thread/314162?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 10:06:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d503165-f584-4362-b883-66389e89a571</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The dongle was never intended to be a development tool on the level of the development kit, but rather a companion device you can use&amp;nbsp;for hardware prototyping, field testing etc. Getting a DK is definitely the way to go &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regarding your issue I believe it is caused by the UART logging still being enabled. On the PCA10059 dongle there is no USB to UART converter like on the DK, and trying to output log data to the UART will cause an assert in the code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to set&amp;nbsp;NRF_LOG_ENABLED = 0 in sdk_config.h and rebuild your project?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then it should work fine. At the start the yellow LED should light up, until you connect to it at which point the red LED turns on instead.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>