On 28.12.2017 19:08, Thomas Sailer wrote:
Tomas,
I have implemented PSoC4 acquire in the ftdi driver, see the attached
patch. Since the ftdi driver cannot use a close polling loop for
determining when the PSoC4 is finished resetting like the KitProg
firmware does, the ftdi driver needs to issue multiple resets, first
to measure the XRES deassertion delay, then finally to issue the
carefully timed sequence of DAP commands to get the CPU stopped while
still in the ROM.
Thomas
Thomas,
if you look back to 3 years old changes in gerrit you can find
http://openocd.zylin.com/#/c/2282/2
This change was capable of acquiring a PSoC4 with ftdi as well (and
maybe with some other adapters)
Read the comments and understand why I dropped this part of code.
Also look for PSoC4 in openocd-devel ML 2015 archive, some relevant
discussion is there.
Unlike the situation 3 years ago we have KitProg driver in OpenOCD, so
at least one adapter
is perfectly suitable for Cypress proprietary acquire. We should not
pollute the code
of all other adapter drivers in OpenOCD with such proprietary hacks.
The only exception going to be CMSIS-DAP as soon as Cypress publish
vendor extensions
to the protocol.
Of course you can submit your patch to gerrit, somebody might use it.
However I doubt such change will be ever merged to git master. Sorry.
Tom
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel