<?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>Profiling NRF52832 with gprof flag -pg not possible due to SDK11</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34924/profiling-nrf52832-with-gprof-flag--pg-not-possible-due-to-sdk11</link><description>Hi, 
 I am using mbedos for a NRF42832 and am currently in the situation that I have to profile my code with gprof. Here comes the issue: the Nordic SDK uses explicit assembler code with register r7: 
 Hence, the compiler option needs -fno-omit-frame</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 May 2018 13:03:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34924/profiling-nrf52832-with-gprof-flag--pg-not-possible-due-to-sdk11" /><item><title>RE: Profiling NRF52832 with gprof flag -pg not possible due to SDK11</title><link>https://devzone.nordicsemi.com/thread/134191?ContentTypeID=1</link><pubDate>Thu, 31 May 2018 13:03:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffce1f53-b6fb-4e22-9d4c-cd7dd3fe2b22</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We do not have any examples for this.&lt;/p&gt;
&lt;p&gt;Doing a web search we found a blogpost on the subject, for using gprof with ARM Cortex-M in general:&lt;br /&gt;&lt;a href="https://mcuoneclipse.com/2015/08/23/tutorial-using-gnu-profiling-gprof-with-arm-cortex-m/"&gt;https://mcuoneclipse.com/2015/08/23/tutorial-using-gnu-profiling-gprof-with-arm-cortex-m/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Our understanding is that gprof is made for running on a full-fledged system, so that running it in an embedded setting requires some work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>