<?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 know which instruction is in a Faulting instruction address</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88658/how-to-know-which-instruction-is-in-a-faulting-instruction-address</link><description>Good morning! 
 I am testing an application on Visual Studio Code + nRF Connect. I have a crash: 
 &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0002c064 
 
 How can I know which C instruction or function is in this address? Any of the generated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Jun 2022 22:02:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88658/how-to-know-which-instruction-is-in-a-faulting-instruction-address" /><item><title>RE: How to know which instruction is in a Faulting instruction address</title><link>https://devzone.nordicsemi.com/thread/371512?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 22:02:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdee2c81-c4f5-4624-8528-825a59086b00</guid><dc:creator>David (GrinPass)</dc:creator><description>&lt;p&gt;Hi Depraz!&lt;/p&gt;
&lt;p&gt;Awesome, I got it:&lt;/p&gt;
&lt;p&gt;arm-none-eabi-addr2line.exe -e ./zephyr.elf -a 0x0002c064&lt;br /&gt;0x0002c064&lt;br /&gt;D:/ncs/v1.9.1/zephyr/subsys/logging/log_core.c:126&lt;/p&gt;
&lt;p&gt;I use Windows, and searched for the executable; it&amp;#39;s in&amp;nbsp;.\v1.9.1\toolchain\segger_embedded_studio\gcc\arm-none-eabi\bin&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;David.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know which instruction is in a Faulting instruction address</title><link>https://devzone.nordicsemi.com/thread/371141?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 12:31:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82a6507d-370b-4f3e-9d57-1de0036e75f4</guid><dc:creator>David (GrinPass)</dc:creator><description>&lt;p&gt;Hi Priyanka:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;VS Code:&lt;/p&gt;
&lt;p&gt;Version: 1.67.2 (user setup)&lt;br /&gt;Commit: c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5&lt;br /&gt;date: 2022-05-17T18:15:52.058Z&lt;br /&gt;Electr&amp;oacute;n: 17.4.1&lt;br /&gt;Chromium: 98.0.4758.141&lt;br /&gt;Node.js: 16.13.0&lt;br /&gt;V8: 9.8.177.13-electron.0&lt;br /&gt;OS: Windows_NT x64 10.0.19044&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;nRF Connect SDK:&lt;/p&gt;
&lt;div class="title"&gt;&lt;span class="name clickable" title="Nombre de la extensi&amp;oacute;n"&gt;nRF Connect for VS Code&amp;nbsp;&lt;/span&gt;&lt;code class="version" title="Versi&amp;oacute;n de la extensi&amp;oacute;n"&gt;v2022.6.22&lt;/code&gt;&lt;/div&gt;
&lt;div class="title"&gt;
&lt;div class="subtitle"&gt;
&lt;div class="subtitle-entry"&gt;
&lt;div class="publisher clickable" title="Este editor ha comprobado la propiedad de www.nordicsemi.com"&gt;
&lt;div class="publisher-verified codicon codicon-extensions-verified-publisher"&gt;
&lt;div class="title"&gt;&lt;span class="name clickable" title="Nombre de la extensi&amp;oacute;n"&gt;nRF Connect for VS Code Extension Pack&amp;nbsp;&lt;/span&gt;&lt;code class="version" title="Versi&amp;oacute;n de la extensi&amp;oacute;n"&gt;v2022.5.1&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;code class="version" title="Versi&amp;oacute;n de la extensi&amp;oacute;n"&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="title"&gt;&lt;code class="version" title="Versi&amp;oacute;n de la extensi&amp;oacute;n"&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="title"&gt;&lt;code class="version" title="Versi&amp;oacute;n de la extensi&amp;oacute;n"&gt;I will read your reference. Thank you,&lt;/code&gt;&lt;/div&gt;
&lt;div class="title"&gt;&lt;code class="version" title="Versi&amp;oacute;n de la extensi&amp;oacute;n"&gt;David.&lt;/code&gt;&lt;/div&gt;
&lt;div class="subtitle"&gt;
&lt;div class="subtitle-entry"&gt;
&lt;div class="publisher clickable" title="Este editor ha comprobado la propiedad de www.nordicsemi.com"&gt;
&lt;div class="publisher-verified codicon codicon-extensions-verified-publisher"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know which instruction is in a Faulting instruction address</title><link>https://devzone.nordicsemi.com/thread/371049?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 07:44:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef777c01-9590-4af0-bd6a-d3af488b1c18</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;Which is your VS Code version? and which is you nRF Connect SDK version? Also, it would be helpful to know the entire error message.&lt;/p&gt;
&lt;p&gt;There are few ways to find the &lt;a href="https://stackoverflow.com/questions/55170043/is-there-a-way-to-show-the-faulty-code-line-instead-of-the-memory-address-when-a"&gt;line from the address&lt;/a&gt;, and I guess this could be a query for the VSCode forum.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know which instruction is in a Faulting instruction address</title><link>https://devzone.nordicsemi.com/thread/371047?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 07:41:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac7c81fc-41f6-4d5d-87da-59eb8ce90049</guid><dc:creator>Depraz</dc:creator><description>&lt;p&gt;Hello David, you can use the following command:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/opt/gnuarmemb/bin/arm-none-eabi-addr2line -e /&amp;lt;path to elf&amp;gt;/zephyr.elf -a 0x0002c064&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>