<?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>Tracealyzer for &amp;quot;FreeRTOS+Trace&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36259/tracealyzer-for-freertos-trace</link><description>This question is similar to the feature request: devzone.nordicsemi.com/.../sdk-12-x-0-future-feature-requests 
 I have to evaluate if we buy Tracealyzer ( percepio.com/.../) . However, it&amp;#39;s only of use to us, if we can use it with: Nordic SDK + &amp;quot;FreeRTOS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Jul 2018 19:28:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36259/tracealyzer-for-freertos-trace" /><item><title>RE: Tracealyzer for "FreeRTOS+Trace"</title><link>https://devzone.nordicsemi.com/thread/140573?ContentTypeID=1</link><pubDate>Wed, 18 Jul 2018 19:28:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bb8851c-b014-47c1-9b27-2c8c11194314</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sorry for the late reply, I am on vacation and hence did not have internet access at all times.&lt;/p&gt;
&lt;p&gt;Looking at the picture below&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-beb7bf5c52694efa8ee477c9b44c380d/pastedimage1531941724144v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The library itself is in FreeRTOS kernel and the application, which does not depend on softdevice resources. So&amp;nbsp; Tracealyzer should work with the softdevice presence. But I am not sure about the statistics it will present. I mean that FreeRTOS port that Nordic has implemented has no clue about the softdevice activity.&lt;/p&gt;
&lt;p&gt;Lets assume that there are two FreeRTOS tasks that you are trying to analyze using the Tracealyzer. Lets say that Task A runs for 20 ms and then softdevice steals the CPU&amp;nbsp; for 3 ms to configure for the upcoming RADIO activity and give the control back to the FreeRTOs at which point it will schedule Task B. But your Tracealyzer will definitely show that Task A has been running for 23 ms (Task A + Softdevice run time) instead of 20 ms since it has no clue about softdevice (as this is not running as a task) but it still can see that 23 ms ticks has been passed when it does a context switch from Task A to Task B. I am sure that this will be very confusing data for you.&lt;/p&gt;
&lt;p&gt;In short, You cannot get meaningful data without telling Tracealyzer about the softdevice activity, which in turn cannot be done without RK&amp;#39;s hacks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tracealyzer for "FreeRTOS+Trace"</title><link>https://devzone.nordicsemi.com/thread/140043?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 10:01:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7ccd85b-de17-47ef-9860-f7924bdd38eb</guid><dc:creator>5upercircuits</dc:creator><description>&lt;p&gt;Thank you for your answer &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;I found the article where RK has provided instructions on getting it to work with hacks. However, I don&amp;#39;t feel comfortable applying those hacks and then ship that product. (refer to initial question)&lt;/p&gt;
&lt;p&gt;What about Tracealyzer for &amp;quot;FreeRTOS+Trace&amp;quot;? Would it work without any hacks in the softdevice? I only want to analyze the behavior of FreeRTOS (blocking tasks, ressource usage, etc.). To my knowledge, Tracealyzer would be perfect for that.&lt;/p&gt;
&lt;p&gt;However, this requires that Tracealyzer works even if the softdevice is present.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tracealyzer for "FreeRTOS+Trace"</title><link>https://devzone.nordicsemi.com/thread/140007?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 07:01:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a55cf340-229d-42ca-8a83-11f6793fb866</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;No, there are no hooks in the softdevice that will allow you to use the SystemViewer. So you cannot use them to analyze softdevice interrupts. But&amp;nbsp; you can ofcourse use it to analyze application interrupts. A long time ago&amp;nbsp; RK has provided some hacks to be able to instrument your whole system using &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/instrumenting-with-segger-systemview"&gt;SystemViewer&lt;/a&gt;. Maybe you can use that .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>