Avoid annoying "deprecated" messages in the scripts
distributed with OpenOCD code.
Change-Id: I82d27cd420db30f0653efbd286a627ef56a8c1fd
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5287
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
# possible that initial tap examination failed. So let's
# re-examine the target again here when nSRST is asserted which
# should then succeed.
# possible that initial tap examination failed. So let's
# re-examine the target again here when nSRST is asserted which
# should then succeed.
feroceon.cpu arp_examine
halt 0
feroceon.cpu arp_examine
halt 0
wait_halt
arm mcr 15 0 0 1 0 0x00052078
wait_halt
arm mcr 15 0 0 1 0 0x00052078
proc init_reset {mode} {
# Assert both resets: equivalent to a power-on reset
proc init_reset {mode} {
# Assert both resets: equivalent to a power-on reset
+ adapter assert trst assert srst
# Deassert TRST to begin TAP communication
# Deassert TRST to begin TAP communication
+ adapter deassert trst assert srst
# TAP should now be responsive, validate the scan-chain
jtag arp_init
# TAP should now be responsive, validate the scan-chain
jtag arp_init
proc init_reset {mode} {
# Assert both resets: equivalent to a power-on reset
proc init_reset {mode} {
# Assert both resets: equivalent to a power-on reset
+ adapter assert trst assert srst
# Deassert TRST to begin TAP communication
# Deassert TRST to begin TAP communication
+ adapter deassert trst assert srst
# TAP should now be responsive, validate the scan-chain
jtag arp_init
# TAP should now be responsive, validate the scan-chain
jtag arp_init
# possible that initial tap examination failed. So let's
# re-examine the target again here when nSRST is asserted which
# should then succeed.
# possible that initial tap examination failed. So let's
# re-examine the target again here when nSRST is asserted which
# should then succeed.
feroceon.cpu arp_examine
halt 0
feroceon.cpu arp_examine
halt 0
wait_halt
arm mcr 15 0 0 1 0 0x00052078
wait_halt
arm mcr 15 0 0 1 0 0x00052078
# reset processing that works with PXA
proc init_reset {mode} {
# assert both resets; equivalent to power-on reset
# reset processing that works with PXA
proc init_reset {mode} {
# assert both resets; equivalent to power-on reset
+ adapter assert trst assert srst
# drop TRST after at least 32 cycles
sleep 1
# drop TRST after at least 32 cycles
sleep 1
+ adapter deassert trst assert srst
# minimum 32 TCK cycles to wake up the controller
runtest 50
# minimum 32 TCK cycles to wake up the controller
runtest 50
jtag arp_init
# ... and take it out of reset
jtag arp_init
# ... and take it out of reset
+ adapter deassert trst deassert srst
reset_config trst_and_srst srst_pulls_trst
#LPCs need reset pulled while RTCK is low. 0 to activate JTAG, power-on reset is not enough
reset_config trst_and_srst srst_pulls_trst
#LPCs need reset pulled while RTCK is low. 0 to activate JTAG, power-on reset is not enough
-jtag_reset 1 1
-jtag_reset 0 0
+adapter assert trst assert srst
+adapter deassert trst deassert srst
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)