<?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>P-SeriesのトピックAttach debugger to elf file in u-boot.</title>
    <link>https://community.nxp.com/t5/P-Series/Attach-debugger-to-elf-file-in-u-boot/m-p/820431#M4535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to attach the CodeWarrior debugger to an elf file loaded&amp;nbsp;into RAM through u-boot on a P1021.&lt;/P&gt;&lt;P&gt;First I have the debugger&amp;nbsp;attached using the CodeWarrior TAP JTAG:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/68657iE5C44550276E6B14/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next I load the elf in uboot over TFTP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/68704i99E3C0FCCF34EA88/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go 0x1001b1c (where my __start is located at)&lt;/P&gt;&lt;P&gt;My program runs but the debugger never breaks :smileysad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/68792iF5DC58B4B393A1B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can get the attached debugger to break upon entering the execution?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2018 18:28:54 GMT</pubDate>
    <dc:creator>zwilcox</dc:creator>
    <dc:date>2018-09-12T18:28:54Z</dc:date>
    <item>
      <title>Attach debugger to elf file in u-boot.</title>
      <link>https://community.nxp.com/t5/P-Series/Attach-debugger-to-elf-file-in-u-boot/m-p/820431#M4535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to attach the CodeWarrior debugger to an elf file loaded&amp;nbsp;into RAM through u-boot on a P1021.&lt;/P&gt;&lt;P&gt;First I have the debugger&amp;nbsp;attached using the CodeWarrior TAP JTAG:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/68657iE5C44550276E6B14/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next I load the elf in uboot over TFTP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/68704i99E3C0FCCF34EA88/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go 0x1001b1c (where my __start is located at)&lt;/P&gt;&lt;P&gt;My program runs but the debugger never breaks :smileysad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/68792iF5DC58B4B393A1B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can get the attached debugger to break upon entering the execution?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 18:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Attach-debugger-to-elf-file-in-u-boot/m-p/820431#M4535</guid>
      <dc:creator>zwilcox</dc:creator>
      <dc:date>2018-09-12T18:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Attach debugger to elf file in u-boot.</title>
      <link>https://community.nxp.com/t5/P-Series/Attach-debugger-to-elf-file-in-u-boot/m-p/820432#M4536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="319604" data-username="zwilcox" href="https://community.nxp.com/people/zwilcox"&gt;Zachary Wilcox&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could refer to the procedure of debugging Linux Kernel, please refer to the section "3.1 Debugging Linux Kernel at the entry point" in &lt;A href="https://community.nxp.com/docs/DOC-331989"&gt;Debugging Linux Kernel with CodeWarrior for PA&lt;/A&gt; to set breakpoint at the entry point, boot your program and stop it at the entry point, then continue to debug your program before and after the MMU is enabled.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Sep 2018 12:27:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Attach-debugger-to-elf-file-in-u-boot/m-p/820432#M4536</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2018-09-15T12:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Attach debugger to elf file in u-boot.</title>
      <link>https://community.nxp.com/t5/P-Series/Attach-debugger-to-elf-file-in-u-boot/m-p/820433#M4537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you sir.&amp;nbsp; That did the trick.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 22:14:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Attach-debugger-to-elf-file-in-u-boot/m-p/820433#M4537</guid>
      <dc:creator>zwilcox</dc:creator>
      <dc:date>2018-09-18T22:14:22Z</dc:date>
    </item>
  </channel>
</rss>

