<?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>debugging nRF51 dk within Eclipse IDE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7761/debugging-nrf51-dk-within-eclipse-ide</link><description>I am using SDK 8.1.0 and Eclipse on a Mac. I am having difficulty flashing my app that uses the nRF51 sdk onto nRF51. I am using JLink
I assume I need to flash two things: 1) s110_softdevice.hex (which comes with the nRF51 sdk) and 2)my app - Blinky</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Jun 2015 12:55:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7761/debugging-nrf51-dk-within-eclipse-ide" /><item><title>RE: debugging nRF51 dk within Eclipse IDE</title><link>https://devzone.nordicsemi.com/thread/27639?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2015 12:55:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b24f8328-6abe-45f2-887d-782d1c3f0779</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;There are always improvements and new ways to do things. You could give your feedback with the hex option in the comments of that tutorials. And great that you got debugging working, what was the trick that worked for you?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debugging nRF51 dk within Eclipse IDE</title><link>https://devzone.nordicsemi.com/thread/27638?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2015 12:44:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:954e24eb-9daa-4b05-85da-929954d7d157</guid><dc:creator>i_am_trying</dc:creator><description>&lt;p&gt;Thank you.  What I didn&amp;#39;t understand was the difference between using a .hex and a .bin.  Moving forward, I plan to use .hex (has the addressing included) and instead of loadbin (which requires an address) I&amp;#39;ll be using loadfile.  I am sure this info is documented somewhere.  However, on the tutorials and pages I read it did not have this simplification (to use .hex and loadfile instead of .bin and loadbin).&lt;/p&gt;
&lt;p&gt;I was able to get debugging working.  Yay!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debugging nRF51 dk within Eclipse IDE</title><link>https://devzone.nordicsemi.com/thread/27637?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2015 12:40:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c5bb81f-cf6c-403b-b73d-a5cc0f6fec77</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;blockquote&gt;
&lt;p&gt;softdevice start address is always 0&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;start address for application is given &lt;a href="https://devzone.nordicsemi.com/question/31703/nrf51822-iram-and-irom-settings-for-s110-sd/"&gt;here&lt;/a&gt;
for your case it will be 0X18000&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Jlink now only recognises full device name &amp;quot;nRF51422_xxaa, nRF51422_xxab,nRF51422_xxac, nRF51822_xxaa, nRF51822_xxab, nRF51822_xxac&amp;quot;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I have no expertise in Mac but I think the connection is made witwh GDB and the MBED chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debugging nRF51 dk within Eclipse IDE</title><link>https://devzone.nordicsemi.com/thread/27636?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2015 20:09:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e9d122d-4086-497b-8b48-8accfe4137b2</guid><dc:creator>i_am_trying</dc:creator><description>&lt;p&gt;I have gotten the project to build.  It is only debugging in Eclipse I don&amp;#39;t have right.  Regarding the JLink commands (as in one of the posts and listed below), isn&amp;#39;t the device nrf51822 ? Or more generically - what is the device name for the nrf51822.  then - 0 for the starting address of the s110 soft device and then 0x1600 for the starting address of the program are probably not the same as for nrf51 sdk&amp;#39;s s110 soft device.  What values of starting address should be used?  Then finally,  I don&amp;#39;t see the connection between using the JLink commander and source line debugging of the program in Eclipse.. Here are the JLink commands:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;_build em$ JLinkExe -device nrf51822_xxaa -if swd -speed 4000
[...]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;J-Link&amp;gt;loadbin s110_nrf51822_7.0.0_softdevice.bin 0&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;J-Link&amp;gt;loadbin ble_app_hrs_s110_xxaa.hex 0x16000

    J-Link&amp;gt;r
    J-Link&amp;gt;g
    J-Link&amp;gt;exit
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debugging nRF51 dk within Eclipse IDE</title><link>https://devzone.nordicsemi.com/thread/27635?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2015 18:41:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b7f8b3e-abe9-4bb5-bf7e-6b9f5860e2b2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;have you already configured your project in Eclipse and is it compiling without errors?  if not you need to follow this tutorial
&lt;a href="https://devzone.nordicsemi.com/tutorials/7/development-with-gcc-and-eclipse/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you have already configured your project but your only problem is flashing, then check the flashing section in that tutorial.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>