[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    [OpenOCD-devel] [openocd:tickets] #225 Error: The 'jtag configure' command must be used after 'init'
From:       Paola rojas via OpenOCD-devel <openocd-devel () lists ! sourceforge ! net>
Date:       2019-09-27 18:34:14
Message-ID: /p/openocd/tickets/225/f5a43f3b40064ad244f8912842fac036ec3ff632.tickets () openocd ! p ! sourceforge ! net
[Download RAW message or body]

[Attachment #2 (multipart/related)]


--===============5687059911301770143==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Necesitoayuda


Attachments:

- [IMG_20190927_133052.jpg](https://sourceforge.net/p/openocd/tickets/_discuss/thread/30a8648f84/c6df/attachment/IMG_20190927_133052.jpg) \
(3.5 MB; image/jpeg)


---

** [tickets:#225] Error: The 'jtag configure' command must be used after 'init'.**

**Status:** new
**Milestone:** 0.9.0
**Created:** Wed Feb 06, 2019 08:19 PM UTC by Bill Paul
**Last Updated:** Fri Sep 27, 2019 06:25 PM UTC
**Owner:** nobody


Checking out the most recent sources from git, many configuration scripts which used \
to work now yield the following error instead:

openocd -f interface/ftdi/olimex-arm-usb-ocd-h.cfg -f target/imx6.cfg
Open On-Chip Debugger 0.10.0+dev-00677-gdeaf3d26-dirty (2019-02-06-11:35)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To override use \
'transport select <transport>'. Warn : imx6.sdma: nonstandard IR value
Error: The 'jtag configure' command must be used after 'init'.

openocd -f board/avnet_ultrazed-eg.cfg
Open On-Chip Debugger 0.10.0+dev-00677-gdeaf3d26-dirty (2019-02-06-11:35)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
none separate
none separate
adapter speed: 1000 kHz
Error: The 'jtag configure' command must be used after 'init'.

This appears to have been caused by the commit:

https://repo.or.cz/openocd.git/commit/877cec20dca6e78f9f029f0f173879cda101a6c2

I'm not sure what the correct fix would be. This does not happen with every script. \
(It seemed to work ok with board/nordic_nrf52_dk.cfg). I don't know if the scripts \
need to be updated or if the code does.

I worked around it my modifying src/jtag/tcl.c to change the mode for the jtag \
configure command to COMMAND_ANY (currently it's COMMAND_EXEC):

openocd -f interface/ftdi/olimex-arm-usb-ocd-h.cfg -f target/imx6.cfg
Open On-Chip Debugger 0.10.0+dev-00677-gdeaf3d26-dirty (2019-02-06-12:14)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To override use \
'transport select <transport>'. Warn : imx6.sdma: nonstandard IR value
adapter speed: 1000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 1000 kHz
Info : JTAG tap: imx6.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: \
0xba00, ver: 0x4) Info : TAP imx6.sdma does not have IDCODE
Info : JTAG tap: imx6.sjc tap/device found: 0x2191c01d (mfg: 0x00e (Freescale \
(Motorola)), part: 0x191c, ver: 0x2) Info : imx6.cpu.0: hardware has 6 breakpoints, 4 \
watchpoints Info : Listening on port 3333 for gdb connections

My host environment is FreeBSD/amd64 11.1-RELEASE, however I observed the same \
problem building on an Ubuntu Linux host (16.04). The above test case is with a \
Freescale/NXP Sabre SD i.MX6Q target.

(Apologies if this has already been noticed and is being discussed elsewhere.)



---

Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is subscribed \
to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at \
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a mailing \
                list, you can unsubscribe from the mailing list.
--===============5687059911301770143==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit

<div class="markdown_content"><p>Necesitoayuda</p>
<p>Attachments:</p>
<ul>
<li><a class="" href="https://sourceforge.net/p/openocd/tickets/_discuss/thread/30a8648f84/c6df/attachment/IMG_20190927_133052.jpg">IMG_20190927_133052.jpg</a> \
(3.5 MB; image/jpeg)</li> </ul>
<hr/>
<p><strong> <a class="alink" \
href="https://sourceforge.net/p/openocd/tickets/225/">[tickets:#225]</a> Error: The \
'jtag configure' command must be used after 'init'.</strong></p> \
<p><strong>Status:</strong> new<br/> <strong>Milestone:</strong> 0.9.0<br/>
<strong>Created:</strong> Wed Feb 06, 2019 08:19 PM UTC by Bill Paul<br/>
<strong>Last Updated:</strong> Fri Sep 27, 2019 06:25 PM UTC<br/>
<strong>Owner:</strong> nobody</p>
<p>Checking out the most recent sources from git, many configuration scripts which \
used to work now yield the following error instead:</p> <p>openocd -f \
interface/ftdi/olimex-arm-usb-ocd-h.cfg -f target/imx6.cfg<br/> Open On-Chip Debugger \
0.10.0+dev-00677-gdeaf3d26-dirty (2019-02-06-11:35)<br/> Licensed under GNU GPL \
v2<br/> For bug reports, read<br/>
<a href="http://openocd.org/doc/doxygen/bugs.html" \
rel="nofollow">http://openocd.org/doc/doxygen/bugs.html</a><br/> Info : \
auto-selecting first available session transport "jtag". To override use 'transport \
select &lt;transport&gt;'.<br/> Warn : imx6.sdma: nonstandard IR value<br/>
Error: The 'jtag configure' command must be used after 'init'.&lt;/transport&gt;</p>
<p>openocd -f board/avnet_ultrazed-eg.cfg<br/>
Open On-Chip Debugger 0.10.0+dev-00677-gdeaf3d26-dirty (2019-02-06-11:35)<br/>
Licensed under GNU GPL v2<br/>
For bug reports, read<br/>
<a href="http://openocd.org/doc/doxygen/bugs.html" \
rel="nofollow">http://openocd.org/doc/doxygen/bugs.html</a><br/> none separate<br/>
none separate<br/>
adapter speed: 1000 kHz<br/>
Error: The 'jtag configure' command must be used after 'init'.</p>
<p>This appears to have been caused by the commit:</p>
<p><a href="https://repo.or.cz/openocd.git/commit/877cec20dca6e78f9f029f0f173879cda101a6c2" \
rel="nofollow">https://repo.or.cz/openocd.git/commit/877cec20dca6e78f9f029f0f173879cda101a6c2</a></p>
 <p>I'm not sure what the correct fix would be. This does not happen with every \
script. (It seemed to work ok with board/nordic_nrf52_dk.cfg). I don't know if the \
scripts need to be updated or if the code does.</p> <p>I worked around it my \
modifying src/jtag/tcl.c to change the mode for the jtag configure command to \
COMMAND_ANY (currently it's COMMAND_EXEC):</p> <p>openocd -f \
interface/ftdi/olimex-arm-usb-ocd-h.cfg -f target/imx6.cfg<br/> Open On-Chip Debugger \
0.10.0+dev-00677-gdeaf3d26-dirty (2019-02-06-12:14)<br/> Licensed under GNU GPL \
v2<br/> For bug reports, read<br/>
<a href="http://openocd.org/doc/doxygen/bugs.html" \
rel="nofollow">http://openocd.org/doc/doxygen/bugs.html</a><br/> Info : \
auto-selecting first available session transport "jtag". To override use 'transport \
select &lt;transport&gt;'.<br/> Warn : imx6.sdma: nonstandard IR value<br/>
adapter speed: 1000 kHz<br/>
Info : Listening on port 6666 for tcl connections<br/>
Info : Listening on port 4444 for telnet connections<br/>
Info : clock speed 1000 kHz<br/>
Info : JTAG tap: imx6.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: \
0xba00, ver: 0x4)<br/> Info : TAP imx6.sdma does not have IDCODE<br/>
Info : JTAG tap: imx6.sjc tap/device found: 0x2191c01d (mfg: 0x00e (Freescale \
(Motorola)), part: 0x191c, ver: 0x2)<br/> Info : imx6.cpu.0: hardware has 6 \
breakpoints, 4 watchpoints<br/> Info : Listening on port 3333 for gdb \
connections&lt;/transport&gt;</p> <p>My host environment is FreeBSD/amd64 \
11.1-RELEASE, however I observed the same problem building on an Ubuntu Linux host \
(16.04). The above test case is with a Freescale/NXP Sabre SD i.MX6Q target.</p> \
<p>(Apologies if this has already been noticed and is being discussed elsewhere.)</p> \
<hr/> <p>Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is \
subscribed to <a href="https://sourceforge.net/p/openocd/tickets/">https://sourceforge.net/p/openocd/tickets/</a></p>
 <p>To unsubscribe from further messages, a project admin can change settings at <a \
href="https://sourceforge.net/p/openocd/admin/tickets/options.">https://sourceforge.net/p/openocd/admin/tickets/options.</a> \
                Or, if this is a mailing list, you can unsubscribe from the mailing \
                list.</p></div>
--===============5687059911301770143==--





_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic