<?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: Can't debug u-boot nor linux via JTAG in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-debug-u-boot-nor-linux-via-JTAG/m-p/620126#M94000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seemed that the problem was with the GDB init script. A good tutorial can be found here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://boundarydevices.com/debugging-using-segger-j-link-jtag/" title="https://boundarydevices.com/debugging-using-segger-j-link-jtag/"&gt;Debugging using Segger J-Link JTAG - Boundary Devices&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Dec 2016 16:00:51 GMT</pubDate>
    <dc:creator>jeroenvanderlaa</dc:creator>
    <dc:date>2016-12-19T16:00:51Z</dc:date>
    <item>
      <title>Can't debug u-boot nor linux via JTAG</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-debug-u-boot-nor-linux-via-JTAG/m-p/620124#M93998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't seem to debug my bootloader nor the linux kernel via JTAG. Both on my custom board as on the MXSabreSD. I'm using a j-link Base from Segger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have started the J-Link GDB Server with the the following command:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;JLinkGDBServer -device MCIMX6S4 -scriptfile IMX6SoloX_Connect_CortexA9.JLinkScript -speed auto -ir&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The output of the GDB server is as follows:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;SEGGER J-Link GDB Server V6.10i Command Line Version&lt;/P&gt;&lt;P&gt;JLinkARM.dll V6.10i (DLL compiled Oct 25 2016 19:26:37)&lt;/P&gt;&lt;P&gt;-----GDB Server start settings-----&lt;BR /&gt;GDBInit file: none&lt;BR /&gt;GDB Server Listening port: 2331&lt;BR /&gt;SWO raw output listening port: 2332&lt;BR /&gt;Terminal I/O port: 2333&lt;BR /&gt;Accept remote connection: yes&lt;BR /&gt;Generate logfile: off&lt;BR /&gt;Verify download: off&lt;BR /&gt;Init regs on start: on&lt;BR /&gt;Silent mode: off&lt;BR /&gt;Single run mode: off&lt;BR /&gt;Target connection timeout: 0 ms&lt;BR /&gt;------J-Link related settings------&lt;BR /&gt;J-Link Host interface: USB&lt;BR /&gt;J-Link script: IMX6SoloX_Connect_CortexA9.JLinkScript&lt;BR /&gt;J-Link settings file: none&lt;BR /&gt;------Target related settings------&lt;BR /&gt;Target device: MCIMX6S4&lt;BR /&gt;Target interface: JTAG&lt;BR /&gt;Target interface speed: auto&lt;BR /&gt;Target endian: little&lt;/P&gt;&lt;P&gt;Connecting to J-Link...&lt;BR /&gt;J-Link is connected.&lt;BR /&gt;Firmware: J-Link V10 compiled Sep 1 2016 18:29:58&lt;BR /&gt;Hardware: V10.10&lt;BR /&gt;S/N: 50102046&lt;BR /&gt;Feature(s): GDB&lt;BR /&gt;Checking target voltage...&lt;BR /&gt;Target voltage: 3.32 V&lt;BR /&gt;Listening on TCP/IP port 2331&lt;BR /&gt;Connecting to target...WARNING: At least one of the connected devices is not JTAG compliant (IEEE Std 1149.1, 7.1.1.d, IR-cells). (NumDevices = 4, NumBitsSet = 3)&lt;/P&gt;&lt;P&gt;WARNING: At least one of the connected devices is not JTAG compliant (IEEE Std 1149.1, 7.1.1.d, IR-cells). (NumDevices = 4, NumBitsSet = 3)&lt;/P&gt;&lt;P&gt;WARNING: At least one of the connected devices is not JTAG compliant (IEEE Std 1149.1, 7.1.1.d, IR-cells). (NumDevices = 4, NumBitsSet = 3)&lt;/P&gt;&lt;P&gt;WARNING: At least one of the connected devices is not JTAG compliant (IEEE Std 1149.1, 7.1.1.d, IR-cells). (NumDevices = 4, NumBitsSet = 3)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;J-Link found 4 JTAG devices, Total IRLen = 17&lt;BR /&gt;JTAG ID: 0x4BA00477 (Cortex-A9)&lt;BR /&gt;Connected to target&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Whenever I try to connect with a remote session I get the following warnings:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Waiting for GDB connection...Connected to 127.0.0.1&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00000000 (Data = 0xE59FF01C)&lt;BR /&gt;WARNING: Failed to read memory @ address 0xFFFFFFFC&lt;BR /&gt;WARNING: Failed to read memory @ address 0x00000000&lt;BR /&gt;WARNING: Failed to read memory @ address 0xFFFFFFFC&lt;BR /&gt;WARNING: Failed to read memory @ address 0x00000000&lt;BR /&gt;WARNING: Failed to read memory @ address 0xFFFFFFFE&lt;BR /&gt;WARNING: Failed to read memory @ address 0xFFFFFFFC&lt;BR /&gt;WARNING: Failed to read memory @ address 0x00000000&lt;BR /&gt;WARNING: Failed to read memory @ address 0xFFFFFFFE&lt;BR /&gt;WARNING: Failed to read memory @ address 0xFFFFFFFC&lt;BR /&gt;WARNING: Failed to read memory @ address 0x00000000&lt;BR /&gt;WARNING: Failed to read memory @ address 0xFFFFFFFC&lt;BR /&gt;WARNING: Failed to read memory @ address 0x00000000&lt;BR /&gt;WARNING: Failed to read memory @ address 0xFFFFFFFC&lt;BR /&gt;WARNING: Failed to read memory @ address 0x00000000&lt;BR /&gt;WARNING: Failed to read memory @ address 0x00000000&lt;BR /&gt;WARNING: Failed to read memory @ address 0x00000000&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The downloading goes well when I perform a load from the local gdb session. But I get the same warnings at the end.&lt;/P&gt;&lt;P&gt;When I try to run the executable I get the following on the server:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Starting target CPU...&lt;BR /&gt;ERROR: Could not start CPU core. (ErrorCode: -1)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I can't seem to find what I'm doing wrong. Can anybody help me with this problem?&lt;/P&gt;&lt;P&gt;An openocd solution is also ok as long as I can use GDB for debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jeroen van der Laan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 14:55:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-debug-u-boot-nor-linux-via-JTAG/m-p/620124#M93998</guid>
      <dc:creator>jeroenvanderlaa</dc:creator>
      <dc:date>2016-12-16T14:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't debug u-boot nor linux via JTAG</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-debug-u-boot-nor-linux-via-JTAG/m-p/620125#M93999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeroen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for connection to i.MX6SX please try segger suggestions on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://forum.segger.com/index.php?page=Thread&amp;amp;threadID=2604" title="http://forum.segger.com/index.php?page=Thread&amp;amp;threadID=2604"&gt;[SOLVED] Freescale IMX6SoloX support - J-Link/Flasher related - SEGGER 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>Mon, 19 Dec 2016 05:46:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-debug-u-boot-nor-linux-via-JTAG/m-p/620125#M93999</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-12-19T05:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can't debug u-boot nor linux via JTAG</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-debug-u-boot-nor-linux-via-JTAG/m-p/620126#M94000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seemed that the problem was with the GDB init script. A good tutorial can be found here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://boundarydevices.com/debugging-using-segger-j-link-jtag/" title="https://boundarydevices.com/debugging-using-segger-j-link-jtag/"&gt;Debugging using Segger J-Link JTAG - Boundary Devices&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 16:00:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-debug-u-boot-nor-linux-via-JTAG/m-p/620126#M94000</guid>
      <dc:creator>jeroenvanderlaa</dc:creator>
      <dc:date>2016-12-19T16:00:51Z</dc:date>
    </item>
  </channel>
</rss>

