remove srst_pulls_trst from LPC2xxx target scripts
authorFreddie Chopin <freddie_chopin@op.pl>
Sat, 4 Dec 2010 14:45:40 +0000 (15:45 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Thu, 9 Dec 2010 21:54:31 +0000 (22:54 +0100)
LPC2xxx do not require reset_config srst_pulls_trst. This can cause various "strange" problems when flashing the chip, because "reset halt" actually allows the chip to run for some short period of time and execute some code.

Signed-off-by: Freddie Chopin <freddie_chopin@op.pl>
tcl/target/lpc2103.cfg
tcl/target/lpc2124.cfg
tcl/target/lpc2129.cfg
tcl/target/lpc2294.cfg
tcl/target/lpc2378.cfg
tcl/target/lpc2478.cfg

index 714267f6cc47d306b4ad30a75e26604610ce62b5..7f14555cbd64706a7feea3f3901d45fa41e17ad0 100644 (file)
@@ -12,8 +12,7 @@ if { [info exists CPUTAPID ] } {
    set _CPUTAPID 0x4f1f0f0f
 }
 
-# LPC2000 -> SRST causes TRST
-reset_config trst_and_srst srst_pulls_trst
+reset_config trst_and_srst
 
 # reset delays
 adapter_nsrst_delay 100
index c51158939ad488840d8545ea9ac25548091007de..df71bdde4c10909048af9e7cc42ec674438907b7 100644 (file)
@@ -12,8 +12,7 @@ if { [info exists CPUTAPID ] } {
     set _CPUTAPID 0x4f1f0f0f
 }
 
-#use combined on interfaces or targets that can't set TRST/SRST separately
-reset_config trst_and_srst srst_pulls_trst
+reset_config trst_and_srst
 
 # reset delays
 adapter_nsrst_delay 100
index 103f18ef7e8f3949adb47042343967d95afd2d90..2587bf725a5682af2f27e6194a3045f243f4684d 100644 (file)
@@ -12,8 +12,7 @@ if { [info exists CPUTAPID ] } {
    set _CPUTAPID 0xcf1f0f0f
 }
 
-#use combined on interfaces or targets that can't set TRST/SRST separately
-reset_config trst_and_srst srst_pulls_trst
+reset_config trst_and_srst
 
 # reset delays
 adapter_nsrst_delay 100
index 6f3417171f77abe354fddabfa45be8b88bc7f884..ecf0599884ad1dc9ade5bfd3fe8e15ca804ded3b 100644 (file)
@@ -14,8 +14,7 @@ if { [info exists CPUTAPID ] } {
 adapter_nsrst_delay 200
 jtag_ntrst_delay 200
 
-#use combined on interfaces or targets that can't set TRST/SRST separately
-reset_config trst_and_srst srst_pulls_trst
+reset_config trst_and_srst
 
 #jtag scan chain
 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
index 65b554c728cbe96ca042d0f6d2a2efb3e236abc9..21fdd1b4ade83f3ef24c6ec19b9f69e49814a567 100644 (file)
@@ -16,8 +16,7 @@ if { [info exists CPUTAPID ] } {
 adapter_nsrst_delay 200
 jtag_ntrst_delay 200
 
-# LPC2000 -> SRST causes TRST
-reset_config trst_and_srst srst_pulls_trst
+reset_config trst_and_srst
 
 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
 
index 1e11d9e8f9fdbdddbeee0a64c50c4fd3003f6f4f..3b14c87d426971d076585bcba883c7e40b5a9f92 100644 (file)
@@ -22,8 +22,7 @@ if { [info exists CCLK ] } {
 adapter_nsrst_delay 100
 jtag_ntrst_delay 100
 
-# LPC2000 -> SRST causes TRST
-reset_config trst_and_srst srst_pulls_trst
+reset_config trst_and_srst
 
 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID