<?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>nrF52840 get disassembled code from hex file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110869/nrf52840-get-disassembled-code-from-hex-file</link><description>Hi, 
 I am using nrf52840, nrf SDK16.0. we have created hex file using embuild. whenever hard fault occurs, we are storing had fault stack details in non-initialized memory. After reset i.e on por we are sending hard fault stack details through Ble. so</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 May 2024 07:59:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110869/nrf52840-get-disassembled-code-from-hex-file" /><item><title>RE: nrF52840 get disassembled code from hex file</title><link>https://devzone.nordicsemi.com/thread/482642?ContentTypeID=1</link><pubDate>Thu, 09 May 2024 07:59:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c13ab878-e96e-4d4b-9ea3-d9bcfd843386</guid><dc:creator>Shreya J B</dc:creator><description>&lt;p&gt;Thank you. we are getting *.elf and&amp;nbsp; *.map file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 get disassembled code from hex file</title><link>https://devzone.nordicsemi.com/thread/481922?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 07:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06b965a5-289a-4b03-9414-eb87969b817b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;embuild should also output the *.elf file and *.map file. If it doesn&amp;#39;t, you need to go over the build configurations. It doesn&amp;#39;t make sense to spend time disassembling and reverse-engineering the hex file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 get disassembled code from hex file</title><link>https://devzone.nordicsemi.com/thread/481921?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 07:24:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3381ab88-51b9-4397-a63a-809ec1f8a980</guid><dc:creator>Shreya J B</dc:creator><description>&lt;p&gt;Hardfault details has the program conter value &amp;amp; complete stack details. Since we have generated the hex file using the embuild tool we need some tool which converts this hex file to code, to know which code caused the hardfault. We tried loading emuild generated hex file into segger tool to get code, but we did not get.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there way to map program counter value to code?, using some tool.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 get disassembled code from hex file</title><link>https://devzone.nordicsemi.com/thread/481912?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 06:50:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aa1a670-53a7-42d3-88e8-0131063671b5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The hex files does not contain debug symbols. Instead, you should be looking at the *.elf and *.map file from your build folder.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 get disassembled code from hex file</title><link>https://devzone.nordicsemi.com/thread/481910?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 06:35:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84bcecd0-fcd0-4b34-ace3-f41e2924f03c</guid><dc:creator>Shreya J B</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;sorry before seeing your reply, I have edited my question and updated more info regarding what we are looking for.&lt;br /&gt;we are storing Hardfault info in non initialsed memory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52840 get disassembled code from hex file</title><link>https://devzone.nordicsemi.com/thread/481909?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 06:28:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7ea61d4-7929-4a9a-b848-1b8cf193ad0e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Shreya,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It depends if this information is stored in the hex file.&amp;nbsp;Does your application store exception info to FLASH?&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></channel></rss>