<?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>How does one connect Segger J-Link Base to nordic nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34166/how-does-one-connect-segger-j-link-base-to-nordic-nrf52840</link><description>I am in the development stages of developing a ble application with the nrf52840 nordic chip. 
 I have come to realize the increasing difficulty of debugging this chip only having access to 4 blinking led&amp;#39;s, basic prinf commands, and exactly 2 hardware</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 May 2018 06:49:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34166/how-does-one-connect-segger-j-link-base-to-nordic-nrf52840" /><item><title>RE: How does one connect Segger J-Link Base to nordic nrf52840</title><link>https://devzone.nordicsemi.com/thread/131793?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 06:49:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8f40190-02d4-41ec-be28-7cc618ede09a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/luckyginger"&gt;LuckyGinger&lt;/a&gt;: Yes, the adapter and the cable from Adafruit will work just as well as the adapter from Segger.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You&amp;nbsp;set the Optimization Level by right-clicking the Project in the Project Explorer, then select Edit Options.&amp;nbsp;This will open the Options Window, where you can set the settings for either the Release build or the Debug build, or you can alter the Common settings that are inherited by the Release and Debug build configurations. You&amp;#39;ll find the Optimization Level under Code -&amp;gt; Code Generation -&amp;gt; Optimization Level&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How does one connect Segger J-Link Base to nordic nrf52840</title><link>https://devzone.nordicsemi.com/thread/131560?ContentTypeID=1</link><pubDate>Wed, 09 May 2018 14:45:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b7d2919-eb52-4a56-a8cb-05e89cc742de</guid><dc:creator>LuckyGinger</dc:creator><description>&lt;p&gt;I am currently using Segger Embedded Studio. I haven&amp;#39;t found where to disable code optimization quite yet but I am still looking.&lt;/p&gt;
&lt;p&gt;6 HW breakpoints would be loads better than two, especially&amp;nbsp;if I can view the local variables.&lt;/p&gt;
&lt;p&gt;Not to sound cheap, but do you know if together these two options will work?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.adafruit.com/product/2094"&gt;https://www.adafruit.com/product/2094&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.adafruit.com/product/1675"&gt;https://www.adafruit.com/product/1675&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How does one connect Segger J-Link Base to nordic nrf52840</title><link>https://devzone.nordicsemi.com/thread/131473?ContentTypeID=1</link><pubDate>Wed, 09 May 2018 10:33:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b114984f-c1b3-40de-b0f7-99bd3c20a045</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Which IDE are you using? Segger Embedded Studio or Keil uVision? Have you disabled code optimization when you&amp;#39;re debugging, otherwise you might not be able to view all the local variables when halting the CPU.&lt;/p&gt;
&lt;p&gt;As far as I know the nRF52840 has&amp;nbsp;6 HW breakpoints.&lt;br /&gt;&lt;br /&gt;There is an extensive &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_nrf_log.html?cp=4_0_0_3_26"&gt;Logging module&lt;/a&gt; in our SDK that supports multiple backends, RTT, UART and a Command-Line Interface(CLI).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You need a&amp;nbsp;J-Link 9-Pin Cortex-M Adapter, available &lt;a href="https://devzone.nordicsemi.com/support-private/support/206470/J-Link%209-Pin%20Cortex-M%20Adapter"&gt;here&lt;/a&gt; from Segger or &lt;a href="https://www.digikey.com/product-detail/en/segger-microcontroller-systems/8.06.02-J-LINK-9-PIN-CORTEX-M-ADAPTER/899-1012-ND/2421158"&gt;here&lt;/a&gt; from Digikey. The 9-pin 0.05&amp;#39;&amp;#39; Samtec FTSH&amp;nbsp;connector can then be connected to the Debug In header(P18) on the nRF52840 DK&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>