<?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: Booting u-boot using jtag not working in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Booting-u-boot-using-jtag-not-working/m-p/1083536#M158957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Almaz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;recommended to use BOOT_MODE[1:0]=01 Serial Downloader&lt;/P&gt;&lt;P&gt;for jtag connection.&lt;/P&gt;&lt;P&gt;Reason for errors may be similar to described on arm forums, like:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://community.arm.com/developer/tools-software/tools/f/armds-forum/4394/bare-metal-debug---interrupt-error-tad9-nal52-unable-to-stop-device-cortex-a9/11171#11171" title="https://community.arm.com/developer/tools-software/tools/f/armds-forum/4394/bare-metal-debug---interrupt-error-tad9-nal52-unable-to-stop-device-cortex-a9/11171#11171"&gt;Bare Metal Debug !! - interrupt ERROR(TAD9-NAL52):&amp;nbsp; ! Unable to stop device Cortex-A9 ! - Arm Development Studio forum -…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Wed, 13 May 2020 23:08:47 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2020-05-13T23:08:47Z</dc:date>
    <item>
      <title>Booting u-boot using jtag not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Booting-u-boot-using-jtag-not-working/m-p/1083534#M158955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Have custom pcb based on IMX6ULL.&lt;/P&gt;&lt;P&gt;Current state of &lt;SPAN&gt;BOOT_MODE[1:0] pins is 10b&lt;/SPAN&gt;. ECSPI3 selected as boot interface&amp;nbsp;by&amp;nbsp;GPIO boot override pins&lt;/P&gt;&lt;P&gt;After powering it starts to load from SPI flash IC as expected.&lt;/P&gt;&lt;P&gt;OpenOCD on JTAG interface works well. There are no errors on running following commands:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;reset init; arm core_state arm; halt&lt;/P&gt;&lt;P&gt;load_image u_boot.imx 0x877ff400&lt;/P&gt;&lt;P&gt;resume 0x87800000&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we&amp;nbsp;are developing mass production script to&amp;nbsp;burn&amp;nbsp;fuse bits.&lt;/P&gt;&lt;P&gt;Step 1&amp;nbsp;- u-boot image to be loaded via jtag using command above;&lt;/P&gt;&lt;P&gt;Step 2 - fuse bits buring from u-boot command line;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But we have lot of errors on jtag interface in a case of&amp;nbsp;BOOT_MODE0 and BOOT_MODE1 both&amp;nbsp;pulled down, e.g.&amp;nbsp;BOOT_MODE[1:0] = 00b:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&amp;gt; reset init; arm core_state arm; halt&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;adapter speed: 2000 kHz&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;JTAG scan chain interrogation failed: all zeroes&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Check JTAG interface, timings, target power, etc.&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Trying to use configured scan chain anyway...&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;imx6ull.dapA7: IR capture error; saw 0x0f not 0x01&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Bypassing JTAG setup events due to errors&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Reseting ....&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;imx6ull.cpu.0: ran after reset and before halt ...&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;target halted in Thumb state due to debug-request, current mode: Supervisor&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;cpsr: 0x400001f3 pc: 0x00008890&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;MMU: disabled, D-Cache: disabled, I-Cache: enabled&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;core state: ARM&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Polling target imx6ull.cpu.0 failed, trying to reexamine&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;imx6ull.cpu.0: hardware has 6 breakpoints, 4 watchpoints&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #333333; background-color: #ffffff;"&gt;&amp;gt; load_image u-boot.imx 0x877ff400&lt;BR /&gt;DAP transaction stalled (WAIT) - slowing down&lt;BR /&gt;Timeout during WAIT recovery&lt;BR /&gt;Failed to write memory at 0x80070080&lt;BR /&gt;JTAG-DP STICKY ERROR&lt;BR /&gt;JTAG-DP STICKY ERROR&lt;BR /&gt;Could not read DSCR register&lt;BR /&gt;JTAG-DP STICKY ERROR&lt;BR /&gt;Could not read DSCR register&lt;/DIV&gt;&lt;DIV style="color: #333333; background-color: #ffffff;"&gt;JTAG-DP STICKY ERROR&lt;BR /&gt;Polling target imx6ull.cpu.0 failed, trying to reexamine&lt;BR /&gt;JTAG-DP STICKY ERROR&lt;BR /&gt;Could not initialize the APB-AP&lt;BR /&gt;Examination failed, GDB will be halted. Polling again in 100ms&lt;BR /&gt;JTAG-DP STICKY ERROR&lt;BR /&gt;Polling target imx6ull.cpu.0 failed, trying to reexamine&lt;BR /&gt;JTAG-DP STICKY ERROR&lt;BR /&gt;Could not initialize the APB-AP&lt;BR /&gt;Examination failed, GDB will be halted. Polling again in 300ms&lt;BR /&gt;JTAG-DP STICKY ERROR&lt;BR /&gt;Polling target imx6ull.cpu.0 failed, trying to reexamine&lt;BR /&gt;JTAG-DP STICKY ERROR&lt;BR /&gt;Could not initialize the APB-AP&lt;BR /&gt;Examination failed, GDB will be halted. Polling again in 700ms&lt;BR /&gt;JTAG-DP STICKY ERROR&lt;BR /&gt;Polling target imx6ull.cpu.0 failed, trying to reexamine&lt;BR /&gt;JTAG-DP STICKY ERROR&lt;BR /&gt;Could not initialize the APB-AP&lt;BR /&gt;Examination failed, GDB will be halted. Polling again in 1500ms&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What did I miss? Why does it works when u-boot already booted from SPI IC?&lt;/P&gt;&lt;P&gt;JTAG_MOD pulled up to 3.3V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 17:04:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Booting-u-boot-using-jtag-not-working/m-p/1083534#M158955</guid>
      <dc:creator>almaz1c</dc:creator>
      <dc:date>2020-05-13T17:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Booting u-boot using jtag not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Booting-u-boot-using-jtag-not-working/m-p/1083535#M158956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same with JLINK.exe:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;PS C:\Program Files (x86)\SEGGER\JLink_V630f&amp;gt; .\JLink.exe -AutoConnect 1 -Device MCIMX6Y2 -If JTAG -Speed 400 -JTAGConf -1,-1 -JLinkScriptFile .\Devices\NXP\iMX6UL\NXP_iMX6ULL.JLinkScript&lt;BR /&gt;SEGGER J-Link Commander V6.30f (Compiled Mar 2 2018 17:29:33)&lt;BR /&gt;DLL version V6.30f, compiled Mar 2 2018 17:29:18&lt;/P&gt;&lt;P&gt;Connecting to J-Link via USB...O.K.&lt;BR /&gt;Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46&lt;BR /&gt;Hardware version: V8.00&lt;BR /&gt;S/N: -1&lt;BR /&gt;License(s): RDI,FlashDL,FlashBP,JFlash,GDB&lt;BR /&gt;VTref = 3.267V&lt;BR /&gt;Device "MCIMX6Y2" selected.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Connecting to target via JTAG&lt;BR /&gt;J-Link script: Setting up AP map&lt;BR /&gt;TotalIRLen = 13, IRPrint = 0x0101&lt;/P&gt;&lt;P&gt;**************************&lt;BR /&gt;WARNING: At least one of the connected devices is not JTAG compliant (IEEE Std 1149.1, 7.1.1.d, IR-cells). (NumDevices = 3, NumBitsSet = 2)&lt;/P&gt;&lt;P&gt;**************************&lt;/P&gt;&lt;P&gt;JTAG chain detection found 3 devices:&lt;BR /&gt; #0 Id: 0x5BA00477, IRLen: 04, CoreSight JTAG-DP&lt;BR /&gt; #1 Id: 0x00000001, IRLen: 05, Unknown device&lt;BR /&gt; #2 Id: 0x088C101D, IRLen: 04, JTAG-DP&lt;BR /&gt;AP map detection skipped. Manually configured AP map found.&lt;BR /&gt;AP[0]: AHB-AP (IDR: Not set)&lt;BR /&gt;AP[1]: APB-AP (IDR: Not set)&lt;BR /&gt;Using preconfigured AP[1] as APB-AP&lt;BR /&gt;AP[1]: APB-AP found&lt;BR /&gt;ROMTbl[0][0]: CompAddr: 80001000 CID: B105900D, PID:04-001BB961 TMC&lt;BR /&gt;ROMTbl[0][1]: CompAddr: 80002000 CID: B105900D, PID:04-004BB906 CTI&lt;BR /&gt;ROMTbl[0][2]: CompAddr: 80003000 CID: B105900D, PID:04-004BB912 TPIU&lt;BR /&gt;ROMTbl[0][3]: CompAddr: 80004000 CID: B105F00D, PID:04-001BB101 TSG&lt;BR /&gt;ROMTbl[0][4]: CompAddr: 80020000 CID: B105100D, PID:04-000BB4A7 ROM Table&lt;BR /&gt;ROMTbl[1][0]: CompAddr: 80030000 CID: B105900D, PID:04-005BBC07 Cortex-A7&lt;BR /&gt;Found Cortex-A7 r0p5&lt;BR /&gt;6 code breakpoints, 4 data breakpoints&lt;BR /&gt;Debug architecture ARMv7.1&lt;BR /&gt;Data endian: little&lt;BR /&gt;Main ID register: 0x410FC075&lt;BR /&gt;I-Cache L1: 32 KB, 512 Sets, 32 Bytes/Line, 2-Way&lt;BR /&gt;D-Cache L1: 32 KB, 128 Sets, 64 Bytes/Line, 4-Way&lt;BR /&gt;Unified-Cache L2: 128 KB, 256 Sets, 64 Bytes/Line, 8-Way&lt;BR /&gt;System control register:&lt;BR /&gt; Instruction endian: little&lt;BR /&gt; Level-1 instruction cache enabled&lt;BR /&gt; Level-1 data cache disabled&lt;BR /&gt; MMU disabled&lt;BR /&gt; Branch prediction enabled&lt;BR /&gt;Cortex-A7 identified.&lt;BR /&gt;J-Link&amp;gt;loadfile u-boot.bin 0x877ff400&lt;BR /&gt;Downloading file [u-boot.bin]...&lt;BR /&gt;Writing target memory failed.&lt;BR /&gt;J-Link&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can load file to&amp;nbsp;&lt;SPAN&gt;0x8000000:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;J-Link&amp;gt;loadfile u-boot.bin 0x8000000&lt;BR /&gt;Downloading file [u-boot.bin]...&lt;BR /&gt;O.K.&lt;BR /&gt;J-Link&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 17:57:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Booting-u-boot-using-jtag-not-working/m-p/1083535#M158956</guid>
      <dc:creator>almaz1c</dc:creator>
      <dc:date>2020-05-13T17:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Booting u-boot using jtag not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Booting-u-boot-using-jtag-not-working/m-p/1083536#M158957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Almaz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;recommended to use BOOT_MODE[1:0]=01 Serial Downloader&lt;/P&gt;&lt;P&gt;for jtag connection.&lt;/P&gt;&lt;P&gt;Reason for errors may be similar to described on arm forums, like:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://community.arm.com/developer/tools-software/tools/f/armds-forum/4394/bare-metal-debug---interrupt-error-tad9-nal52-unable-to-stop-device-cortex-a9/11171#11171" title="https://community.arm.com/developer/tools-software/tools/f/armds-forum/4394/bare-metal-debug---interrupt-error-tad9-nal52-unable-to-stop-device-cortex-a9/11171#11171"&gt;Bare Metal Debug !! - interrupt ERROR(TAD9-NAL52):&amp;nbsp; ! Unable to stop device Cortex-A9 ! - Arm Development Studio forum -…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Wed, 13 May 2020 23:08:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Booting-u-boot-using-jtag-not-working/m-p/1083536#M158957</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-05-13T23:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Booting u-boot using jtag not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Booting-u-boot-using-jtag-not-working/m-p/1083537#M158958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;finally got it working by using openOCD. The problem was IMX6ULL header file was not included in openOCD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 18:42:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Booting-u-boot-using-jtag-not-working/m-p/1083537#M158958</guid>
      <dc:creator>almaz1c</dc:creator>
      <dc:date>2020-05-27T18:42:45Z</dc:date>
    </item>
  </channel>
</rss>

