Hi Paul,

nsrst_delay works, but regression for PSoC4 resists.

XRES (nSRST) resets also SWD DP so SWD line reset and DP reinit is needed.
I'm not sure if reset_config srst_pulls_trst should address this - I do not
see any change if srst_pulls_trst or separate is set.
Anyway chg 2583 tries ahbap_debugport_init() and fails without 
ftdi_swd_switch_seq()
On the other hand git master discovers not communicating swd in poll and 
resolves the problem correctly.

Tom

with 2583
=========
Debug: 738 7632 cortex_m.c:1098 cortex_m_deassert_reset(): 
target->state: reset
Debug: 739 7684 core.c:648 swd_add_reset(): SRST line released
Debug: 742 8697 arm_adi_v5.c:647 ahbap_debugport_init():
Debug: 743 8697 arm_adi_v5.c:688 ahbap_debugport_init(): DAP: wait 
CDBGPWRUPACK
Debug: 744 8697 arm_adi_v5.h:391 dap_dp_poll_register(): DAP: poll 4, 
mask 0x0820000000, value 0x20000000
Debug: 745 8697 ftdi.c:944 ftdi_swd_run_queue(): Executing 5 queued 
transactions
Debug: 746 8700 ftdi.c:976 ftdi_swd_run_queue(): JUNK DP read reg 4 = 
ffffffff
User : 747 8701 command.c:546 command_print(): in procedure 'reset'
in procedure 'ocd_bouncer'

Debug: 748 8703 command.c:628 run_command(): Command failed with error 
code -4
User : 749 8704 command.c:666 command_run_line(): in procedure 'reset'


without 2583
============
Debug: 3059 80343 cortex_m.c:1111 cortex_m_deassert_reset(): 
target->state: reset
Debug: 3060 80395 core.c:648 swd_add_reset(): SRST line released
Debug: 3061 80497 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_ps
oc4.cpu invoke-event reset-deassert-post
Debug: 3062 80497 command.c:145 script_debug(): command - ocd_psoc4.cpu 
ocd_psoc4.cpu invoke-
event reset-deassert-post
Debug: 3063 80497 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_ps
oc4.cpu invoke-event reset-end
Debug: 3064 80498 command.c:145 script_debug(): command - ocd_psoc4.cpu 
ocd_psoc4.cpu invoke-
event reset-end
Debug: 3065 80498 ftdi.c:944 ftdi_swd_run_queue(): Executing 2 queued 
transactions
Debug: 3066 80499 ftdi.c:976 ftdi_swd_run_queue(): JUNK AP read reg 0 = 
ffffffff
User : 3067 80499 target.c:2416 handle_target(): Polling target 
psoc4.cpu failed, GDB will be
  halted. Polling again in 100ms
Debug: 3068 80500 target.c:1405 target_call_event_callbacks(): target 
event 0 (gdb-halt)
Debug: 3069 80902 ftdi.c:1090 ftdi_swd_switch_seq(): JTAG-to-SWD
Debug: 3070 80902 ftdi.c:944 ftdi_swd_run_queue(): Executing 2 queued 
transactions
Debug: 3071 80904 ftdi.c:976 ftdi_swd_run_queue(): OK DP read reg 0 = 
0bb11477
Debug: 3072 80904 ftdi.c:976 ftdi_swd_run_queue(): OK DP write reg 0 = 
0000001e

On 9.3.2015 16:58, Paul Fertser wrote:
> On Mon, Mar 09, 2015 at 04:16:09PM +0100, Tomas Vanek wrote:
>> Are you sure that adapter_nsrst_delay takes place before reexamination
>> you've added? Error after reset is fired immediately
>> even if adapter_nsrst_delay is 1000.
> Should be fixed with http://openocd.zylin.com/2591 , hopefully. Your
> testing is much appreciated!
>


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to