target/adi_v5_swd: move setting of do_reconnect one level up
[openocd.git] / tcl / target / max32625.cfg
blob90eb3926687571bfaee51b09c22a0305e5e073c2
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Maxim Integrated MAX32625 OpenOCD target configuration file
4 # www.maximintegrated.com
6 # adapter speed
7 adapter speed 4000
9 # reset pin configuration
10 reset_config srst_only
12 if {[using_jtag]} {
13     jtag newtap max32625 cpu -irlen 4 -irmask 0xf -expected-id 0x4ba00477 -ignore-version
14     jtag newtap maxtest tap -irlen 4 -irmask 0xf -ircapture 0x1 -expected-id 0x07f71197 -ignore-version
15 } else {
16     swd newdap max32625 cpu -irlen 4 -irmask 0xf -expected-id 0x2ba01477 -ignore-version
19 dap create max32625.dap -chain-position max32625.cpu
21 # target configuration
22 target create max32625.cpu cortex_m -dap max32625.dap
23 max32625.cpu configure -work-area-phys 0x20005000 -work-area-size 0x2000
25 # Config Command: flash bank name driver base size chip_width bus_width target [driver_options]
26 #   flash bank <name> max32xxx <base> <size> 0 0 <target> <flc base> <sector> <clk> <burst>
27 #   max32625 flash base address   0x00000000
28 #   max32625 flash size           0x80000 (512k)
29 #   max32625 FLC base address     0x40002000
30 #   max32625 sector (page) size   0x2000 (8kB)
31 #   max32625 clock speed          96 (MHz)
32 flash bank max32625.flash max32xxx 0x00000000 0x80000 0 0 max32625.cpu 0x40002000 0x2000 96