<?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 deal with ETM Trace Overflows?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72980/how-to-deal-with-etm-trace-overflows</link><description>I have been off and on trying to get ETM Trace working with the nRF52840 and Segger Ozone. It mostly works, but because the CPU clock runs at 64MHz and the Trace clock runs at 16MHz I experience Trace overflows as the nRF52840 creates trace data faster</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Mar 2021 12:49:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72980/how-to-deal-with-etm-trace-overflows" /><item><title>RE: How to deal with ETM Trace Overflows?</title><link>https://devzone.nordicsemi.com/thread/300928?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 12:49:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:543aec7d-f08b-41bd-bbb5-827dc162b5e5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You might want to have a look at these posts, they only focus on Keil though.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/debugging-nrf52-series-devices-using-trace"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/debugging-nrf52-series-devices-using-trace&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf52-tutorial-etm-instruction-trace-with-keil-mdk"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf52-tutorial-etm-instruction-trace-with-keil-mdk&lt;/a&gt;&lt;/p&gt;
[quote user=""]Is there any known way to configure the nRF52 and/or Trace setup to avoid trace overflows?[/quote]
&lt;p&gt;Fist make sure that &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fclock.html&amp;amp;anchor=register.TRACECONFIG"&gt;TRACECONFIG&lt;/a&gt; is actually configured for max speed.&lt;/p&gt;
&lt;p&gt;To prevent overflows you could try to disable timestamps, or set a timestamp prescaler. Also, not sure if it&amp;#39;s possible with Ozone, but in Keil it seems to be possible to&amp;nbsp;disable certain trace events you&amp;#39;re not interested in.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>