<?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 question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40128/nrf52840-dongle-question</link><description>Hello, 
 I am trying to use IAR examples to debug some of the examples provided in the SDK. 
 I am only using examples that support the pca10059 dongle. 
 One example is the peripheral/Blinky. 
 The J-Link with IAR debugger is working. My problem is that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Feb 2019 06:18:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40128/nrf52840-dongle-question" /><item><title>RE: nRF52840 dongle question</title><link>https://devzone.nordicsemi.com/thread/169210?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 06:18:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1842360c-79b4-4d4d-97ad-7fee1426cc74</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/mck"&gt;mck&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Can you please create a new ticket for this question, so that other people who might have the same problem can see it? This ticket is 3 months old.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle question</title><link>https://devzone.nordicsemi.com/thread/169123?ContentTypeID=1</link><pubDate>Fri, 01 Feb 2019 18:49:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68ecac5f-1c74-4533-bbb9-4a6d0d0baef6</guid><dc:creator>mck</dc:creator><description>&lt;p&gt;Hi AndreasF,&lt;/p&gt;
&lt;p&gt;I am having same issue maybe. 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:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BOARD_PCA10059&lt;br /&gt;CONFIG_GPIO_AS_PINRESET&lt;br /&gt;FLOAT_ABI_HARD&lt;br /&gt;NRF52840_XXAA&lt;br /&gt;NRF_SD_BLE_API_VERSION=6&lt;br /&gt;S140&lt;br /&gt;SOFTDEVICE_PRESENT&lt;br /&gt;SWI_DISABLE0&lt;/p&gt;
&lt;p&gt;I have the latest versions of s140 and the SDK&amp;nbsp;because I have never worked with nordic semi and I have just downloaded everything in these last few days. I have used the P1 to connect the SWDIO, SWCLK, Vref, gnd lines as I usually do when I connect to the I-jet (although I use silabs blue geckos and not nRF52840). I also cut SB2 and soldered SB1.&lt;/p&gt;
&lt;p&gt;I compile, link and build fine. The issue is a warning when I try to download to the dongle. I get this:&lt;/p&gt;
&lt;p&gt;Fri Feb 01, 2019 11:56:52: Download error at 0x00026000: downloading into non-writable memory.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and then nothing happens&amp;nbsp;where normally I get put at main(). I can send you the rest of the messages when I do the download but in truth they look fine. This was the only warning during the initialization of the debugging session.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My goal is to evaluate using the nRF52840 for a future project where it would be a ble peripheral and that is why I started with the example projects in that folder.&lt;/p&gt;
&lt;p&gt;Can you help? Thanks, Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle question</title><link>https://devzone.nordicsemi.com/thread/156624?ContentTypeID=1</link><pubDate>Fri, 09 Nov 2018 09:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b07b362-212c-4ab9-8aaa-e80c04a8d0f7</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;If you look at the linker script for that project, you can see the following at the top of the file:&lt;/p&gt;
&lt;p&gt;(i looked at the file: nRF5_SDK_for_Thread_and_Zigbee_2.0.0_29775ac\examples\peripheral\blinky\pca10059\mbr\armgcc\blinky_gcc_nrf52.ld)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;MEMORY
{
  FLASH (rx) : ORIGIN = 0x1000, LENGTH = 0xff000
  RAM (rwx) :  ORIGIN = 0x20000008, LENGTH = 0x3fff8
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As you see, ORGIN =0x1000, compaired to the &lt;strong&gt;pca10056 &lt;/strong&gt;(for nRF52840 Development Kit):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;MEMORY
{
  FLASH (rx) : ORIGIN = 0x0, LENGTH = 0x100000
  RAM (rwx) :  ORIGIN = 0x20000000, LENGTH = 0x40000
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Which has ORGIN = 0x0.&lt;/p&gt;
&lt;p&gt;So the application is placed in an area which is not run, because you have deleted the bootloader.&lt;/p&gt;
&lt;p&gt;You have to change this address to 0x0.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;A project which uses the SoftDevice have another origin, like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;MEMORY
{
  FLASH (rx) : ORIGIN = 0x26000, LENGTH = 0xda000
  RAM (rwx) :  ORIGIN = 0x200022e0, LENGTH = 0x3dd20
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The SoftDevice knows that there is an offset and the origin of the application is at 0x2600, so it will start that application.&lt;/p&gt;
&lt;p&gt;If you wish to use a program which requires SoftDevice, you also have to load the SoftDevice &lt;strong&gt;.hex file &lt;/strong&gt;(S140 v6.1.0 found in nRF5_SDK_15.2.0_9412b96\components\softdevice\s140\hex)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle question</title><link>https://devzone.nordicsemi.com/thread/156608?ContentTypeID=1</link><pubDate>Fri, 09 Nov 2018 08:55:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:863bc728-88b4-4222-a141-a668103289ed</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;......\nRF5_SDK_for_Thread_and_Zigbee_2.0.0_29775ac\examples\peripheral\blinky&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What about the examples that require softdevice? How do I load them into the dongle?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Mohammad&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle question</title><link>https://devzone.nordicsemi.com/thread/156436?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 09:02:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:330ee6f0-2859-49c7-91fe-490a91386f56</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Which specific example are you looking at? Please give me the exact path in your SDK folder.&lt;/p&gt;
&lt;p&gt;The pca10059 examples have an offset, so if you have loaded a pca10059 example, you could have placed it in the wrong place.&lt;/p&gt;
&lt;p&gt;Note that the &lt;strong&gt;peripherals &lt;/strong&gt;examples does not require a SoftDevice.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle question</title><link>https://devzone.nordicsemi.com/thread/156420?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 08:07:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be237ec6-7159-419e-affc-67ccd15ed377</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Hi Andreasf,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have done that already. I told you I was able to use IAR with Jlink to download an example to the dongle. The problem is that I had to erase the dongle program, retarget the example to address 0x0000000 instead of the 0x1000000 the dongle uses with its bootloader.&lt;/p&gt;
&lt;p&gt;What I need from you, again, is to try to use one of the examples provided and succefuly debug it with the IAR workbench and let me know how you did it.&lt;/p&gt;
&lt;p&gt;After downloading the code, the pointer should break at &amp;quot;main&amp;quot;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Mohammad&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle question</title><link>https://devzone.nordicsemi.com/thread/156335?ContentTypeID=1</link><pubDate>Wed, 07 Nov 2018 13:59:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e3d1fd5-1423-411c-939f-f5469994f5a9</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;You need to solder a &lt;a href="https://1bitsquared.com/products/jtag-swd-smd-connector"&gt;ARM Cortex JTAG SWD 10pin Connecto&lt;/a&gt;r onto &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52%2Fdita%2Fnrf52%2Fdevelopment%2Fnrf52840_dongle%2Fhw_swd_if.html&amp;amp;cp=2_0_4_5_6"&gt;footprint P1&lt;/a&gt;, and either connect that to a external debugger or a development kit, like this:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-d6d44990093f4163833c211c4eda0b32/20181102_5F00_135754.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Connected to a development kit it looks like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-d6d44990093f4163833c211c4eda0b32/pastedimage1541592049733v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And connect the Dongle to a USB port&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-d6d44990093f4163833c211c4eda0b32/pastedimage1541592092412v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Note: it is really important that the voltage on the nRF52840 Dongle matches the nRF52832 DK if you do it this way.&lt;/p&gt;
&lt;p&gt;If you want to use an external debugger, you could connect it like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-d6d44990093f4163833c211c4eda0b32/pastedimage1541592175453v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And connected the Dongle to a USB port:&lt;/p&gt;
&lt;p&gt;And also connected it to a debugger (I&amp;#39;m using the &lt;a href="https://www.segger.com/products/debug-probes/j-link/models/j-link-base/"&gt;J-Link BASE&lt;/a&gt; here)&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-d6d44990093f4163833c211c4eda0b32/20181107_5F00_124330.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Then you just have to use the IDE you wish to use to debug.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle question</title><link>https://devzone.nordicsemi.com/thread/156174?ContentTypeID=1</link><pubDate>Tue, 06 Nov 2018 13:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42532ab3-cf29-40b9-bffa-d60cae1340d5</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Hi AndreasF,&lt;/p&gt;
&lt;p&gt;Ok. Thanks.&lt;/p&gt;
&lt;p&gt;The SDK provides some examples to support the dongle using IAR.&lt;/p&gt;
&lt;p&gt;One example is:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;......\nRF5_SDK_for_Thread_and_Zigbee_2.0.0_29775ac\examples\peripheral\blinky&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How can I debug such examples on the dongle using the JTAG or the USB&amp;nbsp; driver of the dongle itself?&lt;/p&gt;
&lt;p&gt;Can you walk me through such steps?&lt;/p&gt;
&lt;p&gt;Greatly appreciated.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Mohammad&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle question</title><link>https://devzone.nordicsemi.com/thread/156064?ContentTypeID=1</link><pubDate>Tue, 06 Nov 2018 07:52:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e004980-488e-491f-a5d7-e50fa8f5062e</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi again.&lt;/p&gt;
&lt;p&gt;You just have to reprogram it with your IAR J-Link. However, if you do a full flash erase (which includes erasing the UICR), you will have problems unless you have a debugger which has a levelshifter.&lt;/p&gt;
&lt;p&gt;This is because in the UICR there is a register called &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52840.ps%2Fuicr.html&amp;amp;cp=2_0_0_3_4_0_7&amp;amp;anchor=register.REGOUT0"&gt;REGOUT0&lt;/a&gt;, which sets the voltage (standard value 1.8 V). And you need to have 3.0V in order to program the chip.&lt;/p&gt;
&lt;p&gt;To avoid this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- Never delete the UICR, and if you do delete UICR you should need to make sure that you set REGOUT0 to 3.0V before you reset.&lt;/p&gt;
&lt;p&gt;- Or, use a debugger which supports level shifting (for example the &lt;a href="https://www.segger.com/products/debug-probes/j-link/models/j-link-pro/"&gt;J-Link Pro&lt;/a&gt;, but this debugger is expensive).&lt;/p&gt;
&lt;p&gt;That&amp;#39;s why I asked which IAR J-Link you have.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle question</title><link>https://devzone.nordicsemi.com/thread/155985?ContentTypeID=1</link><pubDate>Mon, 05 Nov 2018 14:21:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33087c90-bc9a-4c8c-b8c1-22c08a2326d2</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;The J-link is working fine with the dongle. My problem is how to bypass the bootloader so I can debug the code on the dongle.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have another method to debug examples on the dongle please let me know about it.&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;
&lt;p&gt;Mohammad&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle question</title><link>https://devzone.nordicsemi.com/thread/155955?ContentTypeID=1</link><pubDate>Mon, 05 Nov 2018 12:50:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffabbd4d-af2a-4133-9d82-5a01fb76ac14</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi again.&lt;/p&gt;
&lt;p&gt;Which IAR J-Link do you have?&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle question</title><link>https://devzone.nordicsemi.com/thread/155903?ContentTypeID=1</link><pubDate>Mon, 05 Nov 2018 10:10:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1aa843d-5d7d-47e3-9b3d-86e04d72f0fa</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;I installed JTAG connector and used IAr J-Link to do that.&lt;/p&gt;
&lt;p&gt;My question should be is how to debug any of the examples provided for the dongle?&lt;/p&gt;
&lt;p&gt;The dongle uses a bootloader and I am not sure how to download the example to the dongle and be able to debug it using IAR workbench.&lt;/p&gt;
&lt;p&gt;Is there a way to do that , whether using this method or any other one you may suggest?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Mohammad&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle question</title><link>https://devzone.nordicsemi.com/thread/155855?ContentTypeID=1</link><pubDate>Mon, 05 Nov 2018 07:04:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f9e2cc5-7902-4a61-8d32-67f577787981</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Mohammad.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a bit unsure what you mean with the following:&lt;/p&gt;
[quote user=""]The J-Link with IAR debugger is working. [/quote]
&lt;p&gt;&amp;nbsp;The nRF52840 Dongle does not have a debugger on it, have you connected it to a development kit?&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>