<?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>How to enable parallel trace output?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69640/how-to-enable-parallel-trace-output</link><description>I am currently using SWO to get tracing data from ITM and DWT successfully. 
 Now I want to use parallel trace for more throughput. For that I use an FPGA, no JTrace or similar. Also I don&amp;#39;t use any debugging software or IDE, I want everything to be set</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Dec 2020 13:32:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69640/how-to-enable-parallel-trace-output" /><item><title>RE: How to enable parallel trace output?</title><link>https://devzone.nordicsemi.com/thread/286852?ContentTypeID=1</link><pubDate>Tue, 29 Dec 2020 13:32:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea28d22c-b283-460d-a706-f65be341002d</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;At a minimum you would have to set the TRCENA bit in the DEMCR register, as mentioned in the &lt;a href="https://developer.arm.com/documentation/ddi0403/ed"&gt;ARMv7-M Architecture Reference Manual&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For ITM tracing there are various&amp;nbsp;configuration registers available, as listed &lt;a href="https://developer.arm.com/documentation/ddi0337/e/system-debug/itm/summary-and-description-of-the-itm-registers"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For more details on this I will need to wait for more people to be back over the new year.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable parallel trace output?</title><link>https://devzone.nordicsemi.com/thread/286376?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2020 16:33:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e6baf3a-1122-4e50-a526-0785e9c90540</guid><dc:creator>Bennet</dc:creator><description>&lt;p&gt;I am running a simple variation of the blinky example, it is just modified to enable ITM output and to use 2 LEDs to indicate the state of&amp;nbsp;&lt;span&gt;CSPSR and&amp;nbsp;&lt;/span&gt;SPPR to ensure that everything is set up correctly. But I can try the bare blinky again.&lt;/p&gt;
&lt;p&gt;Would there be&amp;nbsp;some trace output by default if nothing else is configured? Or do I have to send ITM messages or enable ETM trace (no idea how that works) to get something out?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable parallel trace output?</title><link>https://devzone.nordicsemi.com/thread/286247?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2020 09:55:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c550f20-5de4-4866-b319-221ec69dddda</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for elaborating on what you are trying to do.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What kind of software are you running on the device?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The code triggered by the ENABLE_TRACE define should be enough to get trace running, but there could be issues if you have a SoftDevice running that delays the execution of this code until after the SoftDevice has been initialized.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you able to try this with a simple example without any SoftDevice, such as the blinky example, and see if you can get the trace working?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable parallel trace output?</title><link>https://devzone.nordicsemi.com/thread/286021?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 11:36:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15160c12-2f44-4f89-8130-6299f7fe329f</guid><dc:creator>Bennet</dc:creator><description>&lt;p&gt;To be precise, I want to use&amp;nbsp;&lt;a href="https://github.com/orbcode/orbuculum"&gt;https://github.com/orbcode/orbuculum&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This project has a subproject called &amp;quot;orbtrace&amp;quot; which uses an FPGA connected to the trace pins. The software&amp;nbsp;also has a TPIU decoder. There are some gdb scripts for STM based chips for enabling the trace output. But nothing for nrf, the developer doesn&amp;#39;t know how to do it either.&lt;/p&gt;
&lt;p&gt;This isn&amp;#39;t specific to that project though, I could also want to use a logic analyzer and feed the result to sigrok for decoding. For this I also need to know how to configure trace.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll look into the documentation but would be very grateful for some hints.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What I found so far is that I probably need to set&amp;nbsp;&lt;span&gt;Current_port_size (CSPSR) to width 4 (0x8) to enable all 4 pins. However that doesn&amp;#39;t make a difference, there is still only activity on one pin. Edit: it does work if I set&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;TPI-&amp;gt;SPPR = 0x0;&lt;/pre&gt;
&lt;p&gt;Now I get some voltage on all pins. Capturing trace still doesn&amp;#39;t work, but I have yet to figure out whether that is the fault of my configuration or orbtrace.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable parallel trace output?</title><link>https://devzone.nordicsemi.com/thread/285846?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 13:39:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef6fc7f2-1c2d-4a1d-b4f6-9f6c02361b1a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Bennet&lt;/p&gt;
&lt;p&gt;If I understand you correctly you want to create your own trace debugger rather than getting an off the shelf one?&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t really have any guides or tutorials showing how to do this,&amp;nbsp;since this is not something our customers normally do.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You would have to start by reading through the&amp;nbsp;relevant ARM specifications, covering the trace modules and the SWD interface:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.arm.com/documentation/ddi0480/b"&gt;https://developer.arm.com/documentation/ddi0480/b&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>