On 19.04.2017 11:40, Paul Fertser wrote:
>> The workaround was first introduced in Paul's 
>> [3]http://openocd.zylin.com/2356
>> Comment reads:
>> /* When we are reconnecting, DAP_Connect needs to be rerun, at
>>    * least on Keil ULINK-ME */
>>
>> Can you please re-test if this workaround is still needed with up-to date
>> cmsis-dap firmware?
> I think by reconnecting I meant the case where you were debugging
> nicely, then SWD communication got disrupted (interference or loose
> contact etc) and then openocd needs to continue the operation. Can you
> please test your solution still works for this case?
>
I understand that some kind of initialization can help in this point
mainly in case of adapter firmware problems.
All three types of CMSIS-DAP adapters I have (EDBG, Kitprog and
an experimental Kinetis board with open source CMSIS-DAP firmware)
do not need a connect cmd before sending JTAG_to_SWD sequence.
SWD reconnect works on current OpenOCD with #4100 applied
on EDBG and open source fw (not yet tested with Kitprog).

On the other hand we can extend reconnect capability to reconnect USB
(like it works in st-link driver) and in this case all initialization 
should be resent.

     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

Reply via email to