On Thu, Jun 9, 2011 at 10:17 PM, Tomek CEDRO <tomek.cedro at gmail.com
<https://lists.berlios.de/mailman/listinfo/openocd-development>> wrote:
>/ Hello Laurent! :-)
/>/
/>/ On Thu, Jun 9, 2011 at 6:21 AM, Laurent Gauch <laurent.gauch at amontec.com
<https://lists.berlios.de/mailman/listinfo/openocd-development>>
/>/ wrote:
/>/ > But before to close the handle we should still be able :
/>/ > -1- to tristate signal High-Z via all the out enable signals used in the
/>/ > specific layout, BUT BUT BUT ONLY if we have entered in the MPSSE mode.
/>/
/>/ The whole driver works in MPSSE mode...
/>/
/>/ > (If you have a Amotnec JTAGkey-2 you may verifiy this by checking the
/>/ > external yellow LED. This LED should be OFF after any quit/shutdown)
/>/ > As I explained with the TRST and OMAP in previous message ...
/>/
/>/ I have created simple quit() that sets all port pins high and as input
/>/ (mpsse command 0x80 0x82) but that did not shut down the yellow led
/>/ :-(
/>/
/
Since the suitable setting depends on the mapping of the GPIOs and the
surrounding electronics, the quit function would probably need to be layout
specific, as Laurent mentioned.
That's will be better ...
and as we will have specific init based layout we will have specific deinit
based layout ...
we come back again to the Sebastien patch where open, init deinit, close are
decoupled ...
I think you are beginning to understand :-)
>/ Do you have any other ideas on what should be done on ft2232_quit()
/>/ except rtck, hi-z, div5..? I can prepare a patch, or Peter will as I
/>/ can see he is already working out the subject :-)
/
What problem is setting pins to a default state on exit supposed to
solve? Are we sure this is what we want? If I make openocd pull the reset
line and then quit openocd, I'd expect the target to remain in reset. If I
quit openocd while the target is running, I'd expect it to keep on running.
How would that work if we make this change?
What do you mean by PULL?
If you close the openocd, we have to put both SRST and TRST in High-Z . That's
the normal case, any other case are specific to a custom debug procedure.
Regards,
Laurent
http://www.amontec.com/jtagkey.shtml
Amontec JTAGkey-2 High-speed USB JTAG DEBUGGER PROGRAMMER
Laurent
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development