<?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>Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17585/debugging-dfu-in-iar---sdk12</link><description>I am trying to debug the DFU in IAR. I realize I will have to turn optimization off and grow the flash size in the linker file. However, when flashing as is I get the following error: 
 Mon Nov 07, 2016 12:36:35: ELF/DWARF Error: Unsupported .debug_info</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 25 Aug 2018 13:48:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17585/debugging-dfu-in-iar---sdk12" /><item><title>RE: Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/thread/145760?ContentTypeID=1</link><pubDate>Sat, 25 Aug 2018 13:48:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67ff039c-d4d0-4922-8591-c53b8033ecbb</guid><dc:creator>Alex_Golubev</dc:creator><description>&lt;p&gt;I have the same error.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2742.5.png" /&gt;&lt;/p&gt;
&lt;p&gt;How to solve this problem?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/thread/67609?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2017 09:58:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:396c1399-5d0a-4642-b7ac-ce300d8aa902</guid><dc:creator>Gz</dc:creator><description>&lt;p&gt;Hi,
My problem is same as you Ben, I remove the directory which named nRF_micro_ecc and add the micro_ecc_lib_nrf52.a through Option-&amp;gt;Linker-&amp;gt;Library.&lt;/p&gt;
&lt;p&gt;I guess maybe the IAR can not debug with *.a file in the project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/thread/67605?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 12:09:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cb86bc8-4209-40fa-9731-302fc75791f7</guid><dc:creator>artis</dc:creator><description>&lt;p&gt;I had the same problem using:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;IAR 7.20.2&lt;/li&gt;
&lt;li&gt;gcc 4.9 2015q3 (to compile micro-ecc)&lt;/li&gt;
&lt;li&gt;SDK12.1.0&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Using the -gdwarf-3 and -gdwarf-2 options in the micro-rcc Makefile did not help. But the remark about not generating debug information did give me a clue. I removed the -g3 option from the micro-ecc Makefile and it compiles/loads in IAR without problems. The advantage is that I still have debug information from the dfu software itself. Only the micro-ecc part is without debug indormation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/thread/67604?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 14:22:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:588e85c0-0885-49c1-9bdc-efee401010f9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;@max, we have managed to reproduce this with IAR v.7.80.4, and have reported this to IAR. A workaround that was suggested was to  disable  the &amp;quot;Include debug information in output&amp;quot; option in Project &amp;gt; Options &amp;gt; Linker &amp;gt; Output. Unfortunately, debugging gets quite limited with this disabled. An alternative is to use the &lt;a href="https://www.segger.com/ozone.html"&gt;&lt;strong&gt;Segger Ozone&lt;/strong&gt;&lt;/a&gt; debugger together  with the output file from IAR. Just make sure that the &amp;quot;generate debug information&amp;quot; option in Project &amp;gt; Options &amp;gt; C/C++ Compiler &amp;gt; Output is enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/thread/67601?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2017 12:04:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f80193d-4665-4f51-a291-c634ff973963</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Try with the -gdwarf-2 flag.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/thread/67602?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2017 12:03:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e53d9c2-54ca-4ab2-a537-93255bc97c46</guid><dc:creator>max</dc:creator><description>&lt;p&gt;It is not worked, i tried &amp;quot;ELF/DWARF Error: Unexpected exception&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/thread/67603?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2017 09:23:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cd48bb9-634d-4c16-8b5f-ba477d67f445</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi max, you need to compile the ECC lib with  -gdwarf-3 flag. Put it into the ecc makefile.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/thread/67600?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2017 14:27:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf639166-0017-4290-9f90-e029ba2d87b5</guid><dc:creator>max</dc:creator><description>&lt;p&gt;my IAR 7.8.2 maybe it is a problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/thread/67599?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2017 14:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a60a7a4d-89d4-4cd7-b3ed-5de7d286a678</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;We tried here with SDK 12.2.0, PCA10040, IAR 7.50.3 but it worked fine.
Would it be similar bug to &lt;a href="http://forum.segger.com/index.php?page=Thread&amp;amp;threadID=1640"&gt;this&lt;/a&gt; ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/thread/67597?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 09:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18a25ac0-1bd4-4170-81bd-7118c1708f5b</guid><dc:creator>max</dc:creator><description>&lt;p&gt;I try , still have an error:Tue Jan 17, 2017 11:20:51: ELF/DWARF Error: Unexpected exception&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/thread/67608?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 08:30:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffaee9ab-273b-42e7-b1e8-def7d202f8c8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@All: Please try to add &lt;code&gt;-gdwarf-3&lt;/code&gt; to the list of compiler flags and let me know if it fixes the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/thread/67598?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 09:15:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc944063-865a-445c-9665-777012a49cf2</guid><dc:creator>max</dc:creator><description>&lt;p&gt;I have the same problem on DFU_secure _debug in sdk 12.2.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/thread/67607?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2016 09:07:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc938e7d-9f3f-4abf-9829-ab47b8ff4e94</guid><dc:creator>Andromer</dc:creator><description>&lt;p&gt;Do you use IAR and GCC together?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/thread/67596?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2016 00:54:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42856f1b-5249-40fc-be26-33bb7b3e7926</guid><dc:creator>Andromer</dc:creator><description>&lt;p&gt;I have same error appears when debugging the ble_app_multirole_lesc example in SDK 12.2.0 from IAR. Can you update the question status?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/thread/67595?ContentTypeID=1</link><pubDate>Sun, 25 Dec 2016 14:55:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00edba2f-adae-4bd9-beba-b4e1f2a03a01</guid><dc:creator>AnnaSBX</dc:creator><description>&lt;p&gt;Hi, Do you successed to solve the error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging DFU in IAR - SDK12</title><link>https://devzone.nordicsemi.com/thread/67606?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2016 19:49:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db9d14dd-e721-4966-bc04-a49d1a727b26</guid><dc:creator>malchowb</dc:creator><description>&lt;p&gt;I think I got it.  I had to add a flag in the makefile:
-gdwarf-2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>