<?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>J-Link Debugger with SEGGER Embedded Studio on Mac</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13478/j-link-debugger-with-segger-embedded-studio-on-mac</link><description>Continuing my mission to have SES set up to be the complete development environment on a Mac I am struggling to get the Jlink Debugger to behave with SES. 
 It appears I cannot use the J-Link RTT Viewer since I have a Mac and this looks like it is Windows</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Apr 2016 10:20:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13478/j-link-debugger-with-segger-embedded-studio-on-mac" /><item><title>RE: J-Link Debugger with SEGGER Embedded Studio on Mac</title><link>https://devzone.nordicsemi.com/thread/51428?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 10:20:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd06ba6c-7c39-445e-81c2-2eeacccba3b2</guid><dc:creator>RichieJH</dc:creator><description>&lt;p&gt;Thanks, helpful as always.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: J-Link Debugger with SEGGER Embedded Studio on Mac</title><link>https://devzone.nordicsemi.com/thread/51427?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 10:17:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e72dc38c-5452-45b0-a4cc-fe52c4d6739c</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;I don&amp;#39;t know how the original printf() routes. Crossworks had some &amp;#39;print to console&amp;#39; long before SEGGER_RTT but I never used it nor did I look to see how it communicated with the IDE. To complicate it further you could also output to a UART and then hook up a simple terminal inside Crossworks and print that way and that also showed up in a window. I think the printf() one is buried in libdebugio somewhere so without disassembling it, I dunno how it works.&lt;/p&gt;
&lt;p&gt;If Segger RTT has an advantage it&amp;#39;s that it&amp;#39;s very lightweight and just requires the debug probe to check a chunk of memory on a regular basis and shuffle data back and forward. It doesn&amp;#39;t block or hang or wait or anything else, so you can just leave it in the code after you&amp;#39;re done testing if you like, won&amp;#39;t make a difference, a memory buffer you&amp;#39;re not using will just have stuff written to it which is never used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: J-Link Debugger with SEGGER Embedded Studio on Mac</title><link>https://devzone.nordicsemi.com/thread/51426?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 09:56:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:573ead66-4cce-48ad-9b26-55bfbb20dcee</guid><dc:creator>RichieJH</dc:creator><description>&lt;p&gt;Hi RK, ok so I have seen SEGGER_RTT_writeString in the Debug Terminal in SES.  But then what is the advantage of SEGGER_RTT_writeString than just ordinary printf() if they are both being posted to the Debug Terminal within the IDE can I ask?  Anyway I&amp;#39;ll accept that as the answer since the messages are certainly being displayed in the Debug Terminal within SES but it would be good to know whether the advantages of SEGGER_RTT_WriteString and print(f) remain even though on the face of it it looks like they are being handled the same by the IDE.&lt;/p&gt;
&lt;p&gt;Also Michael, I found the JLinkExe.  It looks like on installation only the LicenseManager icon goes to the desktop whereas the other applications go to the applications folder.  But navigating to the applications folder got around that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: J-Link Debugger with SEGGER Embedded Studio on Mac</title><link>https://devzone.nordicsemi.com/thread/51425?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 09:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:685e7e7b-a0da-450f-ab68-0587ad4066ca</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;In Crossworks, RTT channel 0 output goes direct to the console, since SES is Crosworks, and RTT is a Segger technology, it would be hard to believe it doesn&amp;#39;t work the same way. It&amp;#39;s only channel 0, but that&amp;#39;s the one you use most of the time anyway. You just run your code and the output shows right up, I&amp;#39;ve never needed to run RTT viewer or anything else in order for this to work.&lt;/p&gt;
&lt;p&gt;You do have to set the &amp;#39;Startup Completion Point&amp;#39; to main, or SystemInit (I use SystemInit) to tell it when the app has reached the point to enable things like RTT, but that&amp;#39;s the only thing I&amp;#39;ve ever had to do.&lt;/p&gt;
&lt;p&gt;I see Startup Completion Point exists in SES too and in the project I looked at is set to main, don&amp;#39;t know whether it came like that or I set it like that. Either way - the Debug Terminal should show the RTT output.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: J-Link Debugger with SEGGER Embedded Studio on Mac</title><link>https://devzone.nordicsemi.com/thread/51424?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 09:27:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e312ad3-48d9-4810-9eb0-51793a92306e</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;&lt;a href="http://forum.segger.com/index.php?page=Thread&amp;amp;threadID=2895"&gt;forum.segger.com/index.php&lt;/a&gt; last answer states &amp;#39;Embedded Studio includes RTT output into its Debug Terminal..&amp;#39; looking at this might help. i haven&amp;#39;t tried this before&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: J-Link Debugger with SEGGER Embedded Studio on Mac</title><link>https://devzone.nordicsemi.com/thread/51423?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 09:24:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9d14383-dfd0-4cf4-9fd8-4565a4dd5ad7</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;And that sounds like Embedded Studio is not playing well being ran together with J-Link Debugger, my guess is they aren&amp;#39;t intended to be used together, but it sounds like a bug. I&amp;#39;ll ask SEGGER about it.&lt;/p&gt;
&lt;p&gt;I think really we need to be debugging in Embedded Studio and not using the J-Link debugger at all. Hopefully we can figure out the problems you are having to make this possible. But definitely stick with SWD instead of JTAG as thats needed.&lt;/p&gt;
&lt;p&gt;you might also get better answers, quicker than I can provide here: &lt;a href="http://forum.segger.com/index.php?page=Board&amp;amp;boardID=9&amp;amp;s=1a6741ae70e335cf466e5f9ddcfd7dd0180bc43e"&gt;forum.segger.com/index.php&lt;/a&gt;. Johannes from SEGGER seems to be answering questions right away there and he&amp;#39;s the guy I ask.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: J-Link Debugger with SEGGER Embedded Studio on Mac</title><link>https://devzone.nordicsemi.com/thread/51422?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 09:20:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ae17317-da80-47f8-9d39-cf9027fa4eb2</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;That&amp;#39;s weird because I am just using a normal dev kit on mac and its working fine. I just downloaded the most recent J-Link Software and Documentation pack here (v5.12c): &lt;a href="https://www.segger.com/j-link-software.html"&gt;www.segger.com/j-link-software.html&lt;/a&gt;, installed and navigated to the SEGGER folder. Here I double clicked &amp;#39;JLinkExe&amp;#39; and set up the connection to the dev kit following the prompts (I don&amp;#39;t get any problems with license). After it is connected I double click &amp;#39;JLinkRTTClient&amp;#39; and my RTT info is there.&lt;/p&gt;
&lt;p&gt;If I open the license manager (which i&amp;#39;ve never needed to do) and see which licenses are built in on my device I get the same &amp;#39;The connected emulator (S/N 682338160) has the following built-in license(s): none&amp;#39; message, but everything still works properly for me as it should.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: J-Link Debugger with SEGGER Embedded Studio on Mac</title><link>https://devzone.nordicsemi.com/thread/51421?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 09:14:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:828fb670-8ed9-4137-8215-c1e93b66b149</guid><dc:creator>RichieJH</dc:creator><description>&lt;p&gt;In the meantime I went back to J-Link Debugger and changed USB to SWD.  I also played around with some of the speeds.  If I open up J-Link Debugger and then commence a debug - SES freezes.  If I commence a debug and then open up J-Link Debugger and try to attach it I get a message &amp;quot;cannot connect&amp;quot; in the J-Link console.  So no luck changing these settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: J-Link Debugger with SEGGER Embedded Studio on Mac</title><link>https://devzone.nordicsemi.com/thread/51420?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 09:04:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be8b0f1c-e0bb-4395-9d4b-a2241507c425</guid><dc:creator>RichieJH</dc:creator><description>&lt;p&gt;Hi Michael, thanks for responding.  The J-Link Commander is part of the J-Link software package for Mac.  I have downloaded and installed that but I cannot get passed the JLinkLicenseManager.  It asks for a license number to be entered or asks to be connected to an emulator that holds a license.  When I click on the latter I get this message:&lt;/p&gt;
&lt;p&gt;The connected emulator (S/N 682301457) has the following built-in license(s):
none&lt;/p&gt;
&lt;p&gt;And I cannot proceed any further with any of the utilities in the software package.  This is the nRF52 DK to be clear.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: J-Link Debugger with SEGGER Embedded Studio on Mac</title><link>https://devzone.nordicsemi.com/thread/51419?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 08:53:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23cb1346-13e8-47af-ba91-16e4b1ff7814</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;Hey, while there isn&amp;#39;t an RTT Viewer on Mac, it is very easy to use RTT just following the answer in this post: &lt;a href="https://devzone.nordicsemi.com/question/44790/rtt-on-os-x/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;. You just connect to the device using JLink.exe and then open JLinkRTTClient and can view all RTT logging in that terminal.&lt;/p&gt;
&lt;p&gt;You need to be using SWD, not JTAG. 1 mhz should be fine but up to 5 mhz should work. I&amp;#39;m guessing this is the problem. nRF52 devices implement an SWD interface. The connection is failing probably because of this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>