X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tcl%2Ftarget%2Fstr730.cfg;h=cab2338feb41cb7fc1eb1230bea563cec40e3a42;hb=cc440ca1d44f0aaaf34daa365966b7b092126913;hp=381fa5fcac03e3f273071b49e20060fbff9d9027;hpb=503f6139c7ed05339daea8c4984d32840d795222;p=fw%2Fopenocd diff --git a/tcl/target/str730.cfg b/tcl/target/str730.cfg index 381fa5fca..cab2338fe 100644 --- a/tcl/target/str730.cfg +++ b/tcl/target/str730.cfg @@ -34,7 +34,14 @@ set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME arm7tdmi -endian little -chain-position 0 -variant arm7tdmi $_TARGETNAME configure -event reset-start { jtag_khz 10 } -$_TARGETNAME configure -event reset-init { jtag_khz 3000 } +$_TARGETNAME configure -event reset-init { + jtag_khz 3000 + +# Because the hardware cannot be interrogated for the protection state +# of sectors, initialize all the sectors to be unprotected. The initial +# state is reflected by the driver, too. + flash protect 0 0 last off +} $_TARGETNAME configure -event gdb-flash-erase-start { flash protect 0 0 7 off }