<?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>Adapting the blinky example from the nRF52840 DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43760/adapting-the-blinky-example-from-the-nrf52840-dk-to-the-nrf52840-dongle</link><description>I tried to follow this guide: 
 https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/nrf52840-dongle-programming-tutorial?CommentId=fd959c7d-2374-443a-8af7-b4d4f0d35228 
 To prove the concept of adapting SDK examples from the nRF52840 DK to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Feb 2019 16:01:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43760/adapting-the-blinky-example-from-the-nrf52840-dk-to-the-nrf52840-dongle" /><item><title>RE: Adapting the blinky example from the nRF52840 DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/171457?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 16:01:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1384204c-4622-424c-96a4-c8f359a8b5c9</guid><dc:creator>awneil</dc:creator><description>[quote userid="77347" url="~/f/nordic-q-a/43760/adapting-the-blinky-example-from-the-nrf52840-dk-to-the-nrf52840-dongle/171455"]We have to undefine BOARD_PLA10056 explicitly&amp;nbsp;on the project options[/quote]
&lt;p&gt;Yes, you do!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adapting the blinky example from the nRF52840 DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/171455?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 15:55:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f18a640-834d-45aa-975b-6dafecea934a</guid><dc:creator>rmarques</dc:creator><description>&lt;p&gt;Found the problem!&lt;/p&gt;
&lt;p&gt;We have to undefine BOARD_PLA10056 explicitly&amp;nbsp;on the project options. There&amp;#39;s a field for that on the interface on Code\Preprocessor\Preprocessor Undefinitions or you can add the line directly on the emProject&amp;nbsp;file:&lt;/p&gt;
&lt;p&gt;c_preprocessor_undefinitions=&amp;quot;BOARD_PCA10056&amp;quot;&lt;/p&gt;
&lt;p&gt;This way the blink example for the&amp;nbsp;DK can work on the Dongle!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adapting the blinky example from the nRF52840 DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/171448?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 15:45:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b6de2f8-63af-45e5-ba83-1812ae54a10d</guid><dc:creator>awneil</dc:creator><description>[quote userid="77347" url="~/f/nordic-q-a/43760/adapting-the-blinky-example-from-the-nrf52840-dk-to-the-nrf52840-dongle/171444"]I suspect that somehow the LEDs are not mapped correctly when switching board definitions in the c&lt;span&gt;_preprocessor_definitions of the PLA10056 projec&lt;/span&gt;[/quote]
&lt;p&gt;Yes - Sounds like it.&lt;/p&gt;
&lt;p&gt;It seemed to be that SES doesn&amp;#39;t necessarily spot project changes - try restarting SES, then doing a full rebuild ... ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adapting the blinky example from the nRF52840 DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/171444?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 15:23:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aef4ea9c-2f04-415b-be15-4fb798615945</guid><dc:creator>rmarques</dc:creator><description>&lt;p&gt;So, I&amp;#39;ve successfully connected a J-Link pro debugger to the dongle, programmed it with the blink project example intended for this board and was able to add a breakpoint and stop/go over it normally.&lt;/p&gt;
&lt;p&gt;When I made the modifications to the blink project for the PLA10056 that were recommended in the guide, the board was also programmed successfully and I could debug it normally, but the LEDs didn&amp;#39;t light up as they should, instead they were turned off always.&lt;/p&gt;
&lt;p&gt;I put a breakpoint in the line that switched the LEDs on and off inside the for loop and that breakpoint was reached consecutively as expected. So now I suspect that somehow the LEDs are not mapped correctly when switching board definitions in the c&lt;span&gt;_preprocessor_definitions of the PLA10056 project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ideas?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adapting the blinky example from the nRF52840 DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/171348?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 11:37:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8769628-2aa0-4fe7-a9db-269cc29a3c73</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Yes, you certainly should learn to use the debugger - it should be considered an indispensable part of your tool kit!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.avrfreaks.net/comment/1138166#comment-1138166"&gt;https://www.avrfreaks.net/comment/1138166#comment-1138166&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You&amp;#39;re right about the SoftDevice.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adapting the blinky example from the nRF52840 DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/171346?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 11:30:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa538270-e50e-4d69-b39a-776c4e0bf585</guid><dc:creator>rmarques</dc:creator><description>&lt;p&gt;I&amp;nbsp;only used the debugger to program the Dongle, I may learn about it in the meantime.&lt;/p&gt;
&lt;p&gt;I did a full erase yesterday by accident and had to use a JLink-Pro to reflash the Dongle, since the full erase resets the REGOUT0 register, which makes the logic level and VDD 1.8V.&lt;/p&gt;
&lt;p&gt;The Blinky example doesn&amp;#39;t need a SoftDevice as far as I can tell from the link above (&lt;a href="https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;here&lt;/a&gt; for convenience). The BLE examples need it, yes, but I am not using them for now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adapting the blinky example from the nRF52840 DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/171342?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 11:22:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5fb82bd-39ac-42d5-897f-4a5d7c406872</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;If you&amp;#39;ve got the debugger connected, did you use it to see what&amp;#39;s happening?&lt;/p&gt;
&lt;p&gt;Did you do a full chip erase before programming, and remember to reprogram the SoftDevice?&lt;/p&gt;
&lt;p&gt;Because it doesn&amp;#39;t come with the on-board JLink, the Dongle has a bootloader - so your code needs to work with that ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adapting the blinky example from the nRF52840 DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/171341?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 11:03:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7188d5d-81ae-4e20-9e18-6835b6d077fd</guid><dc:creator>rmarques</dc:creator><description>&lt;p&gt;I tried programming it with a nRF52840 DK, connected to the board via Debug Out and, in another try, I used the nRFConnect Programmer via USB. Does that answer the question? The blinky example project for PCA10059 works on the dongle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adapting the blinky example from the nRF52840 DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/171340?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 10:59:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0635d7b-9242-4b01-823f-60a882856534</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The &lt;span&gt;nRF52840&amp;nbsp;&amp;nbsp;&lt;/span&gt;chip on the DK and the Dongle is identical; it neither knows nor cares what board it is mounted on - therefore, the same code will run identically on the two.&lt;/p&gt;
&lt;p&gt;The difference is in the &lt;em&gt;&lt;strong&gt;external&lt;/strong&gt; &lt;/em&gt;hardware - so anything that relies upon the external hardware on the DK &lt;em&gt;which is not on the dongle&lt;/em&gt; will not work.&lt;/p&gt;
&lt;p&gt;One key hardware element which is present on the DK but &lt;strong&gt;&lt;em&gt;not&lt;/em&gt; the Dongle&lt;/strong&gt; is the J-Link programming &amp;amp; debugging interface.&lt;/p&gt;
&lt;p&gt;So how have you programmed the dongle?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>