<?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>Using SystemView for debugging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73962/using-systemview-for-debugging</link><description>Hello 
 
 I am testing out a blinky FreeRTOS example that&amp;#39;s a part of the SDK and would like to use SystemView to visualize context switching and tasks. Are there any steps to go about using SystemView for debugging?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Apr 2021 06:59:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73962/using-systemview-for-debugging" /><item><title>RE: Using SystemView for debugging</title><link>https://devzone.nordicsemi.com/thread/305412?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 06:59:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0db06224-baf4-4da1-830d-5cb4dd16ec7b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I have never tested this on MacOS and unfortunately I do have no knowledge on how to fix this. We all have Windows machine locally. I think there is little I can do here but to suggest you to contact Segger on this. This is an external debugger and they would give you proper support on any platform than we can do. Sorry for bad news, but i think it would be faster to get response from them with MacOS related info on SystemView&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SystemView for debugging</title><link>https://devzone.nordicsemi.com/thread/305352?ContentTypeID=1</link><pubDate>Sat, 17 Apr 2021 00:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0565e79-1564-4020-a7e3-20f9c6b9b87e</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;I downloaded SystemView again and I see different set of files but still it doesn&amp;#39;t fully match - there&amp;#39;s no Src folder&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2021_2D00_04_2D00_16-at-5.12.08-PM.png" /&gt;&lt;br /&gt;&lt;br /&gt;and I downloaded from&amp;nbsp;&lt;a href="https://www.segger.com/products/development-tools/systemview/"&gt;here&lt;/a&gt;. Please point me to the right direction at your earliest convenience. It&amp;#39;s just getting dragged...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SystemView for debugging</title><link>https://devzone.nordicsemi.com/thread/305337?ContentTypeID=1</link><pubDate>Fri, 16 Apr 2021 16:14:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a7ebbee-df99-4acd-a31c-12686ddfa144</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;MacOS as you could tell.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SystemView for debugging</title><link>https://devzone.nordicsemi.com/thread/305254?ContentTypeID=1</link><pubDate>Fri, 16 Apr 2021 10:22:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b032067-92ce-4f3d-84ee-f3341186adf3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I am not sure, are you using different OS than Windows?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SystemView for debugging</title><link>https://devzone.nordicsemi.com/thread/305165?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 16:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8491f2f-fbc4-46d9-893a-20bdd4fa7a0c</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;Thanks for the response.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Though my folder structure looks different than yours. Why is that so?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2021_2D00_04_2D00_15-at-9.54.49-AM.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SystemView for debugging</title><link>https://devzone.nordicsemi.com/thread/305120?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 13:18:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:441ed386-4dde-4347-9677-6e9477d36976</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="morpho"]when it talks about creating a&amp;nbsp;&lt;em&gt;systemview&lt;/em&gt; folder in the project, is it referring to the local path or inside the Segger IDE? Because they aren&amp;#39;t mapped.[/quote]
&lt;p&gt;&amp;nbsp;This will be in your filesystem and in your project folder. The blog author has created a copy of hrs freertos example folder as quoted below.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;&amp;quot;The following steps are based on the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/ble_sdk_app_hrs_freertos.html?resultof=%22%62%6c%65%5f%61%70%70%5f%68%72%73%5f%66%72%65%65%72%74%6f%73%22%20"&gt;Heart Rate application with FreeRTOS&lt;/a&gt;&amp;nbsp;example located in the SDK (11.0 and 12,0) in&amp;nbsp;examples\ble_peripheral\ble_app_hrs_freertos. To keep the example clean, I made a copy of it and named the copy ble_app_hrs_freertos_sysview, where I will work.&amp;quot;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="morpho"]Where&amp;#39;s&amp;nbsp;&lt;em&gt;Src/Config?&amp;nbsp;&lt;/em&gt;It&amp;#39;s currently not set up like that in&amp;nbsp;&lt;em&gt;ble_app_hrs_freertos&amp;nbsp;&lt;/em&gt;example project. In fact, main.c is a part of the base folder and there&amp;#39;s no such folder as Src.[/quote]
&lt;p&gt;&amp;nbsp;When you are installing SystemView, it normally asks the path where to install it, you will find these files in those chosen installation path.&lt;/p&gt;
&lt;p&gt;On my Windows system it is as below&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/533x75/__key/communityserver-discussions-components-files/4/pastedimage1618492151536v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618492226291v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;You need to copy mentioned files from here&amp;nbsp; to your project folder&lt;/p&gt;
[quote user="morpho"]&lt;em&gt;Global.h&lt;/em&gt; are located under &lt;em&gt;external/segger_rtt&lt;/em&gt;. Is there where I should be copying the files&amp;nbsp;to my project?[/quote]
&lt;p&gt;This is under&amp;nbsp; C:\Program Files\SEGGER\SystemView\Src\Config for me and yes, you need to copy this to your project folder&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SystemView for debugging</title><link>https://devzone.nordicsemi.com/thread/304949?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 02:09:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a2c5eb2-d784-4c39-b704-ff629430d307</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;Thanks for the response.&lt;/p&gt;
&lt;p&gt;So you&amp;#39;re implying I should skip steps involving the softdevice?&lt;br /&gt;&lt;br /&gt;A couple of initial questions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;when it talks about creating a&amp;nbsp;&lt;em&gt;systemview&lt;/em&gt; folder in the project, is it referring to the local path or inside the Segger IDE? Because they aren&amp;#39;t mapped.&lt;/li&gt;
&lt;li&gt;Where&amp;#39;s&amp;nbsp;&lt;em&gt;Src/Config?&amp;nbsp;&lt;/em&gt;It&amp;#39;s currently not set up like that in&amp;nbsp;&lt;em&gt;ble_app_hrs_freertos&amp;nbsp;&lt;/em&gt;example project. In fact, main.c is a part of the base folder and there&amp;#39;s no such folder as Src.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Global.h&lt;/em&gt; are located under &lt;em&gt;external/segger_rtt&lt;/em&gt;. Is there where I should be copying the files&amp;nbsp;to my project?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SystemView for debugging</title><link>https://devzone.nordicsemi.com/thread/304812?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2021 12:24:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbdbeec1-09ff-4788-8a0e-5e4046b499b6</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;There is a &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/profiling-the-softdevice-and-freertos-with-segger-"&gt;blogpost &lt;/a&gt;for this specific usecase. I recommend you to use only the part which covers profiling of the application and not the softdevice. The softdevice profiling is done using smart hacks and workarounds very specific to that older version of the softdevice.&lt;/p&gt;
&lt;div style="left:75px;top:-20.0028px;"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>