Tomas Vanek
2017-04-18 19:09:20 UTC
Paul (or anybody else who can test Keil ULINK-ME with CMSIS-DAP),
connect_assert_srst.
IMHO most of cmsis-dap implementations deasserts nSRST signal when
cmsis_dap_cmd_DAP_Connect()
or cmsis_dap_cmd_DAP_Disconnect() is issued because generic firmware
initializes/deinitializes
GPIO lines in connect/reconnect.
The workaround was first introduced in Paul's 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?
In other words if the adapter works with applied
http://openocd.zylin.com/4100
we can drop the workaround safely.
Otherwise we should re-issue cmsis_dap_cmd_DAP_Connect() only if no
reset is asserted.
Tom
Hello Tomas,
On Sun, Apr 9, 2017 at 12:06 PM, Tomas Vanek
http://openocd.zylin.com/4100
It solves connecting under reset on cmsis-dap (unfortunately on
expense of breaking a workaround for an Keil Ulink adaptor).
Tomas
I compiled the patch from source and tested it. Connect under reset
now works. Many thanks!
Regards,
Leonardo
Leonardo confirmed that workaround in cmsis_dap.c breaksOn Sun, Apr 9, 2017 at 12:06 PM, Tomas Vanek
No, this is OpenOCD issue. I had to change firmware in my
"experimental" cmsis-dap adapter and voila: I replicated your
problem.
If you can recompile OpenOCD from git source, please try"experimental" cmsis-dap adapter and voila: I replicated your
problem.
http://openocd.zylin.com/4100
It solves connecting under reset on cmsis-dap (unfortunately on
expense of breaking a workaround for an Keil Ulink adaptor).
Tomas
I compiled the patch from source and tested it. Connect under reset
now works. Many thanks!
Regards,
Leonardo
connect_assert_srst.
IMHO most of cmsis-dap implementations deasserts nSRST signal when
cmsis_dap_cmd_DAP_Connect()
or cmsis_dap_cmd_DAP_Disconnect() is issued because generic firmware
initializes/deinitializes
GPIO lines in connect/reconnect.
The workaround was first introduced in Paul's 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?
In other words if the adapter works with applied
http://openocd.zylin.com/4100
we can drop the workaround safely.
Otherwise we should re-issue cmsis_dap_cmd_DAP_Connect() only if no
reset is asserted.
Tom