<?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>nrf52840 dongle debug with iar i-jet, download warning</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43319/nrf52840-dongle-debug-with-iar-i-jet-download-warning</link><description>I am trying to set up the nrf52840 dongle on IAR using an I-jet for debugging. I have iar version 8.32.1. I am using example project ble_app_blinky from the ble_peripheral examples folder. My preprocessor shows ok I think. It is as follows: 
 BOARD_PCA10059</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Feb 2019 09:39:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43319/nrf52840-dongle-debug-with-iar-i-jet-download-warning" /><item><title>RE: nrf52840 dongle debug with iar i-jet, download warning</title><link>https://devzone.nordicsemi.com/thread/169672?ContentTypeID=1</link><pubDate>Wed, 06 Feb 2019 09:39:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e79ca7f-5dc7-4801-8beb-6a46457cb793</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Maria,&lt;/p&gt;
&lt;p&gt;When you use an external debugger and as long as you confirm that you set REG0 correctly, then there is no difference between programming whichever nRF52840.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;em&gt;Fri Feb 01, 2019 11:56:52: Download error at 0x00026000: downloading into non-writable memory.&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;You need to tell the debugger what flash region that you are going to write to, so it may not have been set correctly (?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 dongle debug with iar i-jet, download warning</title><link>https://devzone.nordicsemi.com/thread/169578?ContentTypeID=1</link><pubDate>Tue, 05 Feb 2019 15:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd8ae59d-dc4a-4be9-a050-0c7bc3f724e9</guid><dc:creator>mck</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;Yes I did read both the nRF52840 Dongle Programming Tutorial and the nRF52840 dongle User&amp;#39;s guide.&lt;/p&gt;
&lt;p&gt;As per the user guide for an external source, I have cut the SB2 and soldered the SB1. The I-jet from iar provides the power. I measured the VDD out on the dongle and it has 4.5V so it does seem to get its power from the i-jet via the P1 connector where I have solder the SWD lines plus power and gnd.&lt;/p&gt;
&lt;p&gt;As per the programming tutorial I have made sure that the preprocessor is set to PCA10059. But in truth the example project I chose from Nordic (ble_app_blinky) already had a folder set up for this PCA10059 board. Although my exact case is not covered in the tutorial (external debugger, external power, and IAR workbench), these are the things I understand to be needed to be able to now program via the SWD of the I-jet using IAR workbench.&lt;/p&gt;
&lt;p&gt;Any ideas? Thanks, Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 dongle debug with iar i-jet, download warning</title><link>https://devzone.nordicsemi.com/thread/169493?ContentTypeID=1</link><pubDate>Tue, 05 Feb 2019 12:20:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9489484-9b39-4bd5-9296-52cdf479b5da</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Maria,&lt;/p&gt;
&lt;p&gt;With regards to programming with the nRF52840 Dongle, there is some other steps to consider than using the regular nRF52840 DK.&lt;/p&gt;
&lt;p&gt;This is well documented in the&amp;nbsp;&amp;quot;&lt;a href="https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;nRF52840 Dongle Programming Tutorial&amp;quot;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please read through it and if you have any more questions, then I am happy to help out.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;//Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>