<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>S32 Design Studio中的主题 Re: Adding .elf files to debug context when using multiple binaries?</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Adding-elf-files-to-debug-context-when-using-multiple-binaries/m-p/704814#M1795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Stan - this definitely works as a temporary solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One important note for anyone following along is that you have to refresh the debug context - not the file explorer context.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Oct 2017 15:08:29 GMT</pubDate>
    <dc:creator>gearhead1107</dc:creator>
    <dc:date>2017-10-27T15:08:29Z</dc:date>
    <item>
      <title>Adding .elf files to debug context when using multiple binaries?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Adding-elf-files-to-debug-context-when-using-multiple-binaries/m-p/704812#M1793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a "mini" bootloader which pulls in a bootloader .bin from another project in S32DS. After making the jump to the application, I naturally don't have any source code to step through since it's not part of the project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I poked around at a few guides, namely this one (&lt;A class="link-titled" href="https://mcuoneclipse.com/2017/01/21/no-source-available-or-how-to-debug-multiple-binaries-with-gdb-and-eclipse/" title="https://mcuoneclipse.com/2017/01/21/no-source-available-or-how-to-debug-multiple-binaries-with-gdb-and-eclipse/"&gt;“No source available”, or how to Debug Multiple Binaries with GDB and Eclipse | MCU on Eclipse&lt;/A&gt;&amp;nbsp;) and in Debug Configurations-&amp;gt; Startup -&amp;gt; GDB run commands I added the following (where 0x10410 is the .text space according to the map file)&lt;BR /&gt;add-symbol-file "[file path]Bootloader_A00.elf" 0x10410&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my debugger console I see the following;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;add-symbol-file "[file path]Bootloader_A00.elf" 0x10410&lt;BR /&gt;add symbol table from file "[file path]Bootloader_A00.elf" at&lt;BR /&gt; .text_addr = 0x10410&lt;BR /&gt;(y or n) [answered Y; input not from terminal]&lt;BR /&gt;Reading symbols from [file path]Bootloader_A00.elf...done.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt; however after the jump to Bootloader, I still get the "no source available for "_binary_C__Users_[myname]_workspaceS32DS_ARM... at [location in bootloader]" "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made sure I'm building in debug, but still can't see my code from the bootloader... any commands that I'm missing here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 23:19:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Adding-elf-files-to-debug-context-when-using-multiple-binaries/m-p/704812#M1793</guid>
      <dc:creator>gearhead1107</dc:creator>
      <dc:date>2017-10-11T23:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding .elf files to debug context when using multiple binaries?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Adding-elf-files-to-debug-context-when-using-multiple-binaries/m-p/704813#M1794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andrew,&lt;/P&gt;&lt;P&gt;Thanks for your question. I've tested this and I've basically reached the same point.&lt;/P&gt;&lt;P&gt;I'd suggest you to&amp;nbsp;rather switch the symbol files via "Debugger Console" / GDB client console as a workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. to load bootloader symbols type the command below into GDB client console:&lt;/P&gt;&lt;P&gt;symbol-file &amp;lt;Path_to_your_BL_elf&amp;gt;\S32K144_bootloader.elf -readnow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_14.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8684i7412F1F8CD6B44C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_14.png" alt="pastedImage_14.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;* refresh the IDE (menu File -&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_13.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8645i5472DD4D5383D9AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_13.png" alt="pastedImage_13.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and now the bootloader sources/symbols are available:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_20.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8210iB2A4C541275F35E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_20.png" alt="pastedImage_20.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;repeat the steps for the application symbol-file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_21.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8857i2013924CC5317449/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_21.png" alt="pastedImage_21.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime I'll check with our debugger team what might be wrong with add-symbol-file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 14:56:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Adding-elf-files-to-debug-context-when-using-multiple-binaries/m-p/704813#M1794</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2017-10-26T14:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding .elf files to debug context when using multiple binaries?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Adding-elf-files-to-debug-context-when-using-multiple-binaries/m-p/704814#M1795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Stan - this definitely works as a temporary solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One important note for anyone following along is that you have to refresh the debug context - not the file explorer context.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 15:08:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Adding-elf-files-to-debug-context-when-using-multiple-binaries/m-p/704814#M1795</guid>
      <dc:creator>gearhead1107</dc:creator>
      <dc:date>2017-10-27T15:08:29Z</dc:date>
    </item>
  </channel>
</rss>

