<?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>The connected emulator does not support serial wire output (SWO)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3703/the-connected-emulator-does-not-support-serial-wire-output-swo</link><description>I am using Eclipse Kelpler SD2 and GNU ARM 4.7 tool chain, plus GNU ARM Eclipse Plugin 
 and after download code into CM0
I got the warning 
 &amp;quot;The connected emulator does not support serial wire output (SWO) 
 My setup environment 
 
 
 Eclipse</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Sep 2014 23:11:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3703/the-connected-emulator-does-not-support-serial-wire-output-swo" /><item><title>RE: The connected emulator does not support serial wire output (SWO)</title><link>https://devzone.nordicsemi.com/thread/13444?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2014 23:11:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:962b0619-0b38-4470-ac8e-b4722325affd</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;How many break points did you set ?  try with max of 3 first, see how it goes.  I remember sometimes Eclipse does that when I set more than the max breakpoints supported by the jtag probe.  Some are limited to 4 max.  I think the lite version has that limit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The connected emulator does not support serial wire output (SWO)</title><link>https://devzone.nordicsemi.com/thread/13438?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2014 21:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ef8c562-3d22-41b4-a5a8-3edcf190e562</guid><dc:creator>Jeffrey Tang</dc:creator><description>&lt;p&gt;Relative discusson on launchpad&lt;/p&gt;
&lt;p&gt;&lt;a href="https://answers.launchpad.net/gcc-arm-embedded/+question/240419"&gt;answers.launchpad.net/.../240419&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The connected emulator does not support serial wire output (SWO)</title><link>https://devzone.nordicsemi.com/thread/13443?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2014 21:05:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4418b694-7f50-4ec5-834d-e46410259664</guid><dc:creator>Jeffrey Tang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried rebuild the project and make no difference.&lt;/p&gt;
&lt;p&gt;After searching developerZone,
it seems my problem is actually the same as this one(Not be able to stop at breakpoint):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/14432/how-to-fix-the-error-no-source-file-named-mainc-when-adding-a-breakpoint-in-eclipse-when-debugging-with-gdb/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But I tried Hung Bui&amp;#39;s approach and but not working for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The connected emulator does not support serial wire output (SWO)</title><link>https://devzone.nordicsemi.com/thread/13442?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2014 20:43:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5268daf1-fc23-4a13-82ef-2c3cf54becac</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;I saw this happened when the code was not compiled with Debug info or source is out of sync.  Other than that, don&amp;#39;t what else it could be.  Try to do a clean and build.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The connected emulator does not support serial wire output (SWO)</title><link>https://devzone.nordicsemi.com/thread/13441?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2014 20:03:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8829c290-bf74-4b9a-a49b-c43fa3efda1d</guid><dc:creator>Jeffrey Tang</dc:creator><description>&lt;p&gt;The program does run withou crash, since I could use an iOS App to discover and connect with the BLE evaluation boards.&lt;/p&gt;
&lt;p&gt;It seems a bug of Eclipse or GNU ARM Plug-in. For example, if I set breakpoint at line 1239 rtc1_init();&lt;/p&gt;
&lt;p&gt;At assembly window, it shows the breakpoint is at 1239 rtc1_init(), which is just source code inserted into assembly window,
instead of at the real true instruction address 0x1c810: bl 0x1d314 rtc1_init&lt;/p&gt;
&lt;p&gt;If I set breakpoint at assembly window address 0x1c810, Eclipse &amp;amp; GDB can stop at the address without problem&lt;/p&gt;
&lt;p&gt;Source Window&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/BreakPointAtSource.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Assembly Window&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/BreakPointAtAssemble.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;My debug configuration for Source Tab
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/DebugSourceSetup.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;My Console Output during debug
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ConsoleOutput.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;I switched my GNU ARM tool chain from 4.7 2013q1  to 4.8 2014q2,
and the problem got solved (hopefully )&lt;/p&gt;
&lt;p&gt;Per the discussion here,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://answers.launchpad.net/gcc-arm-embedded/+question/240419"&gt;answers.launchpad.net/.../240419&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;it seems when gcc uses relative path to compile
and link the source codes, the build output contains the relative path,
somehow, some GDB version can only resolve absolute path
and will not be able to add breakpoint since it could not find
the source file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The connected emulator does not support serial wire output (SWO)</title><link>https://devzone.nordicsemi.com/thread/13440?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2014 19:24:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d2b542a-bc83-4497-9cc9-74b5255e7355</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;your program most likely crashes before reaching main.  Find your ResetEntry function and put a breakpoint there.  It should stop there if your Eclipse setup works correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The connected emulator does not support serial wire output (SWO)</title><link>https://devzone.nordicsemi.com/thread/13439?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2014 19:16:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1b50fc6-8a75-4536-b222-a18203673ff6</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;There is no SWO in nRF51822, see &lt;a href="https://devzone.nordicsemi.com/question/5865/nrf51822-debug-output-via-j-link-swo/"&gt;this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t know about breakpoint problem, but if you&amp;#39;re using softdevice then see &lt;a href="https://devzone.nordicsemi.com/question/81/how-can-i-debug-a-softdevice-application/#reply-82"&gt;this&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>