On Mon, Aug 18, 2014 at 7:25 PM, Kent Brinkley <[email protected]>
wrote:

> Hi Guys,
>
> I have finally had a chance to do some testing and found the using
>
> reset_config trst_and_srst separate srst_gates_jtag srst_open_drain
> connect_deassert_srst
>
> works for connecting to the card but I have a new problem. Because of
> reset issue with the board I am using (waiting on new board with reset
> fixed) in order to reset the board, we are forced to press
> and hold the reset button. In the OpenOCD console, do the following
>     jtag_reset 1 0
>     irscan mAUC.cpu 0x0c ;# Force an EJTAGBOOT
> then reset button is released. This works fine using " reset_config
> srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst"
> without the changes to ftdi.c
>
>
Works fine because without trst in reset_config, jtag_reset 1 0 has no
effect. And with the change reverted nTRST is forced to some level (high?)
instead of staying Hi-Z, fixing some issues with the reset (?).

I am able to cause the crash by entering the commands manually and it is
> the "irscan" ("irscan mAUC.cpu 0x0c") command that causes OpenOCD to crash.
>
> Assertion failed: jtag_trst == 0, file core.c, line 340
>
>
But with "reset_config trst_and_srst ...", jtag_reset 1 0 actually asserts
trst and the subsequent irscan aborts because, well, trst is asserted.

I'm I missing should on the modified reset_config command or is this an new
> problem?
>

It's not really a problem. Why are you trying to irscan with trst asserted?
It makes no sense and is not going to work.

What is the exact procedure needed to perform the reset? If it works in the
first case I guess you don't need to fiddle with trst so try without the
jtag_reset line. Or maybe you're meant to keep srst asserted, not trst? In
that case, your button does the trick, with or without jtag_reset.

/Andreas
------------------------------------------------------------------------------
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to