<?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>topic Re: i.MX6 u-boot.bin and JTAG in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-u-boot-bin-and-JTAG/m-p/631466#M96011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; You may look at the following Community post :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-332406"&gt;How to Use Trace32 to Run U-boot in the i.MX6Q SABRE Platform&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Also, I sent You document ;&amp;nbsp; hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Have a great day,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Yuri&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Note: If this post answers your question, please click the Correct &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Answer button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Mar 2017 02:29:47 GMT</pubDate>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2017-03-13T02:29:47Z</dc:date>
    <item>
      <title>i.MX6 u-boot.bin and JTAG</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-u-boot-bin-and-JTAG/m-p/631465#M96010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to load u-boot onto an i.MX6DL board via JTAG without using any other peripherals (ie, USB, SD card, etc). &amp;nbsp;I am using an ARM DSTREAM JTAG debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the past, I was able to do this with u-boot 2009.08 using the u-boot elf file. &amp;nbsp;I would do the following:&lt;/P&gt;&lt;P&gt;1. Connect to board with JTAG&lt;/P&gt;&lt;P&gt;2. Load DDR .ds script to initialize DDR registers&lt;/P&gt;&lt;P&gt;3. Load the u-boot ELF file&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Start the debugger&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. Board would boot that loaded u-boot out of memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try with the current version of u-boot 2016.03, DSTREAM won't even load the u-boot elf file properly. Something has changed in u-boot since 2009 and they use some ELF headers that prevents debuggers from loading the ELF file properly. &amp;nbsp;So now I am trying to use the "restore" command in DSTREAM to load u-boot. &amp;nbsp;The procedure I'm tying is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Connect to board with JTAG&lt;/P&gt;&lt;P&gt;2. Load DDR .ds script to initialize DDR registers&lt;/P&gt;&lt;P&gt;3. Execute the following commands on debugger to load u-boot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# disable IRQs, MMU and cache&lt;/P&gt;&lt;P&gt;set var $Core::$CPSR.I = 0x1&lt;BR /&gt;set var $Core::$CPSR.F = 0x1&lt;BR /&gt;set var $CP15::$SBanked::$S_SCTLR.M = 0&lt;BR /&gt;set var $CP15::$SBanked::$S_SCTLR.C = 0&lt;/P&gt;&lt;P&gt;# Load binary into memory&lt;/P&gt;&lt;P&gt;restore u-boot.bin binary 0x17800000&lt;/P&gt;&lt;P&gt;# load symbols&lt;BR /&gt;add-symbol-file u-boot SP:0x0&lt;/P&gt;&lt;P&gt;# set PC&lt;BR /&gt;set var $PC = 0x17800000&lt;BR /&gt;set debug-from *0x17800000&lt;/P&gt;&lt;P&gt;4. Start the debugger&lt;/P&gt;&lt;P&gt;5. u-boot does not&amp;nbsp;start&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming NXP uses DSTREAM debuggers to do this, so if anyone can point out what I'm doing wrong I would appreciate&amp;nbsp;it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 19:33:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-u-boot-bin-and-JTAG/m-p/631465#M96010</guid>
      <dc:creator>chris_c</dc:creator>
      <dc:date>2017-03-07T19:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 u-boot.bin and JTAG</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-u-boot-bin-and-JTAG/m-p/631466#M96011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; You may look at the following Community post :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-332406"&gt;How to Use Trace32 to Run U-boot in the i.MX6Q SABRE Platform&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Also, I sent You document ;&amp;nbsp; hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Have a great day,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Yuri&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Note: If this post answers your question, please click the Correct &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Answer button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 02:29:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-u-boot-bin-and-JTAG/m-p/631466#M96011</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2017-03-13T02:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 u-boot.bin and JTAG</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-u-boot-bin-and-JTAG/m-p/631467#M96012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to resolve my own issue by turning off the Thumb instruction set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 13:58:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-u-boot-bin-and-JTAG/m-p/631467#M96012</guid>
      <dc:creator>chris_c</dc:creator>
      <dc:date>2017-03-13T13:58:57Z</dc:date>
    </item>
  </channel>
</rss>

