Sergio wrote:
> The USB adapter just make the parallel signals from USB, I do this
> with a USB - RS232 converter connected to microcontroller.

Strongly recommend buy a known working JTAG adapter. There are some
really affordable ones that work with OpenOCD.


> All signals are generated good.

Did you also look at signalling beyond the electrical level? Is your
JTAG adapter actually generating correct JTAG signalling? Are timings
accurate, and sequences correct? (Probably not.)


> But I don't know the source of my problems. When connect the target
> board and the usb adapter, run openocd (stable version 0.4)

Please start by using git source.


> The parallelport was modify to work over USB connection.

This is obviously not the best approach. If you must, and if you are
confident that the JTAG adapter works, then create a new driver for
it in OpenOCD.


> In the attached file are the modified version of the parport.c.

This is very unhelpful, for a couple of reasons. It is unlikely that
any single person knows exactly how the parport.c driver worked and
how it was implemented, especially in the 0.4.0 release which is old.
It is guaranteed that noone will comment or even bother to look at
the file you attached.

A better approach would be to email a diff between the original file
and your modified version, which would show only what you have
changed, and increase the chance that someone will take time to read
the code, because when only changes are shown there is a chance to
understand if and how your changes affect the driver.

The very best approach is that you add a driver for your adapter, and
make sure to add it into the current git source for the project. If
you create a nice and clean patch then it will be included into
OpenOCD immediately.


> Some one can helpme?

You have too many unknowns.

Get a known working JTAG adapter if you want to isolate how OpenOCD
works with your target board.

Get a known working target board if you want to isolate how your JTAG
adapter works.

In all circumstances use a known working OpenOCD version; the latest
code from git.


//Peter
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to