<?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: OpenOCD Problem i.MX6 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/OpenOCD-Problem-i-MX6/m-p/229334#M16922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have "solved" the Problem! I removed the RESET wire between openocd-usb and the target board. Now i have basic jtag access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaTT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2013 13:17:46 GMT</pubDate>
    <dc:creator>matthiasniederm</dc:creator>
    <dc:date>2013-04-03T13:17:46Z</dc:date>
    <item>
      <title>OpenOCD Problem i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/OpenOCD-Problem-i-MX6/m-p/229332#M16920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have a "SABRE Board for Smart Devices Based on the i.MX 6 Series". And I tried to get OpenOCD to work with it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is my OpenOCD configuration file for the i.MX6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13636165285234934" jivemacro_uid="_13636165285234934"&gt;
&lt;P&gt;# Freescale i.MX6 series single/dual/quad core processor&lt;/P&gt;
&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13636165470507363" jivemacro_uid="_13636165470507363"&gt;
&lt;P&gt;if { [info exists CHIPNAME] } {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; set _CHIPNAME $CHIPNAME&lt;/P&gt;
&lt;P&gt;} else {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; set _CHIPNAME imx6&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# CoreSight Debug Access Port&lt;/P&gt;
&lt;P&gt;if { [info exists DAP_TAPID] } {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; set _DAP_TAPID $DAP_TAPID&lt;/P&gt;
&lt;P&gt;} else {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; set _DAP_TAPID 0x4ba00477&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x01 -irmask 0x0f \&lt;/P&gt;
&lt;P&gt;&amp;nbsp; -expected-id $_DAP_TAPID&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# SDMA / no IDCODE&lt;/P&gt;
&lt;P&gt;jtag newtap $_CHIPNAME sdma -irlen 4 -ircapture 0x00 -irmask 0x0f&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# System JTAG Controller&lt;/P&gt;
&lt;P&gt;if { [info exists SJC_TAPID] } {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; set _SJC_TAPID SJC_TAPID&lt;/P&gt;
&lt;P&gt;} else {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; set _SJC_TAPID 0x0191c01d&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;set _SJC_TAPID2 0x2191c01d&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;jtag newtap $_CHIPNAME sjc -irlen 5 -ircapture 0x01 -irmask 0x1f \&lt;/P&gt;
&lt;P&gt;&amp;nbsp; -expected-id $_SJC_TAPID -expected-id $_SJC_TAPID2&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# GDB target: Cortex-A9, using DAP, configuring only one core&lt;/P&gt;
&lt;P&gt;# Base addresses of cores:&lt;/P&gt;
&lt;P&gt;# core 0 - 0x82150000&lt;/P&gt;
&lt;P&gt;# core 1 - 0x82152000&lt;/P&gt;
&lt;P&gt;# core 2 - 0x82154000&lt;/P&gt;
&lt;P&gt;# core 3 - 0x82156000&lt;/P&gt;
&lt;P&gt;set _TARGETNAME $_CHIPNAME.cpu.0&lt;/P&gt;
&lt;P&gt;target create $_TARGETNAME cortex_a8 -chain-position $_CHIPNAME.dap \&lt;/P&gt;
&lt;P&gt;&amp;nbsp; -coreid 0 -dbgbase 0x82150000&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# some TCK cycles are required to activate the DEBUG power domain&lt;/P&gt;
&lt;P&gt;jtag configure $_CHIPNAME.sjc -event post-reset "runtest 100"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;proc imx6_dbginit {target} {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; # General Cortex A8/A9 debug initialisation&lt;/P&gt;
&lt;P&gt;&amp;nbsp; cortex_a8 dbginit&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Slow speed to be sure it will work&lt;/P&gt;
&lt;P&gt;jtag_rclk 1000&lt;/P&gt;
&lt;P&gt;$_TARGETNAME configure -event reset-start { jtag_rclk 1000 }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;$_TARGETNAME configure -event reset-assert-post "imx6_dbginit $_TARGETNAME"&lt;/P&gt;
&lt;P&gt;$_TARGETNAME configure -event gdb-attach { halt }&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the openocd-usb-hs adapter from embedded-projects. This is the output after starting OpenOCD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13636166862833439" jivemacro_uid="_13636166862833439"&gt;
&lt;P&gt;Open On-Chip Debugger 0.6.1 (2013-03-18-13:15)&lt;/P&gt;
&lt;P&gt;Licensed under GNU GPL v2&lt;/P&gt;
&lt;P&gt;For bug reports, read&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://openocd.sourceforge.net/doc/doxygen/bugs.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://openocd.sourceforge.net/doc/doxygen/bugs.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Info : only one transport option; autoselect 'jtag'&lt;/P&gt;
&lt;P&gt;Warn : imx6.sdma: nonstandard IR value&lt;/P&gt;
&lt;P&gt;RCLK - adaptive&lt;/P&gt;
&lt;P&gt;adapter speed: 3000 kHz&lt;/P&gt;
&lt;P&gt;Info : max TCK change to: 30000 kHz&lt;/P&gt;
&lt;P&gt;Info : clock speed 3000 kHz&lt;/P&gt;
&lt;P&gt;Polling target failed, GDB will be halted. Polling again in 100ms&lt;/P&gt;
&lt;P&gt;Polling target failed, GDB will be halted. Polling again in 300ms&lt;/P&gt;
&lt;P&gt;Error: couldn't read enough bytes from FT2232 device (0 &amp;lt; 81)&lt;/P&gt;
&lt;P&gt;Error: couldn't read from FT2232&lt;/P&gt;
&lt;P&gt;in procedure 'runtest'&lt;/P&gt;
&lt;P&gt;Error: JTAG scan chain interrogation failed: all ones&lt;/P&gt;
&lt;P&gt;Error: Check JTAG interface, timings, target power, etc.&lt;/P&gt;
&lt;P&gt;Error: Trying to use configured scan chain anyway...&lt;/P&gt;
&lt;P&gt;Error: couldn't read enough bytes from FT2232 device (0 &amp;lt; 3)&lt;/P&gt;
&lt;P&gt;Error: couldn't read from FT2232&lt;/P&gt;
&lt;P&gt;Warn : Bypassing JTAG setup events due to errors&lt;/P&gt;
&lt;P&gt;Error: couldn't read enough bytes from FT2232 device (0 &amp;lt; 12)&lt;/P&gt;
&lt;P&gt;Error: couldn't read from FT2232&lt;/P&gt;
&lt;P&gt;Polling target failed, GDB will be halted. Polling again in 700ms&lt;/P&gt;
&lt;P&gt;Polling target failed, GDB will be halted. Polling again in 1500ms&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it is enough information.. If not please say what you need..&lt;/P&gt;&lt;P&gt;Do you have any idea what's the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! I hope you can help me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaTT&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 14:25:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/OpenOCD-Problem-i-MX6/m-p/229332#M16920</guid>
      <dc:creator>matthiasniederm</dc:creator>
      <dc:date>2013-03-18T14:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: OpenOCD Problem i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/OpenOCD-Problem-i-MX6/m-p/229333#M16921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Other Question..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I find the required information, which are used in the OpenOCD config to check if they are right. Is there a Document?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="err"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;_DAP_TAPID&lt;/SPAN&gt; &lt;SPAN class="err"&gt;0x4ba00477&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;_SJC_TAPID&lt;/SPAN&gt; &lt;SPAN class="err"&gt;0x0191c01d&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;_SJC_TAPID2&lt;/SPAN&gt; &lt;SPAN class="err"&gt;0x2191c01d&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;irlen &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;Please help me!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;&lt;SPAN class="err"&gt;MaTT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 08:09:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/OpenOCD-Problem-i-MX6/m-p/229333#M16921</guid>
      <dc:creator>matthiasniederm</dc:creator>
      <dc:date>2013-04-03T08:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: OpenOCD Problem i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/OpenOCD-Problem-i-MX6/m-p/229334#M16922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have "solved" the Problem! I removed the RESET wire between openocd-usb and the target board. Now i have basic jtag access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaTT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 13:17:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/OpenOCD-Problem-i-MX6/m-p/229334#M16922</guid>
      <dc:creator>matthiasniederm</dc:creator>
      <dc:date>2013-04-03T13:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: OpenOCD Problem i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/OpenOCD-Problem-i-MX6/m-p/229335#M16923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MaTT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you share your experience with OpenOCD and iMX6?&lt;/P&gt;&lt;P&gt;I've got the same problem but in my case it doesn't work even without RESET pin. Moreover I can't see any data on the JTAG pins with logic analizer when using imx6.cfg script. But the data is present when I change config script to stm32f103.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dmitriy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 13:14:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/OpenOCD-Problem-i-MX6/m-p/229335#M16923</guid>
      <dc:creator>dmitriyaleksand</dc:creator>
      <dc:date>2013-07-08T13:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: OpenOCD Problem i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/OpenOCD-Problem-i-MX6/m-p/229336#M16924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share your board config file? I am having trouble setting up the DCD settings to R/W from SDRAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 18:22:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/OpenOCD-Problem-i-MX6/m-p/229336#M16924</guid>
      <dc:creator>rp123</dc:creator>
      <dc:date>2013-08-09T18:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: OpenOCD Problem i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/OpenOCD-Problem-i-MX6/m-p/229337#M16925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have issues with OpenOcd and the i.mx6. I have removed the reset line from the JTAG adapter and I get basic JTAG functionality. My issue is when I have a new board with no software programmed when I type "halt" I get -&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; halt&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;number of cache level 1&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;imx6.cpu.0 cluster 0 core 0 multi core&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;target state: halted&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;target halted in Thumb state due to debug-request, current mode: Supervisor&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;cpsr: 0x600001f3 pc: 0x00000fc4&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MMU: disabled, D-Cache: disabled, I-Cache: disabled&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;Where the processor always halts in thumb mode.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;Has anyone overcome this issue and has the correct reset setup for the openocd config files so that the target is halted in arm mode ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;If I have programmed u-boot into flash the processor will halt correctly in arm mode. However I need the board to halt correctly before u-boot is programmed.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;Doug.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 02:47:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/OpenOCD-Problem-i-MX6/m-p/229337#M16925</guid>
      <dc:creator>douglasbolton</dc:creator>
      <dc:date>2014-04-01T02:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: OpenOCD Problem i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/OpenOCD-Problem-i-MX6/m-p/229338#M16926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/382658"&gt;Sharing debug i.mx6 from uboot to kernel to jni with Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;////////////////////host ubuntu terminal&lt;/P&gt;&lt;P&gt;root@stonelinux:/opt/openocd/bin# ./openocd -f /opt/openocd/share/openocd/scripts/interface/ftdi/dp_busblaster.cfg -f /opt/openocd/share/openocd/scripts/target/imx6.cfg&lt;/P&gt;&lt;P&gt;Open On-Chip Debugger 0.8.0 (2015-11-27-10:25)&lt;/P&gt;&lt;P&gt;Licensed under GNU GPL v2&lt;/P&gt;&lt;P&gt;For bug reports, read&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://openocd.sourceforge.net/doc/doxygen/bugs.html" rel="nofollow"&gt;http://openocd.sourceforge.net/doc/doxygen/bugs.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Info : only one transport option; autoselect 'jtag'&lt;/P&gt;&lt;P&gt;Warn : imx6.sdma: nonstandard IR value&lt;/P&gt;&lt;P&gt;adapter speed: 1000 kHz&lt;/P&gt;&lt;P&gt;Info : clock speed 1000 kHz&lt;/P&gt;&lt;P&gt;Info : JTAG tap: imx6.dap tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)&lt;/P&gt;&lt;P&gt;Info : TAP imx6.sdma does not have IDCODE&lt;/P&gt;&lt;P&gt;Info : JTAG tap: imx6.sjc tap/device found: 0x2191e01d (mfg: 0x00e, part: 0x191e, ver: 0x2)&lt;/P&gt;&lt;P&gt;Info : imx6.cpu.0: hardware has 6 breakpoints, 4 watchpoints&lt;/P&gt;&lt;P&gt;Info : accepting 'gdb' connection from 3333&lt;/P&gt;&lt;P&gt;Info : number of cache level 1&lt;/P&gt;&lt;P&gt;Info : imx6.cpu.0 cluster 0 core 0 multi core&lt;/P&gt;&lt;P&gt;target state: halted&lt;/P&gt;&lt;P&gt;target halted in ARM state due to debug-request, current mode: Supervisor&lt;/P&gt;&lt;P&gt;cpsr: 0x200001d3 pc: 0x4ff70548&lt;/P&gt;&lt;P&gt;MMU: enabled, D-Cache: enabled, I-Cache: enabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/////////////////////////after target kernel startup finish will happen&lt;/P&gt;&lt;P&gt;Error: JTAG-DP OVERRUN - check clock, memaccess, or reduce jtag speed&lt;/P&gt;&lt;P&gt;Error: MEM_AP_CSW 0x24770002, MEM_AP_TAR 0x24770002&lt;/P&gt;&lt;P&gt;Error: JTAG-DP OVERRUN - check clock, memaccess, or reduce jtag speed&lt;/P&gt;&lt;P&gt;Error: MEM_AP_CSW 0x24770002, MEM_AP_TAR 0x24770002&lt;/P&gt;&lt;P&gt;Warn : Timeout (1000ms) waiting for ACK=OK/FAULT in JTAG-DP transaction - aborting&lt;/P&gt;&lt;P&gt;Warn : Timeout (1000ms) waiting for ACK=OK/FAULT in JTAG-DP transaction - aborting&lt;/P&gt;&lt;P&gt;Polling target imx6.cpu.0 failed, GDB will be halted. Polling again in 100ms&lt;/P&gt;&lt;P&gt;Warn : target imx6.cpu.0 is not halted&lt;/P&gt;&lt;P&gt;Error: Target not halted&lt;/P&gt;&lt;P&gt;Error: Target not halted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//////////////////////solved by this way&lt;/P&gt;&lt;P&gt;gedit /root/project_board/free_imx/myandroid/kernel_imx/arch/arm/configs/mx6dq_android_defconfig&lt;/P&gt;&lt;P&gt;CONFIG_CPU_IDLE=y&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;#CONFIG_CPU_IDLE=y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;gedit /root/project_board/free_imx/myandroid/kernel_imx/arch/arm/mach-imx/pm-imx6.c&lt;/P&gt;&lt;P&gt;val |= 0x1 &amp;lt;&amp;lt; BP_CLPCR_LPM;&lt;/P&gt;&lt;P&gt;val |= BM_CLPCR_ARM_CLK_DIS_ON_LPM;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;/*val |= 0x1 &amp;lt;&amp;lt; BP_CLPCR_LPM;&lt;/P&gt;&lt;P&gt;val |= BM_CLPCR_ARM_CLK_DIS_ON_LPM;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rebuild kernel and upload to target i.mx6 board&lt;/P&gt;&lt;P&gt;It because CPU_IDLE low power mode will close jtag function&lt;/P&gt;&lt;P&gt;if want to know more way read&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/376786"&gt;Debugging Linux Kernel over JTAG with J-Link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/////&lt;/P&gt;&lt;P&gt;//i.mx6 only have hardware breakpoint.&lt;/P&gt;&lt;P&gt;//Could not insert single-step breakpoint, cannot continue bug fixed&lt;/P&gt;&lt;P&gt;search in gdb_server.c&lt;/P&gt;&lt;P&gt;if (type == 0)&amp;nbsp;&amp;nbsp;&amp;nbsp; /* memory breakpoint */&lt;/P&gt;&lt;P&gt;bp_type = BKPT_SOFT;&lt;/P&gt;&lt;P&gt;modify&amp;nbsp; to&lt;/P&gt;&lt;P&gt;bp_type = BKPT_HARD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//add support for openpocd&lt;/P&gt;&lt;P&gt;$_TARGETNAME configure -event reset-assert "imx6q_init"&lt;/P&gt;&lt;P&gt;$_TARGETNAME configure -event reset-end&amp;nbsp;&amp;nbsp;&amp;nbsp; "clear_regs"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="http://wiki.voipac.com/xwiki/bin/view/imx6+rex/jtag_oocd" title="http://wiki.voipac.com/xwiki/bin/view/imx6+rex/jtag_oocd"&gt;http://wiki.voipac.com/xwiki/bin/view/imx6+rex/jtag_oocd&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 08:12:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/OpenOCD-Problem-i-MX6/m-p/229338#M16926</guid>
      <dc:creator>fatalfeel</dc:creator>
      <dc:date>2015-12-08T08:12:27Z</dc:date>
    </item>
  </channel>
</rss>

