<?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 remove debug info from Map files ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111627/how-to-remove-debug-info-from-map-files</link><description>Hello Team, 
 We are trying to make Release and Debug mode for our software.When I compile a sample program I see lot of Debug information in the Mapfile. Will this influnce the final hex ? How can we remove/disable this data from Map files ? 
 Regards</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 May 2024 10:24:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111627/how-to-remove-debug-info-from-map-files" /><item><title>RE: How to remove debug info from Map files ?</title><link>https://devzone.nordicsemi.com/thread/486376?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 10:24:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e991d7b-f2f6-4be5-abb5-ccd9d3f3c3ec</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]When I compile a sample program I see lot of Debug information in the Mapfile. Will this influnce the final hex ? [/quote]
&lt;p&gt;Debug symbols will not influence the final .hex. To read more about .map files, you can see this article:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://interrupt.memfault.com/blog/get-the-most-out-of-the-linker-map-file"&gt;https://interrupt.memfault.com/blog/get-the-most-out-of-the-linker-map-file&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]How can we remove/disable this data from Map files ?[/quote]
&lt;p&gt;To my knowledge, it is not possible to&amp;nbsp;avoid debug/discarded section being populated in a .map file.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>