<?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>Configuring SWO on nrf52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30586/configuring-swo-on-nrf52</link><description>I&amp;#39;m trying to configure SWO properly, specifically to get the output in Eclipse. The following code is used to initialise the SWO. 
 
 I have a snippet that outputs a string to the SWO and I can read this correctly using this command 
 
 However, when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Mar 2018 06:16:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30586/configuring-swo-on-nrf52" /><item><title>RE: Configuring SWO on nrf52</title><link>https://devzone.nordicsemi.com/thread/126195?ContentTypeID=1</link><pubDate>Wed, 28 Mar 2018 06:16:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32b88b96-ae50-4b2c-864a-921aad79668e</guid><dc:creator>obbe</dc:creator><description>&lt;p&gt;I have updated JLinkGDBServer to&amp;nbsp;&lt;span&gt;V6.30i, as V6.22f has the following release note: &amp;quot;&lt;/span&gt;Firmware: Read in from SWO of external devices with J-Link OB on Nordic Semiconductor nrF52-DK, fixed.&amp;quot;&lt;/p&gt;
&lt;p&gt;Now I&amp;#39;m getting SWO output to the telnet channel, but Eclipse is still silent...&lt;/p&gt;
&lt;p&gt;In order to get telnet output I&amp;#39;m using the following commands. (I&amp;#39;ve update Eclipse to reflect the changes, but no change there)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mon SWO EnableTarget 0 0 1 0
mon SWO Start 0 4000000&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SWO on nrf52</title><link>https://devzone.nordicsemi.com/thread/122801?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2018 10:47:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58fe926b-f051-4a40-8697-efdad3664c0a</guid><dc:creator>Imperatori</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thank s for your answser.&lt;/p&gt;
&lt;p&gt;I was integrating in my src the code you linked as well, and it did not work.&lt;/p&gt;
&lt;p&gt;I copied 1:1 the main routine, and like this it seems to work as expected.&lt;/p&gt;
&lt;p&gt;My mistake: my BSP (undesired...!) re-configured the SWO as GPIO input.&lt;/p&gt;
&lt;p&gt;Good to know you are in direct in contact with them. In case you get ay news on this, keep us posted!&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;-G&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SWO on nrf52</title><link>https://devzone.nordicsemi.com/thread/122794?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2018 10:15:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8ff66ec-1688-4db1-a1a7-e137b9f78f44</guid><dc:creator>obbe</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have only been able to get the output through the JLinkExe software - not through any of the other available methods (GDB Server or SWOViewer). I followed &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27855/using-swo-with-nrf52-redux/109762#109762"&gt;this post&lt;/a&gt; by the letter, which worked very nicely (except for the issues mentioned).&lt;/p&gt;
&lt;p&gt;I&amp;#39;m currently in contact with Segger to figure out why I can&amp;#39;t get any of the other output formats working, but it may be the debug probe thats not fully supported (it was apparently not for development - woops!)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SWO on nrf52</title><link>https://devzone.nordicsemi.com/thread/122792?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2018 10:10:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2233304-fa83-4396-b702-f22a1cc9182c</guid><dc:creator>Imperatori</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;as I see you are able to see your SWO traces using j-link.&lt;/p&gt;
&lt;p&gt;In my case this doesn&amp;#39;t yet work.&lt;/p&gt;
&lt;p&gt;Did you set-up something else other then the macro &amp;quot;ENABLE_SWO&amp;quot; and enabling TCR &amp;amp; TER bits 0&amp;nbsp;?&lt;/p&gt;
&lt;p&gt;In my case, ITM-&amp;gt;TCR bit0 seems always to be 0, and therefore I guess I cannot see any SWO output.&lt;/p&gt;
&lt;p&gt;Any hint?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Many thanks!&lt;/p&gt;
&lt;p&gt;-G&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SWO on nrf52</title><link>https://devzone.nordicsemi.com/thread/121480?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 08:47:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46824431-5bc2-4585-9ac0-48d6a11d38f2</guid><dc:creator>obbe</dc:creator><description>&lt;p&gt;Same result. :/&lt;/p&gt;
&lt;p&gt;Not sure what the onboard JLink supports and doesn&amp;#39;t. Also have a Segger JLink LITE that I&amp;#39;ve tried (max frequency 2MHz), with the same result.&lt;/p&gt;
&lt;p&gt;But would JLinkExe work if GDBServer doesn&amp;#39;t? (If its hardware dependent)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SWO on nrf52</title><link>https://devzone.nordicsemi.com/thread/121474?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 08:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4733a124-419a-4bdc-9624-a40d35444383</guid><dc:creator>Guru</dc:creator><description>&lt;p&gt;I can see the output in my eclipse swo terminal with the settings I mentioned in my post earlier&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;As per your GDB Server logs, the interface clock speed is set to 2MHz even when you try to set it to 4MHz - I am not sure why (may be the on-board jlink in nRF52-DK can only work with lower speeds???). And I am also not sure if the SWO clock can be higher than the interface clock.&lt;/p&gt;
&lt;p&gt;Try setting a breakpoint in your code and when the breakpoint is hit, try executing the below 2 commands in your GDB Console window. (No code changes) - Please note that commands you execute on the GDB Console for SWO, will only print its output in the GDB Server Console and not on the GDB Client Console - so you may have to switch between the 2 console windows to see the commands output.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;monitor SWO Stop&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;monitor SWO Start 0 1000000&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;And then resume&amp;nbsp;the code&amp;nbsp;execution.&lt;/p&gt;
&lt;p&gt;I won&amp;#39;t get chance to test this until&amp;nbsp;tomorrow. But check if you are able to succeed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SWO on nrf52</title><link>https://devzone.nordicsemi.com/thread/121467?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 07:20:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a2caea6-f9be-4083-adbb-19e8a86a293f</guid><dc:creator>obbe</dc:creator><description>&lt;p&gt;Hi Guru,&lt;/p&gt;
&lt;p&gt;Thanks for your reply! Yeah, I&amp;#39;ve seen and read that there is a difference between trace port clock and trace clock, but I never fully understood which values I were supposed to give to GDB Server. Unfortunately however, still no output. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt; I&amp;#39;m attaching the output from GDB Server.&lt;/p&gt;
&lt;p&gt;I started the session from terminal as well, and same output (i.e. none). I also tried connecting to port 2332, which would give me garbage as its the raw SWO output, and there I&amp;#39;m getting output, but obviously nothing readable. So maybe there&amp;#39;s a connection, but the clocks are still misconfigured somehow that garbles the decoding?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;SEGGER J-Link GDB Server V6.22e Command Line Version

JLinkARM.dll V6.22e (DLL compiled Jan  8 2018 11:45:44)

Command line: -if swd -device nRF52832_xxAA -endian little -speed 4000 -port 2331 -swoport 2332 -telnetport 2333 -vd -ir -localhostonly 1 -singlerun -strict -timeout 0
-----GDB Server start settings-----
GDBInit file:                  none
GDB Server Listening port:     2331
SWO raw output listening port: 2332
Terminal I/O port:             2333
Accept remote connection:      localhost only
Generate logfile:              off
Verify download:               on
Init regs on start:            on
Silent mode:                   off
Single run mode:               on
Target connection timeout:     0 ms
------J-Link related settings------
J-Link Host interface:         USB
J-Link script:                 none
J-Link settings file:          none
------Target related settings------
Target device:                 nRF52832_xxAA
Target interface:              SWD
Target interface speed:        4000kHz
Target endian:                 little

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link Lite-Cortex-M V8 compiled Sep 15 2016 12:05:01
Hardware: V8.00
S/N: 518005256
Feature(s): GDB
Checking target voltage...
Target voltage: 3.27 V
Listening on TCP/IP port 2331
Connecting to target...Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x00000000 (Data = 0x20000400)
Read 2 bytes @ address 0x00000000 (Data = 0x0400)
Read 2 bytes @ address 0x00021630 (Data = 0xB508)
Reading all registers
Read 4 bytes @ address 0x00000000 (Data = 0x20000400)
Read 2 bytes @ address 0x00000000 (Data = 0x0400)
Received monitor command: reset
Resetting target
GDB closed TCP/IP connection
Connected to 127.0.0.1
Reading all registers
Read 2 bytes @ address 0x00021630 (Data = 0xB508)
Read 4 bytes @ address 0x000008E4 (Data = 0x47184B06)
Read 2 bytes @ address 0x000008E4 (Data = 0x4B06)
Received monitor command: speed 4000
Target interface speed set to 2000 kHz
Received monitor command: clrbp
Received monitor command: reset
Resetting target
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0x000008E4)
Received monitor command: regs
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= 20000400, MSP= 20000400, PSP= 00000000
R14(LR) = FFFFFFFF, R15(PC) = 000008E4
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0x000008E4 (Data = 0x47184B06)
Read 2 bytes @ address 0x000008E4 (Data = 0x4B06)
Received monitor command: speed 4000
Target interface speed set to 2000 kHz
Received monitor command: flash breakpoints 1
Flash breakpoints enabled
Received monitor command: semihosting enable
Semi-hosting enabled (Handle on BKPT)
Received monitor command: semihosting IOClient 3
Semihosting I/O set to TELNET and GDB Client
Received monitor command: SWO DisableTarget 0xFFFFFFFF
SWO disabled successfully.
Received monitor command: SWO EnableTarget 0 0 0xFF 0
SWO enabled successfully.
Read 2 bytes @ address 0x00021630 (Data = 0xB508)
Read 4 bytes @ address 0x000008E4 (Data = 0x47184B06)
Read 2 bytes @ address 0x000008E4 (Data = 0x4B06)
Downloading 16064 bytes @ address 0x0001F000 - Verified OK
Downloading 6032 bytes @ address 0x00022EC0 - Verified OK
Downloading 8 bytes @ address 0x00024650 - Verified OK
Downloading 132 bytes @ address 0x20002C38 - Verified OK
Writing register (PC = 0x0001F46C)
Read 2 bytes @ address 0x00021630 (Data = 0xB508)
Read 4 bytes @ address 0x0001F46C (Data = 0x2B004B15)
Read 2 bytes @ address 0x0001F46C (Data = 0x4B15)
Read 2 bytes @ address 0x00020B3A (Data = 0xF7FF)
Read 2 bytes @ address 0x00020B3A (Data = 0xF7FF)
Read 2 bytes @ address 0x00020B3A (Data = 0xF7FF)
Read 2 bytes @ address 0x00020B3A (Data = 0xF7FF)
Read 2 bytes @ address 0x00020B3A (Data = 0xF7FF)
Read 2 bytes @ address 0x00020B3A (Data = 0xF7FF)
Read 2 bytes @ address 0x00020B3A (Data = 0xF7FF)
Read 2 bytes @ address 0x0001F678 (Data = 0xF001)
Read 2 bytes @ address 0x0001F68E (Data = 0x687B)
Received monitor command: clrbp
Received monitor command: reset
Resetting target
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0x000008E4)
Received monitor command: SWO Stop
SWO stopped.
Received monitor command: SWO Start 0 2000000
SWO started.
Read 2 bytes @ address 0x00020B3A (Data = 0xF7FF)
Read 2 bytes @ address 0x00020B3A (Data = 0xF7FF)
Read 2 bytes @ address 0x00020B3A (Data = 0xF7FF)
Received monitor command: regs
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= 20000400, MSP= 20000400, PSP= 00000000
R14(LR) = FFFFFFFF, R15(PC) = 000008E4
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0x000008E4 (Data = 0x47184B06)
Read 2 bytes @ address 0x000008E4 (Data = 0x4B06)
Setting breakpoint @ address 0x0001F68E, Size = 2, BPHandle = 0x0001
Setting breakpoint @ address 0x00020B3A, Size = 2, BPHandle = 0x0002
Starting target CPU...
...Breakpoint reached @ address 0x00020B3A
Reading all registers
Read 4 bytes @ address 0x00020B3A (Data = 0xFF57F7FF)
Removing breakpoint @ address 0x0001F68E, Size = 2
Removing breakpoint @ address 0x00020B3A, Size = 2
Reading 64 bytes @ address 0x00020B00
Reading 64 bytes @ address 0x00020B40
Reading 64 bytes @ address 0x00020B80
Reading 64 bytes @ address 0x00020BC0
Reading 64 bytes @ address 0x00020C00
Reading 64 bytes @ address 0x00020C40
Reading 64 bytes @ address 0x00020C80
Reading 64 bytes @ address 0x00020CC0
Reading 64 bytes @ address 0x2000FFC0
Read 4 bytes @ address 0x0001F4BA (Data = 0xF835F004)
Read 2 bytes @ address 0x0001F46C (Data = 0x4B15)
Read 4 bytes @ address 0x0001F4C4 (Data = 0x20010000)
Read 2 bytes @ address 0x0001F46E (Data = 0x2B00)
Read 2 bytes @ address 0x0001F470 (Data = 0xBF08)
Read 2 bytes @ address 0x0001F472 (Data = 0x4B13)
Read 4 bytes @ address 0x0001F4C2 (Data = 0x00000008)
Read 2 bytes @ address 0x0001F474 (Data = 0x469D)
Read 2 bytes @ address 0x0001F476 (Data = 0xF5A3)
Read 2 bytes @ address 0x0001F478 (Data = 0x3A80)
Read 2 bytes @ address 0x0001F47A (Data = 0x2100)
Read 2 bytes @ address 0x0001F47C (Data = 0x468B)
Read 2 bytes @ address 0x0001F47E (Data = 0x460F)
Read 2 bytes @ address 0x0001F480 (Data = 0x4813)
Read 4 bytes @ address 0x0001F4D0 (Data = 0x00018000)
Read 2 bytes @ address 0x0001F482 (Data = 0x4A14)
Read 4 bytes @ address 0x0001F4D6 (Data = 0x00000001)
Read 2 bytes @ address 0x0001F484 (Data = 0x1A12)
Read 2 bytes @ address 0x0001F486 (Data = 0xF004)
Read 2 bytes @ address 0x0001F488 (Data = 0xF88F)
Reading 64 bytes @ address 0x2000FF00
Reading 64 bytes @ address 0x2000FF40
Reading 64 bytes @ address 0x2000FF80
Read 4 bytes @ address 0x2000FF18 (Data = 0x000242C0)
Read 4 bytes @ address 0x000242B8 (Data = 0x00000000)
Read 4 bytes @ address 0x2000FF34 (Data = 0x000242C0)
Read 4 bytes @ address 0x000242B8 (Data = 0x00000000)
Read 4 bytes @ address 0x2000FF50 (Data = 0x000242C0)
Read 4 bytes @ address 0x000242B8 (Data = 0x00000000)
Read 4 bytes @ address 0x2000FF6C (Data = 0x000241B4)
Read 4 bytes @ address 0x000241AC (Data = 0x00000000)
Read 4 bytes @ address 0x2000FF7C (Data = 0x00024164)
Read 4 bytes @ address 0x0002415C (Data = 0x00000000)
Read 4 bytes @ address 0x2000FF88 (Data = 0x0002421C)
Read 4 bytes @ address 0x00024214 (Data = 0x00000000)
Read 4 bytes @ address 0x2000FFC0 (Data = 0x2000FFC8)
Read 4 bytes @ address 0x2000FFD8 (Data = 0x0000FFFF)
Read 4 bytes @ address 0x2000FFE4 (Data = 0x00020AC7)
Read 4 bytes @ address 0x2000FF04 (Data = 0x0002428C)
Read 4 bytes @ address 0x00024284 (Data = 0x00000000)
Reading 64 bytes @ address 0x2000FEC0
Read 4 bytes @ address 0x2000FEFC (Data = 0x00024138)
Read 4 bytes @ address 0x00024130 (Data = 0x00000000)
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SWO on nrf52</title><link>https://devzone.nordicsemi.com/thread/121427?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2018 16:00:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e4af80b-84b3-4102-b336-1662c4db9b1b</guid><dc:creator>Guru</dc:creator><description>&lt;p&gt;Hi Obbe,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; its always tricky to get the frequencies correct, its a pain and I messed up the first time as well.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I look at the nrf52_bitfields.h&lt;/p&gt;
&lt;p&gt;#define CLOCK_TRACECONFIG_TRACEPORTSPEED_32MHz (0UL) /*!&amp;lt; 32 MHz Trace Port clock (TRACECLK = 16 MHz) */&lt;br /&gt;#define CLOCK_TRACECONFIG_TRACEPORTSPEED_16MHz (1UL) /*!&amp;lt; 16 MHz Trace Port clock (TRACECLK = 8 MHz) */&lt;br /&gt;#define CLOCK_TRACECONFIG_TRACEPORTSPEED_8MHz (2UL) /*!&amp;lt; 8 MHz Trace Port clock (TRACECLK = 4 MHz) */&lt;br /&gt;#define CLOCK_TRACECONFIG_TRACEPORTSPEED_4MHz (3UL) /*!&amp;lt; 4 MHz Trace Port clock (TRACECLK = 2 MHz) */&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So if we are setting a trace port clock of 4MHz its actually 2Mhz trace clock.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;now getting back to the solution&lt;/p&gt;
&lt;p&gt;1) Set all the clock to 4 MHz&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Debugger Tab&lt;/p&gt;
&lt;p style="padding-left:60px;"&gt;Initial Speed Fixed: 4000 KHz&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Startup Tab&lt;/p&gt;
&lt;p style="padding-left:60px;"&gt;Initial Reset and Halt Type: Low Speed: 4000 KHz&lt;/p&gt;
&lt;p style="padding-left:60px;"&gt;JTAG/SWD Speed Fixed: 4000 KHz&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2) In your 2nd screenshot (Startup tab of eclipse debug configuration) set the cpu freq and swo freq back to 0 (allow the JLinkGDBServer to figure out the swo freq (which is the trace port clock i.e. 4 MHz)&lt;/p&gt;
&lt;p&gt;3) And then I also found out that the latest version of the JLink software requires a separate special command to actually start the SWO data collection. Insert the following two commands in the big edit box after Run/Restart commands&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;strong&gt;monitor SWO Stop&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;monitor SWO Start 0 2000000&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;the 2000000 corresponds to the 2 MHz Trace Clock (Refer to the macros I pasted above from the nrf52_bitfields.h)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="Eclipse JLink Debug Config - Startup Tab" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/startup_5F00_config.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let me know if you are able to succeed in getting the SWO output in the Eclipse Console.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SWO on nrf52</title><link>https://devzone.nordicsemi.com/thread/121248?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2018 12:46:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43c3975f-b0f2-49fd-b115-1e7f638249e9</guid><dc:creator>obbe</dc:creator><description>&lt;p&gt;Hi Guru,&lt;/p&gt;
&lt;p&gt;GDB Server accepts the changes, but still no output.&lt;/p&gt;
&lt;p&gt;GDB Server output: (abridged)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Received monitor command: SWO DisableTarget 0xFFFFFFFF
SWO disabled successfully.
Received monitor command: SWO EnableTarget 64000000 4000000 0xFF 0
SWO enabled successfully.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SWO on nrf52</title><link>https://devzone.nordicsemi.com/thread/121244?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2018 12:31:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1a1bf5f-247c-4378-a482-931543ab6cd0</guid><dc:creator>Guru</dc:creator><description>&lt;p&gt;In the screenshots above, you have left the CPU freq and SWO freq fields empty, can you fill those values and see if it works?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;SWO freq is the 4MHz (which is what is passed in to the&amp;nbsp;&lt;span&gt;swoview as well - &lt;strong&gt;swoview 4000000&lt;/strong&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CPU freq - what ever is the freq you are running your cpu at.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SWO on nrf52</title><link>https://devzone.nordicsemi.com/thread/121242?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2018 12:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85dd02ef-f353-4d6b-84f5-06e12ca41ff8</guid><dc:creator>obbe</dc:creator><description>&lt;p&gt;Yes, that is correct. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SWO on nrf52</title><link>https://devzone.nordicsemi.com/thread/121233?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2018 11:27:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87b7021b-e1e8-4e69-bb1c-1055125f4e61</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Oh! Sorry. I seem to misunderstand your question. So you do get the swo output with &lt;strong&gt;your project&lt;/strong&gt; if you use &amp;quot;JLink.exe&amp;quot; and &amp;quot;swoview 4000000&amp;quot;, is that correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SWO on nrf52</title><link>https://devzone.nordicsemi.com/thread/121222?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2018 10:15:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14abedfa-aa57-43c8-a4b5-ca3421f00959</guid><dc:creator>obbe</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Thanks for your reply!&amp;nbsp;The code I&amp;#39;m using is a C++ adaption from the excellent post by&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/rickchung1082"&gt;Jui-Chou (Rick) Chung&lt;/a&gt;. And it works properly, if I run the command I get SWO output, but only though JLinkExe. I want it to launch as part of the Eclipse debuggning session, which (I believe) doesn&amp;#39;t use JLinkExe, but a telnet client to GDB server.&lt;/p&gt;
&lt;p&gt;I can of course run this in a terminal, but I get the same output there as in Eclipse. (Last code snippet in the original post) I&amp;#39;m pasting what I believe to be the equivalent terminal commands below. Its three separate processes - a GDB server, a GDB client (to issue SWO command) and a telnet client that should receive the SWO output from the GDB server.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;JLinkGDBServer -if swd -device nrf52832_XXAA

arm-none-eabi-gdb
(gbd) mon swo start 0 0

telnet localhost 2333&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using both a development kit from Laird (DVK-BL652_1.0) and a stand-alone BL652 module (also from Laird) with a Segger JLink.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SWO on nrf52</title><link>https://devzone.nordicsemi.com/thread/121213?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2018 09:38:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b442befe-eb53-4bf6-9e97-5f5e0b94a26e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have not tested this on eclipse, so I don&amp;#39;t know how this startup GUI is set up. Maybe the &amp;quot;enable SWO&amp;quot; checkbox does this, but I am not sure. Could you try to add &amp;quot;ENABLE_SWO&amp;quot; to your preprocessor defines?&lt;/p&gt;
&lt;p&gt;I have not done much c++, but this code in C (thanks to &lt;a href="https://devzone.nordicsemi.com/members/rickchung1082"&gt;Jui-Chou (Rick) Chung&lt;/a&gt;from &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27855/using-swo-with-nrf52-redux/109762#109762" rel="noopener noreferrer" target="_blank"&gt;this case&lt;/a&gt;) should print data on the SWO line after defining ENABLE_SWO.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;stdbool.h&amp;gt;
#include &amp;lt;stdint.h&amp;gt;

#include &amp;quot;nrf.h&amp;quot;
#include &amp;quot;nordic_common.h&amp;quot;
#include &amp;quot;boards.h&amp;quot;
#include &amp;quot;nrf_delay.h&amp;quot;

/**
 * @brief Function for application main entry.
 */
int main(void)
{
    // step 2
    NRF_CLOCK-&amp;gt;TRACECONFIG = (NRF_CLOCK-&amp;gt;TRACECONFIG &amp;amp; ~CLOCK_TRACECONFIG_TRACEPORTSPEED_Msk) |
    (CLOCK_TRACECONFIG_TRACEPORTSPEED_4MHz &amp;lt;&amp;lt; CLOCK_TRACECONFIG_TRACEPORTSPEED_Pos);
    
    // step 3
    ITM-&amp;gt;TCR |= 1;
    ITM-&amp;gt;TER |= 1;
    uint8_t c = 65;
    
    while (true)
    {
        nrf_delay_ms(100);
        // step 4   
        ITM_SendChar(c);
        if( c &amp;gt;= 90){
            c = 65;
        }else{
            c++;
        }
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Can you test it and see if you get any output? I tested it using the same JLink command that you used:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;JLinkExe -if swd -device nrf52 -speed auto
connect
swoview 4000000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do you use a DK, or is it a custom device?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>