<?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>Memory Report generation Python/DWARF error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109419/memory-report-generation-python-dwarf-error</link><description>Hi, 
 
 We are using nRF Connect SDK Toolchain 2.4.2. We want to make rom_reports and footprints but we get the following error: 
 [09:04:53] Command failed: west build -d APP_PATH /build -t footprint Traceback (most recent call last): File &amp;quot; PROJECT_PATH</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Mar 2024 15:36:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109419/memory-report-generation-python-dwarf-error" /><item><title>RE: Memory Report generation Python/DWARF error</title><link>https://devzone.nordicsemi.com/thread/474689?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 15:36:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8e8a9d7-488a-4592-9c80-943d95573730</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;That makes sense. Thank you for the update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory Report generation Python/DWARF error</title><link>https://devzone.nordicsemi.com/thread/474666?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 14:47:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efa0cb0f-b5d2-4242-81d8-c26b85b9fc6e</guid><dc:creator>klaasg</dc:creator><description>&lt;p&gt;Found the error with the command&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;$ readelf --debug-dump=info build/zephyr/zephyr.elf | grep -A10 &amp;#39;Compilation Unit @&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Our Zephyr app is compiled with the correct version, 4, but we include an externally compiled library, compiled with DWARF version 5.&lt;br /&gt;Thank you for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory Report generation Python/DWARF error</title><link>https://devzone.nordicsemi.com/thread/474660?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 14:31:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87948b31-354c-4301-bd68-9db590a0978b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think I will need more details about your project to understand why &amp;#39;-gdwarf-4&amp;#39; is not being applied to your build. Are you changing the default build flags in your in your project?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory Report generation Python/DWARF error</title><link>https://devzone.nordicsemi.com/thread/474645?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 13:49:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc0ed169-1033-4cdd-b07e-2c043ad646b3</guid><dc:creator>klaasg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In VSCode, building and clicking &amp;quot;Memory report&amp;quot; works for zephyr/samples/hello_world.&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t for our app.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I built both tests with the same board, a custom board.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;klaasg.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory Report generation Python/DWARF error</title><link>https://devzone.nordicsemi.com/thread/474588?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 12:01:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77adb8ef-66f7-4c13-b6a0-cb60f7eca40b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t recall seeing this error before. It&amp;#39;s also strange that DWARF version 5 is selected as it should be set to 4 here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/commit/878edeb6ff190a713910a0e5cb9022704c5934a3"&gt;https://github.com/nrfconnect/sdk-zephyr/commit/878edeb6ff190a713910a0e5cb9022704c5934a3&lt;/a&gt;&amp;nbsp;and here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/5c037fe1226d8ae8c8fb964fb60e5de487550d7c/cmake/compiler/gcc/compiler_flags.cmake#L170"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/5c037fe1226d8ae8c8fb964fb60e5de487550d7c/cmake/compiler/gcc/compiler_flags.cmake#L170&lt;/a&gt;. Are you receiving this error with the SDK samples?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>