<?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>Trouble setting up for nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78840/trouble-setting-up-for-nrf52840-dongle</link><description>I have a project I have been working on for a touch switch using the nRF52840. I have been developing it using NRF Connect 1.6.0 and testing it on the nRF52840DK board. It is working quite well now so I want to program a couple of dongles and run it in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Aug 2021 18:51:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78840/trouble-setting-up-for-nrf52840-dongle" /><item><title>RE: Trouble setting up for nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/326618?ContentTypeID=1</link><pubDate>Wed, 25 Aug 2021 18:51:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc9db20b-c9b3-4ff5-824c-54e3baf81b05</guid><dc:creator>IanAber</dc:creator><description>&lt;p&gt;Thanks for the link Einar. I got my code to work at last. I should have looked more closely but for some reason I was not expecting everything to have moved backwards quite so much. I remember when I first started fiddling with Zigbee and the nRF52840 that all the samples would work happily on the DK and the dongle. It seems that with every new release of the development environment it gets significantly more complicated and ignores most of the previous examples and settings. I moved to the NRF Connect SDK as I believed that is where things are being developed now but there is a lot of stuff that worked fine with the older SDK environments that is not supported, missing or simply doesn.t work with the current setup. I use the dongle because it is a very handy device for simple Zigbee stuff at a very affordable price. It seems that Nordic have all but abandoned it, and to some extent Zigbee too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble setting up for nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/326328?ContentTypeID=1</link><pubDate>Tue, 24 Aug 2021 10:39:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab0651ea-a66a-4db5-8349-c46bd781055d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Ah, I see. The ZigBee examples do not support the nRF52840 dongle so in that case you need to make some adjustments as described in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/74683/zigbee-coordinator-example-on-nrf52840-dongle-linker-problem/307983#307983"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble setting up for nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/326239?ContentTypeID=1</link><pubDate>Mon, 23 Aug 2021 16:37:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49eebc3e-b5ce-4633-bee5-c90b1e9dd24a</guid><dc:creator>IanAber</dc:creator><description>&lt;p&gt;I did a little checking and found that I could correctly generate a programmable hex file from the blinky application albeit somewhat difficult to track down as SES shows only the .elf output. I then tried to use the three Zigbee examples in the NRF Connect SDK 1.6.1. The light bulb example fails to compile with the error.&lt;/p&gt;
&lt;pre&gt;#error &amp;quot;Choose supported PWM driver&amp;quot;&lt;/pre&gt;
&lt;p&gt;The light switch generates a zephyr.hex file in the same &amp;#39;hidden&amp;#39; manner as the blinky example as the project in SES shows only the zephyr.elf output. Finding the zephyr.hex file in the same folder I dragged it to the prograammer and it appears to be correctly placed at 0x1000. I have no way to test it at the moment but at least the programmer is happy with the hex file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The coordinator example shows a project output of merged.hex but this has the same issue as my own project and appears to be set to load at 0x0000 thus upsetting the programmer. This does, at least, mean that you too should be able to recreate my problem using the stock sample files. I am running with SDK 1.6.1 on Mac OS X.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble setting up for nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/326225?ContentTypeID=1</link><pubDate>Mon, 23 Aug 2021 14:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e3eab01-f5d9-418d-b29e-e6dd11925883</guid><dc:creator>IanAber</dc:creator><description>&lt;p&gt;As you surmised it appears to be set to 0 instead of 0x1000...&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1629728451702v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;How does this get set?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble setting up for nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/326223?ContentTypeID=1</link><pubDate>Mon, 23 Aug 2021 14:18:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66ecd780-722c-46fe-8a72-6b31d87c4f87</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="IanAber"]I did not add anything to override the starting address. I just did a search for CONFIG_LOAD_FLASH in the whole project and the only references were in the generates files which all show it being set to 0x1000.[/quote]
&lt;p&gt;I see. Perhaps there is something else, but then I am not sure. You can see the start address of the hex file you added to nRF Connect Programming by hovering over it with the mouse in the File memory layout. It should be 0x1000. Is it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble setting up for nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/326217?ContentTypeID=1</link><pubDate>Mon, 23 Aug 2021 14:01:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2780371f-2ebc-48a1-8c38-afb98a93d476</guid><dc:creator>IanAber</dc:creator><description>&lt;p&gt;I did not add anything to override the starting address. I just did a search for CONFIG_LOAD_FLASH in the whole project and the only references were in the generates files which all show it being set to 0x1000.&lt;/p&gt;
&lt;p&gt;I do not know how to read the hex file output to see what it is set to but the first few lines when view in Segger Embedded Studio are...&lt;/p&gt;
&lt;pre&gt;:020000040000FA
:1000000000830020217B00000F560300757B000059
:10001000757B0000757B0000757B00000000000010
:100020000000000000000000000000007D7A0000D9
:10003000757B000000000000ED790000D571000024
:10004000E17A00000D6D0300E17A0000E17A000022
:10005000E17A0000E17A0000E17A0000E17A000034
:10006000D56C0300E17A0000E17A0000F36C030034
:10007000E17A0000E17A0000E17A0000E17A000014
:10008000E17A0000E17A0000E17A0000E17A000004
:10009000E17A0000E17A0000E17A0000E17A0000F4
:1000A000E17A0000E17A0000E17A0000E17A0000E4
:1000B000E17A0000E17A0000E17A0000E17A0000D4
:1000C000E17A0000E17A0000E17A0000E17A0000C4
:1000D000E17A0000E17A0000E17A0000E17A0000B4
:1000E000E17A0000E17A0000E17A0000E17A0000A4
:1000F000E17A0000E17A0000E17A0000E17A000094
:100100007BB972B90029BEBF00204FF0004106E064&lt;br /&gt;&lt;br /&gt;Is there anything else I can share with you to make it easier to diagnose? &lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble setting up for nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/326187?ContentTypeID=1</link><pubDate>Mon, 23 Aug 2021 12:15:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eddfa4e-62f4-4478-923b-22281111d450</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What is the start address of the hex file you try to program? I ask because&amp;nbsp;the Write button will be grayed out if the start address is&amp;nbsp;lower than 0x1000. However, when you build for nrf52840dongle_nrf52840, the start address should automatically be 0x1000 (because &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_FLASH_LOAD_OFFSET.html"&gt;FLASH_LOAD_OFFSET&lt;/a&gt;&amp;nbsp;defaults to 0x1000 for that board). So, there must be some issue with your project. Did you by any chance specify &lt;code&gt;CONFIG_FLASH_LOAD_OFFSET=0&lt;/code&gt;, overriding 0x1000?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>